diff options
author | sarthurdev <965089+sarthurdev@users.noreply.github.com> | 2021-08-10 13:52:54 +0200 |
---|---|---|
committer | sarthurdev <965089+sarthurdev@users.noreply.github.com> | 2021-08-10 13:52:54 +0200 |
commit | 4b4080a9fd388e42b8147cd778210cc407188901 (patch) | |
tree | a5a676a22cb30ecf3666ea57d0ef2aa1cf3caa77 | |
parent | 0b37de6ba97810636ecbf9a84c6df8f5409ae78c (diff) | |
download | vyos-1x-4b4080a9fd388e42b8147cd778210cc407188901.tar.gz vyos-1x-4b4080a9fd388e42b8147cd778210cc407188901.zip |
ipsec: T3727: Fix ESP proposals not being set from tunnel esp-group
-rw-r--r-- | data/templates/ipsec/swanctl/peer.tmpl | 2 |
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'] %} |