summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-04-13 08:54:18 +0200
committerGitHub <noreply@github.com>2023-04-13 08:54:18 +0200
commit65278fa76c07674b63e170c9ec1f85722aced16f (patch)
tree4cecd2e705de9ba35efdc4697f6cc17980e09dd0 /data
parent94a6fb73d248e9e9e2c3d4a4ac023228473c9f48 (diff)
parentb897f00a008bab31264020948242cf76833ad3b8 (diff)
downloadvyos-1x-65278fa76c07674b63e170c9ec1f85722aced16f.tar.gz
vyos-1x-65278fa76c07674b63e170c9ec1f85722aced16f.zip
Merge pull request #1952 from sever-sever/T4727
T4727: Add RADIUS rate-limit attribute for vpn pptp
Diffstat (limited to 'data')
-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