summaryrefslogtreecommitdiff
path: root/data/templates/ipsec/swanctl.conf.j2
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-08-01 13:08:36 +0200
committerGitHub <noreply@github.com>2024-08-01 13:08:36 +0200
commit962ead698e191ff413aaa1585270dfed48100547 (patch)
treed0aefbaeaf2b5d1716dd578060a93eb07618972a /data/templates/ipsec/swanctl.conf.j2
parentb12cd41000bf64950582dc62538be609741aac54 (diff)
parent50cf1746d3ab5e3666a3e502c67d7d853ae7f932 (diff)
downloadvyos-1x-962ead698e191ff413aaa1585270dfed48100547.tar.gz
vyos-1x-962ead698e191ff413aaa1585270dfed48100547.zip
Merge pull request #3221 from lucasec/t5873
T5873: ipsec remote access VPN: support VTI interfaces.
Diffstat (limited to 'data/templates/ipsec/swanctl.conf.j2')
-rw-r--r--data/templates/ipsec/swanctl.conf.j22
1 files changed, 2 insertions, 0 deletions
diff --git a/data/templates/ipsec/swanctl.conf.j2 b/data/templates/ipsec/swanctl.conf.j2
index d44d0f5e4..698a9135e 100644
--- a/data/templates/ipsec/swanctl.conf.j2
+++ b/data/templates/ipsec/swanctl.conf.j2
@@ -31,6 +31,8 @@ pools {
{{ pool }} {
{% if pool_config.prefix is vyos_defined %}
addrs = {{ pool_config.prefix }}
+{% elif pool_config.range is vyos_defined %}
+ addrs = {{ pool_config.range.start }}-{{ pool_config.range.stop }}
{% endif %}
{% if pool_config.name_server is vyos_defined %}
dns = {{ pool_config.name_server | join(',') }}