summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2022-10-06 07:43:24 +0100
committerGitHub <noreply@github.com>2022-10-06 08:43:24 +0200
commit50f26c54d095420907a1d31168c162ad3c27ee36 (patch)
tree6ea352c4abfd31ad4565c2518c1d1a8715bea6a8 /data/templates
parent7d719106cbfdfa013bf6318353d4198ab05fea20 (diff)
downloadvyos-1x-50f26c54d095420907a1d31168c162ad3c27ee36.tar.gz
vyos-1x-50f26c54d095420907a1d31168c162ad3c27ee36.zip
T4727: add support for RADIUS rate limiting to PPTP (#1570)
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/accel-ppp/pptp.config.j29
1 files changed, 9 insertions, 0 deletions
diff --git a/data/templates/accel-ppp/pptp.config.j2 b/data/templates/accel-ppp/pptp.config.j2
index cc1a45d6b..442830b6b 100644
--- a/data/templates/accel-ppp/pptp.config.j2
+++ b/data/templates/accel-ppp/pptp.config.j2
@@ -93,6 +93,15 @@ bind={{ radius_source_address }}
gw-ip-address={{ gw_ip }}
{% endif %}
+{% if radius_shaper_attr %}
+[shaper]
+verbose=1
+attr={{ radius_shaper_attr }}
+{% if radius_shaper_vendor %}
+vendor={{ radius_shaper_vendor }}
+{% endif %}
+{% endif %}
+
[cli]
tcp=127.0.0.1:2003