summaryrefslogtreecommitdiff
path: root/data/templates/accel-ppp/pptp.config.j2
diff options
context:
space:
mode:
authoraapostoliuk <a.apostoliuk@vyos.io>2024-01-24 15:50:01 +0200
committeraapostoliuk <a.apostoliuk@vyos.io>2024-01-29 16:34:35 +0200
commitd9e57fe65dd538c6ea80637f4f6f23cf11dc583d (patch)
tree5f0f48920a8c387616d4c2a909471a780f3f8b54 /data/templates/accel-ppp/pptp.config.j2
parent34419458d99cf8d07279f92935c0f10d9b603f33 (diff)
downloadvyos-1x-d9e57fe65dd538c6ea80637f4f6f23cf11dc583d.tar.gz
vyos-1x-d9e57fe65dd538c6ea80637f4f6f23cf11dc583d.zip
T5971: Rewritten ppp options in accel-ppp services
Rewritten 'ppp-options' to the same view in all accel-ppp services. Adding IPv6 support to PPTP.
Diffstat (limited to 'data/templates/accel-ppp/pptp.config.j2')
-rw-r--r--data/templates/accel-ppp/pptp.config.j216
1 files changed, 11 insertions, 5 deletions
diff --git a/data/templates/accel-ppp/pptp.config.j2 b/data/templates/accel-ppp/pptp.config.j2
index daafd6e92..7fe4b17bf 100644
--- a/data/templates/accel-ppp/pptp.config.j2
+++ b/data/templates/accel-ppp/pptp.config.j2
@@ -6,6 +6,8 @@ shaper
{# Common authentication backend definitions #}
{% include 'accel-ppp/config_modules_auth_mode.j2' %}
ippool
+{# Common IPv6 definitions #}
+{% include 'accel-ppp/config_modules_ipv6.j2' %}
{# Common authentication protocols (pap, chap ...) #}
{% if authentication.require is vyos_defined %}
{% if authentication.require == 'chap' %}
@@ -40,7 +42,6 @@ wins{{ loop.index }}={{ server }}
{% endfor %}
{% endif %}
-
[pptp]
ifname=pptp%d
{% if outside_address is vyos_defined %}
@@ -54,6 +55,10 @@ echo-failure=3
{% if default_pool is vyos_defined %}
ip-pool={{ default_pool }}
{% endif %}
+{% if default_ipv6_pool is vyos_defined %}
+ipv6-pool={{ default_ipv6_pool }}
+ipv6-pool-delegate={{ default_ipv6_pool }}
+{% endif %}
[client-ip-range]
0.0.0.0/0
@@ -61,10 +66,11 @@ ip-pool={{ default_pool }}
{# Common IP pool definitions #}
{% include 'accel-ppp/config_ip_pool.j2' %}
-[ppp]
-verbose=5
-check-ip=1
-single-session=replace
+{# Common IPv6 pool definitions #}
+{% include 'accel-ppp/config_ipv6_pool.j2' %}
+
+{# Common ppp-options definitions #}
+{% include 'accel-ppp/ppp-options.j2' %}
{# Common chap-secrets and RADIUS server/option definitions #}
{% include 'accel-ppp/config_chap_secrets_radius.j2' %}