From 23fb432317063494e3f2add521d1352052f9ebb5 Mon Sep 17 00:00:00 2001 From: TC1977 <37350377+TC1977@users.noreply.github.com> Date: Tue, 20 Nov 2018 11:56:42 -0500 Subject: [PATCH] Change server-side ipsec.conf settings Switching to inline rekeying from reauthentication, and lengthening child_SA and IKE_SA lifetimes. --- roles/vpn/templates/ipsec.conf.j2 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/roles/vpn/templates/ipsec.conf.j2 b/roles/vpn/templates/ipsec.conf.j2 index 086e18af..2320f4ec 100644 --- a/roles/vpn/templates/ipsec.conf.j2 +++ b/roles/vpn/templates/ipsec.conf.j2 @@ -4,11 +4,14 @@ config setup conn %default fragmentation=yes - rekey=no + rekey=yes + reauth=no dpdaction=clear keyexchange=ikev2 compress=yes dpddelay=35s + lifetime=3h + ikelifetime=12h {% if algo_windows %} ike={{ ciphers.compat.ike }}