summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-08-15 10:48:09 +0200
committerGitHub <noreply@github.com>2022-08-15 10:48:09 +0200
commit3c4e778d713b167b737ed673d1a68696c7cef145 (patch)
treed9fd1b7876d7ee58eb95fab40bef4d5cd973d29c
parent466e3b192d15563bc21fc308fa7916eb5aae8664 (diff)
parentfed4cbf9b2f02628745229305cfec4f8a342c554 (diff)
downloadvyos-1x-3c4e778d713b167b737ed673d1a68696c7cef145.tar.gz
vyos-1x-3c4e778d713b167b737ed673d1a68696c7cef145.zip
Merge pull request #1465 from sever-sever/T4595
dmvpn: T4595: Fix dpd profile options
-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