summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-07-04 20:57:15 +0200
committerChristian Poessinger <christian@poessinger.com>2021-07-04 20:57:33 +0200
commitc8bf1deec9ce169f74049423ba21f6ef1360a3df (patch)
tree8a8b897f37f8a87ebe8724b48621b6a80674bb44
parentb16827699604b3aa1f222c76a4cf80e9011974aa (diff)
downloadvyos-1x-c8bf1deec9ce169f74049423ba21f6ef1360a3df.tar.gz
vyos-1x-c8bf1deec9ce169f74049423ba21f6ef1360a3df.zip
ipsec: T1210: T1251: add remote-access "name-server" definition to pool config
-rw-r--r--data/templates/ipsec/swanctl.conf.tmpl2
-rw-r--r--interface-definitions/vpn_ipsec.xml.in23
2 files changed, 3 insertions, 22 deletions
diff --git a/data/templates/ipsec/swanctl.conf.tmpl b/data/templates/ipsec/swanctl.conf.tmpl
index 03f1e9942..0eda8479a 100644
--- a/data/templates/ipsec/swanctl.conf.tmpl
+++ b/data/templates/ipsec/swanctl.conf.tmpl
@@ -26,7 +26,7 @@ pools {
{% for ra, ra_conf in remote_access.items() if remote_access is defined %}
ra-{{ ra }} {
addrs = {{ ra_conf.pool.prefix }}
- dns = {{ ra_conf.pool.dns_server | join(",") }}
+ dns = {{ ra_conf.pool.name_server | join(",") }}
{% if ra_conf.pool.exclude is defined %}
split_exclude = {{ ra_conf.pool.exclude | join(",") }}
{% endif %}
diff --git a/interface-definitions/vpn_ipsec.xml.in b/interface-definitions/vpn_ipsec.xml.in
index bc802b39e..75fd6a92f 100644
--- a/interface-definitions/vpn_ipsec.xml.in
+++ b/interface-definitions/vpn_ipsec.xml.in
@@ -810,27 +810,8 @@
</constraint>
</properties>
</leafNode>
- <leafNode name="dns-server">
- <properties>
- <help>IPv4 or IPv6 DNS addresses for pool</help>
- <completionHelp>
- <list>any</list>
- </completionHelp>
- <valueHelp>
- <format>ipv4</format>
- <description>IPv4 DNS address for pool</description>
- </valueHelp>
- <valueHelp>
- <format>ipv6</format>
- <description>IPv6 DNS address for pool</description>
- </valueHelp>
- <constraint>
- <validator name="ipv4-address"/>
- <validator name="ipv6-address"/>
- </constraint>
- <multi/>
- </properties>
- </leafNode>
+ <!-- Include Accel-PPP definition here, maybe time for a rename? -->
+ #include <include/accel-ppp/name-server.xml.i>
</children>
</node>
<leafNode name="timeout">