summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2026-10-31 14:47:24 +0100
committerGitHub <noreply@github.com>2026-10-31 14:47:24 +0100
commitdac20a9c5bd7e49cab45a30fe211ae3be76e7fc5 (patch)
tree2eeeeed97a59bfac173c1a91fd68feebb5ef7b28 /data
parentdfd2b46ff41af4edf2fd4a2a1b9fae1efe48c145 (diff)
parent5d352d7902019469d2f87aa8fc398af2de213dee (diff)
downloadvyos-1x-dac20a9c5bd7e49cab45a30fe211ae3be76e7fc5.tar.gz
vyos-1x-dac20a9c5bd7e49cab45a30fe211ae3be76e7fc5.zip
Merge pull request #5615 from ruben-herold/T9543-ipsec-reset-default-connection-type
ipsec: T9543: start a peer again on reset when connection-type is unset
Diffstat (limited to 'data')
-rw-r--r--data/templates/ipsec/swanctl/peer.j26
1 files changed, 3 insertions, 3 deletions
diff --git a/data/templates/ipsec/swanctl/peer.j2 b/data/templates/ipsec/swanctl/peer.j2
index d0a51d81a..f38291866 100644
--- a/data/templates/ipsec/swanctl/peer.j2
+++ b/data/templates/ipsec/swanctl/peer.j2
@@ -41,7 +41,7 @@
{% if peer[0:1] == '@' %}
keyingtries = 0
reauth_time = 0
-{% elif peer_conf.connection_type is not vyos_defined or peer_conf.connection_type is vyos_defined('initiate') %}
+{% elif peer_conf.connection_type is vyos_defined('initiate') %}
keyingtries = 0
{% if reauth and ike.key_exchange is vyos_defined('ikev2') %}
reauth_time = {{ ike.lifetime }}s
@@ -115,7 +115,7 @@
mode = {{ vti_esp.mode }}
{% if peer[0:1] == '@' %}
start_action = none
-{% elif peer_conf.connection_type is not vyos_defined or peer_conf.connection_type is vyos_defined('initiate') %}
+{% elif peer_conf.connection_type is vyos_defined('initiate') %}
start_action = start
{% elif peer_conf.connection_type is vyos_defined('trap') %}
start_action = trap
@@ -179,7 +179,7 @@
mode = {{ tunnel_esp.mode }}
{% if peer[0:1] == '@' %}
start_action = none
-{% elif peer_conf.connection_type is not vyos_defined or peer_conf.connection_type is vyos_defined('initiate') %}
+{% elif peer_conf.connection_type is vyos_defined('initiate') %}
start_action = start
{% elif peer_conf.connection_type is vyos_defined('trap') %}
start_action = trap