summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-04-11 23:12:31 +0200
committerGitHub <noreply@github.com>2023-04-11 23:12:31 +0200
commitc04976f3ccfb5a739a679050a4238a2cfa1e81d8 (patch)
tree1d7a5e9b7b83a76ca2769087be11172a021b608a /data/templates
parent14582acd1c7d169f6d50efc7aaf250fecff81740 (diff)
parentf62dffaa3121261925b4850fe0400dd33449e5f5 (diff)
downloadvyos-1x-c04976f3ccfb5a739a679050a4238a2cfa1e81d8.tar.gz
vyos-1x-c04976f3ccfb5a739a679050a4238a2cfa1e81d8.zip
Merge pull request #1953 from sever-sever/T4727-curr
T4727: Change and fix RADIUS rate-limit option for pptp
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 %}