From 47645f9d0243ce48a473ab7f8cdbd22c19f69f28 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. --- data/templates/accel-ppp/sstp.config.j2 | 3 +++ 1 file changed, 3 insertions(+) (limited to 'data/templates/accel-ppp/sstp.config.j2') diff --git a/data/templates/accel-ppp/sstp.config.j2 b/data/templates/accel-ppp/sstp.config.j2 index 7ee28dd21..cf1d23f54 100644 --- a/data/templates/accel-ppp/sstp.config.j2 +++ b/data/templates/accel-ppp/sstp.config.j2 @@ -16,6 +16,9 @@ thread-count={{ thread_count }} [common] single-session=replace +{% if max_concurrent_sessions is vyos_defined %} +max-starting={{ max_concurrent_sessions }} +{% endif %} [log] syslog=accel-sstp,daemon -- cgit v1.2.3