Page MenuHome Accel-ppp

Connection limit for non-shared interfaces by interface index
Open, Requires assessmentPublicFEATURE REQUEST

Description

Please accept the patch

diff -NPur accel-ppp.orig/accel-pppd/ctrl/ipoe/ipoe.c accel-ppp/accel-pppd/ctrl/ipoe/ipoe.c
--- accel-ppp.orig/accel-pppd/ctrl/ipoe/ipoe.c  2020-07-23 12:16:49.977388790 +0300
+++ accel-ppp/accel-pppd/ctrl/ipoe/ipoe.c       2020-07-23 12:30:18.239298289 +0300
@@ -2055,7 +2055,7 @@
        if (conf_max_sessions && ap_session_stat.active + ap_session_stat.starting >= conf_max_sessions)
                return NULL;

-       if (connlimit_loaded && connlimit_check(cl_key_from_ipv4(saddr)))
+       if (connlimit_loaded && connlimit_check(serv->opt_shared ? cl_key_from_ipv4(saddr) : serv->ifindex))
                return NULL;

Details

Protocol
IPoE
Version
-

Event Timeline

Harunaga created this task.Jul 23 2020, 11:47