summaryrefslogtreecommitdiffhomepage
path: root/options.h
diff options
context:
space:
mode:
Diffstat (limited to 'options.h')
-rw-r--r--options.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/options.h b/options.h
index 1fa7d3f..1feae40 100644
--- a/options.h
+++ b/options.h
@@ -161,6 +161,13 @@ etc) slower (perhaps by 50%). Recommended for most small systems. */
/* Specify the number of clients we will allow to be connected but
* not yet authenticated. After this limit, connections are rejected */
+/* The first setting is per-IP, to avoid denial of service */
+#ifndef MAX_UNAUTH_PER_IP
+#define MAX_UNAUTH_PER_IP 5
+#endif
+
+/* And then a global limit to avoid chewing memory if connections
+ * come from many IPs */
#ifndef MAX_UNAUTH_CLIENTS
#define MAX_UNAUTH_CLIENTS 30
#endif