summaryrefslogtreecommitdiff
path: root/servconf.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2013-02-12 11:02:08 +1100
committerDamien Miller <djm@mindrot.org>2013-02-12 11:02:08 +1100
commit1f583df8c3a7a3731a18b17e14c9ec09f31905ba (patch)
tree54ea8f178b181dc6c45afa02f3bfd6d17afa4263 /servconf.c
parent0cd2f8e5f8276e178d696f3495ca2a9a691dccf5 (diff)
- dtucker@cvs.openbsd.org 2013/02/06 00:20:42
[servconf.c sshd_config sshd_config.5] Change default of MaxStartups to 10:30:100 to start doing random early drop at 10 connections up to 100 connections. This will make it harder to DoS as CPUs have come a long way since the original value was set back in 2000. Prompted by nion at debian org, ok markus@
Diffstat (limited to 'servconf.c')
-rw-r--r--servconf.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/servconf.c b/servconf.c
index 21b371c84..b2a60fd6c 100644
--- a/servconf.c
+++ b/servconf.c
@@ -1,5 +1,5 @@
1 1
2/* $OpenBSD: servconf.c,v 1.233 2012/12/02 20:46:11 djm Exp $ */ 2/* $OpenBSD: servconf.c,v 1.234 2013/02/06 00:20:42 dtucker Exp $ */
3/* 3/*
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
5 * All rights reserved 5 * All rights reserved
@@ -256,11 +256,11 @@ fill_default_server_options(ServerOptions *options)
256 if (options->gateway_ports == -1) 256 if (options->gateway_ports == -1)
257 options->gateway_ports = 0; 257 options->gateway_ports = 0;
258 if (options->max_startups == -1) 258 if (options->max_startups == -1)
259 options->max_startups = 10; 259 options->max_startups = 100;
260 if (options->max_startups_rate == -1) 260 if (options->max_startups_rate == -1)
261 options->max_startups_rate = 100; /* 100% */ 261 options->max_startups_rate = 30; /* 30% */
262 if (options->max_startups_begin == -1) 262 if (options->max_startups_begin == -1)
263 options->max_startups_begin = options->max_startups; 263 options->max_startups_begin = 10;
264 if (options->max_authtries == -1) 264 if (options->max_authtries == -1)
265 options->max_authtries = DEFAULT_AUTH_FAIL_MAX; 265 options->max_authtries = DEFAULT_AUTH_FAIL_MAX;
266 if (options->max_sessions == -1) 266 if (options->max_sessions == -1)