|
Petr Lautrbach |
5bc906 |
diff --git a/servconf.c b/servconf.c
|
|
Petr Lautrbach |
5bc906 |
index 684fbb4..a230c7b 100644
|
|
Petr Lautrbach |
5bc906 |
--- a/servconf.c
|
|
Petr Lautrbach |
5bc906 |
+++ b/servconf.c
|
|
Petr Lautrbach |
5bc906 |
@@ -267,11 +267,11 @@ fill_default_server_options(ServerOptions *options)
|
|
Petr Lautrbach |
5bc906 |
if (options->gateway_ports == -1)
|
|
Petr Lautrbach |
5bc906 |
options->gateway_ports = 0;
|
|
Petr Lautrbach |
5bc906 |
if (options->max_startups == -1)
|
|
Petr Lautrbach |
5bc906 |
- options->max_startups = 10;
|
|
Petr Lautrbach |
5bc906 |
+ options->max_startups = 100;
|
|
Petr Lautrbach |
5bc906 |
if (options->max_startups_rate == -1)
|
|
Petr Lautrbach |
5bc906 |
- options->max_startups_rate = 100; /* 100% */
|
|
Petr Lautrbach |
5bc906 |
+ options->max_startups_rate = 30; /* 30% */
|
|
Petr Lautrbach |
5bc906 |
if (options->max_startups_begin == -1)
|
|
Petr Lautrbach |
5bc906 |
- options->max_startups_begin = options->max_startups;
|
|
Petr Lautrbach |
5bc906 |
+ options->max_startups_begin = 10;
|
|
Petr Lautrbach |
5bc906 |
if (options->max_authtries == -1)
|
|
Petr Lautrbach |
5bc906 |
options->max_authtries = DEFAULT_AUTH_FAIL_MAX;
|
|
Petr Lautrbach |
5bc906 |
if (options->max_sessions == -1)
|
|
Petr Lautrbach |
5bc906 |
diff --git a/sshd_config b/sshd_config
|
|
Petr Lautrbach |
5bc906 |
index d1b85d0..5c03fd9 100644
|
|
Petr Lautrbach |
5bc906 |
--- a/sshd_config
|
|
Petr Lautrbach |
5bc906 |
+++ b/sshd_config
|
|
Petr Lautrbach |
5bc906 |
@@ -126,7 +126,7 @@ UsePrivilegeSeparation sandbox # Default for new installations.
|
|
Petr Lautrbach |
5bc906 |
#ShowPatchLevel no
|
|
Petr Lautrbach |
5bc906 |
#UseDNS yes
|
|
Petr Lautrbach |
5bc906 |
#PidFile /var/run/sshd.pid
|
|
Petr Lautrbach |
5bc906 |
-#MaxStartups 10
|
|
Petr Lautrbach |
5bc906 |
+#MaxStartups 10:30:100
|
|
Petr Lautrbach |
5bc906 |
#PermitTunnel no
|
|
Petr Lautrbach |
5bc906 |
#ChrootDirectory none
|
|
Petr Lautrbach |
5bc906 |
#VersionAddendum none
|
|
Petr Lautrbach |
5bc906 |
diff --git a/sshd_config.5 b/sshd_config.5
|
|
Petr Lautrbach |
5bc906 |
index fd0d35a..f02f6cc 100644
|
|
Petr Lautrbach |
5bc906 |
--- a/sshd_config.5
|
|
Petr Lautrbach |
5bc906 |
+++ b/sshd_config.5
|
|
Petr Lautrbach |
5bc906 |
@@ -826,7 +826,7 @@ SSH daemon.
|
|
Petr Lautrbach |
5bc906 |
Additional connections will be dropped until authentication succeeds or the
|
|
Petr Lautrbach |
5bc906 |
.Cm LoginGraceTime
|
|
Petr Lautrbach |
5bc906 |
expires for a connection.
|
|
Petr Lautrbach |
5bc906 |
-The default is 10.
|
|
Petr Lautrbach |
5bc906 |
+The default is 10:30:100.
|
|
Petr Lautrbach |
5bc906 |
.Pp
|
|
Petr Lautrbach |
5bc906 |
Alternatively, random early drop can be enabled by specifying
|
|
Petr Lautrbach |
5bc906 |
the three colon separated values
|