24301902 Log connections dropped when exceeding MaxStartups
authorTomas Kuthan <tomas.kuthan@oracle.com>
Thu, 06 Oct 2016 07:26:21 -0700
changeset 7060 6881211a7ba8
parent 7059 f2f4b9922ef9
child 7061 6e4d359501b9
24301902 Log connections dropped when exceeding MaxStartups
components/openssh/patches/048-maxstartups-log_dropped.patch
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/openssh/patches/048-maxstartups-log_dropped.patch	Thu Oct 06 07:26:21 2016 -0700
@@ -0,0 +1,24 @@
+#
+# When MaxStartups of unauthenticated concurrent connections is hit,
+# additional connections are dropped.
+#
+# Dropped connections should be logged. Server administrator should be able to
+# find this information and might be interested in details. 
+#
+# Patch source: in-house
+# Offered upstream:
+# https://bugzilla.mindrot.org/show_bug.cgi?id=2613
+#
+diff -pur old/sshd.c new/sshd.c
+--- old/sshd.c
++++ new/sshd.c
[email protected]@ -1419,7 +1419,8 @@ server_accept_loop(int *sock_in, int *so
+ 				continue;
+ 			}
+ 			if (drop_connection(startups) == 1) {
+-				debug("drop connection #%d", startups);
++				logit("MaxStartups: dropping connection #%d",
++				    startups);
+ 				close(*newsock);
+ 				continue;
+ 			}