Take max_sessions from max_requests.
[freeradius.git] / raddb / mods-available / eap
index 6d1ef0d..0fffa88 100644 (file)
@@ -60,10 +60,10 @@ eap {
 
        #
        #  Help prevent DoS attacks by limiting the number of
-       #  sessions that the server is tracking.  Most systems
-       #  can handle ~30 EAP sessions/s, so the default limit
-       #  of 4096 should be OK.
-       max_sessions = 4096
+       #  sessions that the server is tracking.  For simplicity,
+       #  this is taken from the "max_requests" directive in
+       #  radiusd.conf.
+       max_sessions = ${max_requests}
 
        # Supported EAP-types