diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2022-07-05 13:14:13 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2022-07-05 13:14:13 +0000 |
commit | 168f24eafeac4d7d4691a3853061d5c00e0009ca (patch) | |
tree | 8881382951100e2d3013328af28804ddd906601f /data/templates/accel-ppp | |
parent | 14a7a85b49ccb6c961b7919fb25aff03504ba0db (diff) | |
download | vyos-1x-168f24eafeac4d7d4691a3853061d5c00e0009ca.tar.gz vyos-1x-168f24eafeac4d7d4691a3853061d5c00e0009ca.zip |
ipoe: T4507: Add option rate-limit for RADIUS authentication
Add rate-limit options: attribute, muptiplier and vendor
set service ipoe-server auth radius rate-limit attribute 'Mikrotik-Rate-Limit'
set service ipoe-server auth radius rate-limit enable
set service ipoe-server auth radius rate-limit multiplier '0.001'
set service ipoe-server auth radius rate-limit vendor 'Miktorik'
Diffstat (limited to 'data/templates/accel-ppp')
-rw-r--r-- | data/templates/accel-ppp/ipoe.config.tmpl | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/data/templates/accel-ppp/ipoe.config.tmpl b/data/templates/accel-ppp/ipoe.config.tmpl index 9fc816a2c..476c922b8 100644 --- a/data/templates/accel-ppp/ipoe.config.tmpl +++ b/data/templates/accel-ppp/ipoe.config.tmpl @@ -127,13 +127,18 @@ bind={{ radius_source_address }} dae-server={{ radius_dynamic_author.server }}:{{ radius_dynamic_author.port }},{{ radius_dynamic_author.key }} {% endif %} -{% if radius_shaper_attr %} +{% if radius_shaper_enable %} [shaper] verbose=1 +{% if radius_shaper_attr %} attr={{ radius_shaper_attr }} -{% if radius_shaper_vendor %} +{% endif %} +{% if radius_shaper_multiplier %} +rate-multiplier={{ radius_shaper_multiplier }} +{% endif %} +{% if radius_shaper_vendor %} vendor={{ radius_shaper_vendor }} -{% endif %} +{% endif %} {% endif %} {% endif %} |