summaryrefslogtreecommitdiff
path: root/data/templates
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2023-02-08 18:05:36 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2023-02-08 18:05:36 +0000
commitf6da0e89992e82a0650cd9488aeb65f53ffa1977 (patch)
tree7c536aa7c92a4d141dc3bb844e079e9a654dd781 /data/templates
parent1042fc32c371a74f048ffaf9a551b5d13c227f45 (diff)
downloadvyos-1x-f6da0e89992e82a0650cd9488aeb65f53ffa1977.tar.gz
vyos-1x-f6da0e89992e82a0650cd9488aeb65f53ffa1977.zip
T1993: PPPoE-server add section shaper and fwmark option
Extended PPPoE-server rate-limiter to avoid shaping marked resources Often this feature needs for ISP, which provides access to some IX or its resources. set service pppoe-server shaper fwmark '223'
Diffstat (limited to 'data/templates')
-rw-r--r--data/templates/accel-ppp/config_shaper_radius.j212
1 files changed, 9 insertions, 3 deletions
diff --git a/data/templates/accel-ppp/config_shaper_radius.j2 b/data/templates/accel-ppp/config_shaper_radius.j2
index 942cdf132..0cf6a6a92 100644
--- a/data/templates/accel-ppp/config_shaper_radius.j2
+++ b/data/templates/accel-ppp/config_shaper_radius.j2
@@ -1,7 +1,7 @@
-{% if authentication.mode is vyos_defined('radius') %}
-{% if authentication.radius.rate_limit.enable is vyos_defined %}
+{% if authentication.mode is vyos_defined('radius') or shaper is vyos_defined %}
[shaper]
verbose=1
+{% if authentication.radius.rate_limit.enable is vyos_defined %}
attr={{ authentication.radius.rate_limit.attribute }}
{% if authentication.radius.rate_limit.vendor is vyos_defined %}
vendor={{ authentication.radius.rate_limit.vendor }}
@@ -10,4 +10,10 @@ vendor={{ authentication.radius.rate_limit.vendor }}
rate-multiplier={{ authentication.radius.rate_limit.multiplier }}
{% endif %}
{% endif %}
-{% endif %}
+{% if shaper is vyos_defined %}
+{% if shaper.fwmark is vyos_defined %}
+fwmark={{ shaper.fwmark }}
+down-limiter=htb
+{% endif %}
+{% endif %}
+{% endif %} \ No newline at end of file