diff options
author | Viacheslav Hletenko <v.gletenko@vyos.io> | 2023-02-17 10:35:49 +0000 |
---|---|---|
committer | Viacheslav Hletenko <v.gletenko@vyos.io> | 2023-02-17 10:35:49 +0000 |
commit | 27928236fcd67a0d710e163d7a3cb381a7f700c1 (patch) | |
tree | 50c4ef0f0bad26b0198d7fb03c102bda65b8d525 /data | |
parent | b91956f02d8621b7eecd7f54b42d1b4cb63937e4 (diff) | |
download | vyos-1x-27928236fcd67a0d710e163d7a3cb381a7f700c1.tar.gz vyos-1x-27928236fcd67a0d710e163d7a3cb381a7f700c1.zip |
T5005: PPPoE server allow any login with option noauth
Disabling authentication is useful in emergency situations
(e.g. RADIUS server is down) or testing purposes.
Clients can connect with any login and username.
set service pppoe-server authentication mode 'noauth'
Diffstat (limited to 'data')
-rw-r--r-- | data/templates/accel-ppp/pppoe.config.j2 | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/data/templates/accel-ppp/pppoe.config.j2 b/data/templates/accel-ppp/pppoe.config.j2 index 811c4ccc0..dd53edd28 100644 --- a/data/templates/accel-ppp/pppoe.config.j2 +++ b/data/templates/accel-ppp/pppoe.config.j2 @@ -30,6 +30,11 @@ syslog=accel-pppoe,daemon copy=1 level=5 +{% if authentication.mode is vyos_defined("noauth") %} +[auth] +noauth=1 +{% endif %} + {% if snmp.master_agent is vyos_defined %} [snmp] master=1 @@ -133,7 +138,10 @@ pado-delay={{ pado_delay_param.value }} called-sid={{ authentication.radius.called_sid_format }} {% endif %} -{% if authentication.mode is vyos_defined("local") %} +{% if authentication.mode is vyos_defined("local") or authentication.mode is vyos_defined("noauth") %} +{% if authentication.mode is vyos_defined("noauth") %} +noauth=1 +{% endif %} {% if client_ip_pool.name is vyos_defined %} {% for pool, pool_config in client_ip_pool.name.items() %} {% if pool_config.subnet is vyos_defined %} |