summaryrefslogtreecommitdiff
path: root/data/templates/ipsec/swanctl.conf.tmpl
diff options
context:
space:
mode:
authorsarthurdev <965089+sarthurdev@users.noreply.github.com>2021-07-04 17:17:54 +0200
committerChristian Poessinger <christian@poessinger.com>2021-07-04 20:46:30 +0200
commit79f1c891f3ae72fae3028f114e652225a082d9ef (patch)
tree62bb06ced4406e27417d57ad298f52afa1feebb1 /data/templates/ipsec/swanctl.conf.tmpl
parentb2bf1592189fb9298f2a68272418a132a73f37bf (diff)
downloadvyos-1x-79f1c891f3ae72fae3028f114e652225a082d9ef.tar.gz
vyos-1x-79f1c891f3ae72fae3028f114e652225a082d9ef.zip
ipsec: T1210: T1251: extend ra config with address pools/traffic selectors
Diffstat (limited to 'data/templates/ipsec/swanctl.conf.tmpl')
-rw-r--r--data/templates/ipsec/swanctl.conf.tmpl14
1 files changed, 14 insertions, 0 deletions
diff --git a/data/templates/ipsec/swanctl.conf.tmpl b/data/templates/ipsec/swanctl.conf.tmpl
index 15c035688..03f1e9942 100644
--- a/data/templates/ipsec/swanctl.conf.tmpl
+++ b/data/templates/ipsec/swanctl.conf.tmpl
@@ -21,6 +21,20 @@ connections {
{% endif %}
}
+pools {
+{% if remote_access is defined %}
+{% 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(",") }}
+{% if ra_conf.pool.exclude is defined %}
+ split_exclude = {{ ra_conf.pool.exclude | join(",") }}
+{% endif %}
+ }
+{% endfor %}
+{% endif %}
+}
+
secrets {
{% if profile is defined %}
{% for name, profile_conf in profile.items() if profile_conf.disable is not defined and profile_conf.bind is defined and profile_conf.bind.tunnel is defined %}