From 27c6dce457781fcda791899b7c6e0f1b9c03efd4 Mon Sep 17 00:00:00 2001 From: Viacheslav Hletenko Date: Thu, 2 Nov 2023 13:58:48 +0000 Subject: T5704: PPPoE L2TP SSTP IPoE add option max-concurrent-sessions Add `max-starting` option: [common] max-starting=N Specifies maximum concurrent session attempts which server may processed set service pppoe-server max-concurrent-sessions '30' Useful to prevent high CPU utilization and compat execution scripts per time. (cherry picked from commit 47645f9d0243ce48a473ab7f8cdbd22c19f69f28) --- data/templates/accel-ppp/pppoe.config.j2 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'data/templates/accel-ppp/pppoe.config.j2') diff --git a/data/templates/accel-ppp/pppoe.config.j2 b/data/templates/accel-ppp/pppoe.config.j2 index dd53edd28..e1ae3660e 100644 --- a/data/templates/accel-ppp/pppoe.config.j2 +++ b/data/templates/accel-ppp/pppoe.config.j2 @@ -62,10 +62,13 @@ wins{{ loop.index }}={{ server }} {# Common chap-secrets and RADIUS server/option definitions #} {% include 'accel-ppp/config_chap_secrets_radius.j2' %} -{% if session_control is vyos_defined and session_control is not vyos_defined('disable') %} [common] +{% if session_control is vyos_defined and session_control is not vyos_defined('disable') %} single-session={{ session_control }} {% endif %} +{% if max_concurrent_sessions is vyos_defined %} +max-starting={{ max_concurrent_sessions }} +{% endif %} [ppp] verbose=1 -- cgit v1.2.3