diff options
author | Christian Breunig <christian@breunig.cc> | 2024-07-22 12:32:12 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-22 12:32:12 +0200 |
commit | eb39342171b4767e483d616df16f4d94c86be108 (patch) | |
tree | 4bcaf2606a436026b8dabdcd55374f0561ca3a6a /data/templates/ipsec/swanctl/peer.j2 | |
parent | a3d76254f4d47665f56261c9089a8a34761e0e18 (diff) | |
parent | 99bce9f6291ef53ecb9507f9b6d61ec28be7be17 (diff) | |
download | vyos-1x-eb39342171b4767e483d616df16f4d94c86be108.tar.gz vyos-1x-eb39342171b4767e483d616df16f4d94c86be108.zip |
Merge pull request #3842 from vyos/mergify/bp/circinus/pr-3841
T6599: ipsec: support disabling rekey of CHILD_SA, converge and fix defaults (backport #3841)
Diffstat (limited to 'data/templates/ipsec/swanctl/peer.j2')
-rw-r--r-- | data/templates/ipsec/swanctl/peer.j2 | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/data/templates/ipsec/swanctl/peer.j2 b/data/templates/ipsec/swanctl/peer.j2 index 58f0199fa..3a9af2c94 100644 --- a/data/templates/ipsec/swanctl/peer.j2 +++ b/data/templates/ipsec/swanctl/peer.j2 @@ -63,6 +63,11 @@ life_packets = {{ vti_esp.life_packets }} {% endif %} life_time = {{ vti_esp.lifetime }}s +{% if vti_esp.disable_rekey is vyos_defined %} + rekey_bytes = 0 + rekey_packets = 0 + rekey_time = 0s +{% endif %} local_ts = 0.0.0.0/0,::/0 remote_ts = 0.0.0.0/0,::/0 updown = "/etc/ipsec.d/vti-up-down {{ peer_conf.vti.bind }}" @@ -108,6 +113,11 @@ life_packets = {{ tunnel_esp.life_packets }} {% endif %} life_time = {{ tunnel_esp.lifetime }}s +{% if tunnel_esp.disable_rekey is vyos_defined %} + rekey_bytes = 0 + rekey_packets = 0 + rekey_time = 0s +{% endif %} {% if tunnel_esp.mode is not defined or tunnel_esp.mode == 'tunnel' %} {% if tunnel_conf.local.prefix is vyos_defined %} {% set local_prefix = tunnel_conf.local.prefix if 'any' not in tunnel_conf.local.prefix else ['0.0.0.0/0', '::/0'] %} |