summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2023-04-11 20:20:19 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2023-04-11 20:20:19 +0000
commitf62dffaa3121261925b4850fe0400dd33449e5f5 (patch)
tree1d7a5e9b7b83a76ca2769087be11172a021b608a /data/templates
parent14582acd1c7d169f6d50efc7aaf250fecff81740 (diff)
downloadvyos-1x-f62dffaa3121261925b4850fe0400dd33449e5f5.tar.gz
vyos-1x-f62dffaa3121261925b4850fe0400dd33449e5f5.zip
T4727: Change and fix RADIUS rate-limit option for pptp
Initially the option 'rate-limit' was implemented with the wrong place in the CLI: set vpn pptp remote-access authentication rate-limit <xxx> Expected under 'radius' section: set vpn pptp remote-access authentication radius rate-limit <xxx> Configuration for 'rate-limit' (Jinja2 template) never worked for pptp, fix it.
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/accel-ppp/pptp.config.j27
1 files changed, 6 insertions, 1 deletions
diff --git a/data/templates/accel-ppp/pptp.config.j2 b/data/templates/accel-ppp/pptp.config.j2
index 442830b6b..78a629d2d 100644
--- a/data/templates/accel-ppp/pptp.config.j2
+++ b/data/templates/accel-ppp/pptp.config.j2
@@ -93,10 +93,15 @@ bind={{ radius_source_address }}
gw-ip-address={{ gw_ip }}
{% endif %}
-{% if radius_shaper_attr %}
+{% 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 %}