summaryrefslogtreecommitdiff
path: root/data/templates/ipsec/swanctl
diff options
context:
space:
mode:
authorViacheslav Hletenko <v.gletenko@vyos.io>2022-08-10 21:52:48 +0000
committerViacheslav Hletenko <v.gletenko@vyos.io>2022-08-10 21:52:48 +0000
commitfed4cbf9b2f02628745229305cfec4f8a342c554 (patch)
tree054ade52b663b6b67712c4f131bd198cadfb969c /data/templates/ipsec/swanctl
parent7ae34b68649ef526c18e662d444465bf18a23939 (diff)
downloadvyos-1x-fed4cbf9b2f02628745229305cfec4f8a342c554.tar.gz
vyos-1x-fed4cbf9b2f02628745229305cfec4f8a342c554.zip
dmvpn: T4595: Fix dpd profile options
Fix template for configuration DMVPN IKE profile dead-peer-detection delay and dead-peer-detecion timeout options
Diffstat (limited to 'data/templates/ipsec/swanctl')
-rw-r--r--data/templates/ipsec/swanctl/profile.j24
1 files changed, 4 insertions, 0 deletions
diff --git a/data/templates/ipsec/swanctl/profile.j2 b/data/templates/ipsec/swanctl/profile.j2
index d4f417378..8519a84f8 100644
--- a/data/templates/ipsec/swanctl/profile.j2
+++ b/data/templates/ipsec/swanctl/profile.j2
@@ -9,6 +9,10 @@
version = {{ ike.key_exchange[4:] if ike.key_exchange is vyos_defined else "0" }}
rekey_time = {{ ike.lifetime }}s
keyingtries = 0
+{% if ike.dead_peer_detection is vyos_defined %}
+ dpd_timeout = {{ ike.dead_peer_detection.timeout }}
+ dpd_delay = {{ ike.dead_peer_detection.interval }}
+{% endif %}
{% if profile_conf.authentication.mode is vyos_defined('pre-shared-secret') %}
local {
auth = psk