summaryrefslogtreecommitdiff
path: root/data/templates/ipsec/swanctl/peer.tmpl
diff options
context:
space:
mode:
authorsarthurdev <965089+sarthurdev@users.noreply.github.com>2021-08-10 13:52:54 +0200
committersarthurdev <965089+sarthurdev@users.noreply.github.com>2021-08-10 13:52:54 +0200
commit4b4080a9fd388e42b8147cd778210cc407188901 (patch)
treea5a676a22cb30ecf3666ea57d0ef2aa1cf3caa77 /data/templates/ipsec/swanctl/peer.tmpl
parent0b37de6ba97810636ecbf9a84c6df8f5409ae78c (diff)
downloadvyos-1x-4b4080a9fd388e42b8147cd778210cc407188901.tar.gz
vyos-1x-4b4080a9fd388e42b8147cd778210cc407188901.zip
ipsec: T3727: Fix ESP proposals not being set from tunnel esp-group
Diffstat (limited to 'data/templates/ipsec/swanctl/peer.tmpl')
-rw-r--r--data/templates/ipsec/swanctl/peer.tmpl2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/templates/ipsec/swanctl/peer.tmpl b/data/templates/ipsec/swanctl/peer.tmpl
index 32ead9e60..dd29ea7d4 100644
--- a/data/templates/ipsec/swanctl/peer.tmpl
+++ b/data/templates/ipsec/swanctl/peer.tmpl
@@ -86,7 +86,7 @@
{% set remote_port = tunnel_conf.remote.port if tunnel_conf.remote is defined and tunnel_conf.remote.port is defined else '' %}
{% set remote_suffix = '[{0}/{1}]'.format(proto, remote_port) if proto or remote_port else '' %}
peer_{{ name }}_tunnel_{{ tunnel_id }} {
- esp_proposals = {{ esp_group[peer_conf.default_esp_group] | get_esp_ike_cipher | join(',') }}
+ esp_proposals = {{ tunnel_esp | get_esp_ike_cipher | join(',') }}
{% if tunnel_esp.mode is not defined or tunnel_esp.mode == 'tunnel' %}
{% if tunnel_conf.local is defined and tunnel_conf.local.prefix is defined %}
{% set local_prefix = tunnel_conf.local.prefix if 'any' not in tunnel_conf.local.prefix else ['0.0.0.0/0', '::/0'] %}