summaryrefslogtreecommitdiff
path: root/data/templates/ipsec/swanctl
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2022-02-20 20:32:06 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2022-02-20 20:32:06 +0000
commit4ec6262629393bd8a88951970c367a5cc3d57a42 (patch)
treecc29ebbaa193ceb6598fc3d114374a18b567204b /data/templates/ipsec/swanctl
parent529af7898d062b42ac33e15bfdc62c14184e098f (diff)
downloadvyos-1x-4ec6262629393bd8a88951970c367a5cc3d57a42.tar.gz
vyos-1x-4ec6262629393bd8a88951970c367a5cc3d57a42.zip
ipsec: T3948: Add CLI site-to-site peer connection-type none
set vpn ipsec site-to-site peer 192.0.2.14 connection-type none
Diffstat (limited to 'data/templates/ipsec/swanctl')
-rw-r--r--data/templates/ipsec/swanctl/peer.tmpl4
1 files changed, 4 insertions, 0 deletions
diff --git a/data/templates/ipsec/swanctl/peer.tmpl b/data/templates/ipsec/swanctl/peer.tmpl
index f4e28d818..673dc3375 100644
--- a/data/templates/ipsec/swanctl/peer.tmpl
+++ b/data/templates/ipsec/swanctl/peer.tmpl
@@ -77,6 +77,8 @@
start_action = start
{% elif peer_conf.connection_type == 'respond' %}
start_action = trap
+{% elif peer_conf.connection_type == 'none' %}
+ start_action = none
{% endif %}
{% if ike.dead_peer_detection is defined %}
{% set dpd_translate = {'clear': 'clear', 'hold': 'trap', 'restart': 'start'} %}
@@ -119,6 +121,8 @@
start_action = start
{% elif peer_conf.connection_type == 'respond' %}
start_action = trap
+{% elif peer_conf.connection_type == 'none' %}
+ start_action = none
{% endif %}
{% if ike.dead_peer_detection is defined %}
{% set dpd_translate = {'clear': 'clear', 'hold': 'trap', 'restart': 'start'} %}