From fed4cbf9b2f02628745229305cfec4f8a342c554 Mon Sep 17 00:00:00 2001 From: Viacheslav Hletenko Date: Wed, 10 Aug 2022 21:52:48 +0000 Subject: dmvpn: T4595: Fix dpd profile options Fix template for configuration DMVPN IKE profile dead-peer-detection delay and dead-peer-detecion timeout options --- data/templates/ipsec/swanctl/profile.j2 | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'data/templates/ipsec/swanctl/profile.j2') 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 -- cgit v1.2.3