summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorsarthurdev <965089+sarthurdev@users.noreply.github.com>2021-05-29 14:40:12 +0200
committerChristian Poessinger <christian@poessinger.com>2021-05-29 14:42:55 +0200
commit0593173f6b7002b7d24f44b43eccbd07c71a3d79 (patch)
tree9354defdffce50987bf4142eb9e0075b07a5e48d /data
parent462b3bee0434de4ac9a52ec5dc72aee3f64fa9a3 (diff)
downloadvyos-1x-0593173f6b7002b7d24f44b43eccbd07c71a3d79.tar.gz
vyos-1x-0593173f6b7002b7d24f44b43eccbd07c71a3d79.zip
vti: ipsec: T2816: Fix vti-up-down
Diffstat (limited to 'data')
-rw-r--r--data/templates/ipsec/ipsec.conf.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/ipsec/ipsec.conf.tmpl b/data/templates/ipsec/ipsec.conf.tmpl
index 75f3de39c..67447366c 100644
--- a/data/templates/ipsec/ipsec.conf.tmpl
+++ b/data/templates/ipsec/ipsec.conf.tmpl
@@ -42,7 +42,7 @@ conn peer-{{ peer }}
conn peer-{{ peer }}-vti
also = peer-{{ peer }}
leftsubnet = 0.0.0.0/0
- leftupdown = "/etc/ipsec.d/vti-up-down {{ peer_conf.vti.bind }}"
+ leftupdown = "/etc/ipsec.d/vti-up-down {{ peer_conf.vti.bind }} {{ peer_conf.dhcp_interface if 'dhcp_interface' in peer_conf else 'no' }}"
rightsubnet = 0.0.0.0/0
mark = {{ marks[peer_conf.vti.bind] }}
{{ ike_esp.conn(None, None, vti_esp, ciphers.esp[peer_conf.vti.esp_group] if vti_esp else None) }}