summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2023-04-11 19:24:38 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2023-04-11 19:24:38 +0000
commitb897f00a008bab31264020948242cf76833ad3b8 (patch)
treee225d04fca302ba626d6c78a426b6d6478f761f3 /data/templates
parent0b0f991a86461ed725762010cf263fb2f0eaa16a (diff)
downloadvyos-1x-b897f00a008bab31264020948242cf76833ad3b8.tar.gz
vyos-1x-b897f00a008bab31264020948242cf76833ad3b8.zip
T4727: Add RADIUS rate-limit attribute for vpn pptp
Add rate-limit attribute, multiplier, vendor specific attribute for the [shaper] section
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/accel-ppp/pptp.config.tmpl14
1 files changed, 14 insertions, 0 deletions
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