Increase IKE lifetime
- Set both "ikelifetime" and "salifetime" to 24 hours, which is recommended since we have "rekey=no" on the server. VPN clients will normally initiate rekey with a shorter interval. Ref: https://github.com/libreswan/libreswan/issues/405#issuecomment-765109809 https://libreswan.org/man/ipsec.conf.5.html
This commit is contained in:
parent
1c975c8410
commit
2b6586cf1b
@ -274,6 +274,8 @@ conn shared
|
||||
ikev2=never
|
||||
ike=aes256-sha2,aes128-sha2,aes256-sha1,aes128-sha1,aes256-sha2;modp1024,aes128-sha1;modp1024
|
||||
phase2alg=aes_gcm-null,aes128-sha1,aes256-sha1,aes256-sha2_512,aes128-sha2,aes256-sha2
|
||||
ikelifetime=24h
|
||||
salifetime=24h
|
||||
sha2-truncbug=no
|
||||
|
||||
conn l2tp-psk
|
||||
|
@ -224,6 +224,8 @@ conn shared
|
||||
ikev2=never
|
||||
ike=aes256-sha2,aes128-sha2,aes256-sha1,aes128-sha1,aes256-sha2;modp1024,aes128-sha1;modp1024
|
||||
phase2alg=aes_gcm-null,aes128-sha1,aes256-sha1,aes256-sha2_512,aes128-sha2,aes256-sha2
|
||||
ikelifetime=24h
|
||||
salifetime=24h
|
||||
sha2-truncbug=no
|
||||
|
||||
conn l2tp-psk
|
||||
|
@ -255,6 +255,8 @@ conn shared
|
||||
ikev2=never
|
||||
ike=aes256-sha2,aes128-sha2,aes256-sha1,aes128-sha1,aes256-sha2;modp1024,aes128-sha1;modp1024
|
||||
phase2alg=aes_gcm-null,aes128-sha1,aes256-sha1,aes256-sha2_512,aes128-sha2,aes256-sha2
|
||||
ikelifetime=24h
|
||||
salifetime=24h
|
||||
sha2-truncbug=no
|
||||
|
||||
conn l2tp-psk
|
||||
|
Loading…
Reference in New Issue
Block a user