summaryrefslogtreecommitdiff
path: root/data/templates/accel-ppp/sstp.config.j2
diff options
context:
space:
mode:
authoraapostoliuk <a.apostoliuk@vyos.io>2023-12-19 10:55:04 +0200
committerChristian Breunig <christian@breunig.cc>2024-01-01 23:25:06 +0100
commitb48982530efcd17a21910d1116272af4482a30ce (patch)
tree20493f5eb6ab5043452dad2bdf7e8d08cbfae646 /data/templates/accel-ppp/sstp.config.j2
parent25f2c9c4b1174507b17db4d5e34226f50dbdc781 (diff)
downloadvyos-1x-b48982530efcd17a21910d1116272af4482a30ce.tar.gz
vyos-1x-b48982530efcd17a21910d1116272af4482a30ce.zip
T5801: Rewritten L2TP to get_config_dict
Rewritten L2TP to get_config_dict Rewritten L2TP xml to accel-ppp patterns Migrated 'idle' to 'ppp-options.lcp-echo-timeout' Migrated 'authentication.mppe' to 'ppp-options.mppe' Migrated 'authentication.radius.dae-server' to 'authentication.radius.dynamic-author' Migrated 'authentication.require' to 'authentication.protocol' Added 'authentication.radius.acct-interim-jitter' Added 'authentication.radius.preallocate-vif' Added 'authentication.radius.server.<IP>.acct-port' Added 'ppp-options.ipv4' Added smoke-tests Fixed 'preallocate-vif' in SSTP (cherry picked from commit 09e0a2ca035ee39a68a510b28cc74560669d0420)
Diffstat (limited to 'data/templates/accel-ppp/sstp.config.j2')
-rw-r--r--data/templates/accel-ppp/sstp.config.j21
1 files changed, 1 insertions, 0 deletions
diff --git a/data/templates/accel-ppp/sstp.config.j2 b/data/templates/accel-ppp/sstp.config.j2
index 6117cea1b..014ae1235 100644
--- a/data/templates/accel-ppp/sstp.config.j2
+++ b/data/templates/accel-ppp/sstp.config.j2
@@ -57,6 +57,7 @@ verbose=1
check-ip=1
{# MTU #}
mtu={{ mtu }}
+unit-preallocate={{ "1" if authentication.radius.preallocate_vif is vyos_defined else "0" }}
ipv6={{ 'allow' if ppp_options.ipv6 is vyos_defined("deny") and client_ipv6_pool is vyos_defined else ppp_options.ipv6 }}
ipv4={{ ppp_options.ipv4 }}
mppe={{ ppp_options.mppe }}