summaryrefslogtreecommitdiff
path: root/data/templates/accel-ppp/l2tp.config.j2
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2022-12-24 11:30:05 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2022-12-30 18:53:00 +0000
commite471707ccff74c1bf500a43b5dfc47ffcf944644 (patch)
tree28203b66e9734523c659342edf152b6db8a5fa6a /data/templates/accel-ppp/l2tp.config.j2
parente83671d0f6e1b95867ec11430a66ac02b4b9fbdb (diff)
downloadvyos-1x-e471707ccff74c1bf500a43b5dfc47ffcf944644.tar.gz
vyos-1x-e471707ccff74c1bf500a43b5dfc47ffcf944644.zip
T4893: Add ppp-options ipv6-interface-id for L2TP
Add ppp-options IPv6 interface id for vpn L2TP - fixed or random interface identifier for IPv6 - peer interface identifier for IPv6 - whether to accept peer’s interface identifier set vpn l2tp remote-access ppp-options ipv6-accept-peer-intf-id set vpn l2tp remote-access ppp-options ipv6-intf-id 'random' set vpn l2tp remote-access ppp-options ipv6-peer-intf-id 'calling-sid'
Diffstat (limited to 'data/templates/accel-ppp/l2tp.config.j2')
-rw-r--r--data/templates/accel-ppp/l2tp.config.j28
1 files changed, 7 insertions, 1 deletions
diff --git a/data/templates/accel-ppp/l2tp.config.j2 b/data/templates/accel-ppp/l2tp.config.j2
index 3d1e835a9..5914fd375 100644
--- a/data/templates/accel-ppp/l2tp.config.j2
+++ b/data/templates/accel-ppp/l2tp.config.j2
@@ -126,7 +126,13 @@ ipv6={{ ppp_ipv6 }}
{% else %}
{{ 'ipv6=allow' if client_ipv6_pool_configured else '' }}
{% endif %}
-
+{% if ppp_ipv6_intf_id is vyos_defined %}
+ipv6-intf-id={{ ppp_ipv6_intf_id }}
+{% endif %}
+{% if ppp_ipv6_peer_intf_id is vyos_defined %}
+ipv6-peer-intf-id={{ ppp_ipv6_peer_intf_id }}
+{% endif %}
+ipv6-accept-peer-intf-id={{ "1" if ppp_ipv6_accept_peer_intf_id else "0" }}
{% if client_ipv6_pool %}
[ipv6-pool]