From b897f00a008bab31264020948242cf76833ad3b8 Mon Sep 17 00:00:00 2001 From: Viacheslav Hletenko Date: Tue, 11 Apr 2023 19:24:38 +0000 Subject: T4727: Add RADIUS rate-limit attribute for vpn pptp Add rate-limit attribute, multiplier, vendor specific attribute for the [shaper] section --- data/templates/accel-ppp/pptp.config.tmpl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'data') diff --git a/data/templates/accel-ppp/pptp.config.tmpl b/data/templates/accel-ppp/pptp.config.tmpl index 3cfc4a906..dcb1ddf08 100644 --- a/data/templates/accel-ppp/pptp.config.tmpl +++ b/data/templates/accel-ppp/pptp.config.tmpl @@ -93,6 +93,20 @@ bind={{ radius_source_address }} gw-ip-address={{ gw_ip }} {% endif %} +{% if radius_shaper_enable %} +[shaper] +verbose=1 +{% if radius_shaper_attr %} +attr={{ radius_shaper_attr }} +{% endif %} +{% if radius_shaper_multiplier %} +rate-multiplier={{ radius_shaper_multiplier }} +{% endif %} +{% if radius_shaper_vendor %} +vendor={{ radius_shaper_vendor }} +{% endif %} +{% endif %} + [cli] tcp=127.0.0.1:2003 -- cgit v1.2.3