diff options
author | Daniil Baturin <daniil@vyos.io> | 2022-10-06 07:43:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-06 08:43:24 +0200 |
commit | 50f26c54d095420907a1d31168c162ad3c27ee36 (patch) | |
tree | 6ea352c4abfd31ad4565c2518c1d1a8715bea6a8 | |
parent | 7d719106cbfdfa013bf6318353d4198ab05fea20 (diff) | |
download | vyos-1x-50f26c54d095420907a1d31168c162ad3c27ee36.tar.gz vyos-1x-50f26c54d095420907a1d31168c162ad3c27ee36.zip |
T4727: add support for RADIUS rate limiting to PPTP (#1570)
-rw-r--r-- | data/templates/accel-ppp/pptp.config.j2 | 9 | ||||
-rw-r--r-- | interface-definitions/vpn-pptp.xml.in | 1 |
2 files changed, 10 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 diff --git a/interface-definitions/vpn-pptp.xml.in b/interface-definitions/vpn-pptp.xml.in index 28a53acb9..5e52965fd 100644 --- a/interface-definitions/vpn-pptp.xml.in +++ b/interface-definitions/vpn-pptp.xml.in @@ -110,6 +110,7 @@ </node> #include <include/radius-server-ipv4.xml.i> #include <include/accel-ppp/radius-additions.xml.i> + #include <include/accel-ppp/radius-additions-rate-limit.xml.i> </children> </node> </children> |