diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-08-10 18:49:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-10 18:49:10 +0200 |
commit | b6427a12cc796ba6919db7cafeeb5fc8e193b352 (patch) | |
tree | 41166df372022a7d115eb4c76304aeb4c74bb5f4 /data | |
parent | 349b5ede105cdb4032295ae861b5784aefdf7af6 (diff) | |
parent | 4b4080a9fd388e42b8147cd778210cc407188901 (diff) | |
download | vyos-1x-b6427a12cc796ba6919db7cafeeb5fc8e193b352.tar.gz vyos-1x-b6427a12cc796ba6919db7cafeeb5fc8e193b352.zip |
Merge pull request #961 from sarthurdev/T3727
ipsec: T3727: Fix ESP proposals not being set from tunnel esp-group
Diffstat (limited to 'data')
-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'] %} |