Here’s my current ipsec.conf
.
What do I need to change to make sure the client retries connecting to server indefinitely.
$ cat /etc/ipsec.conf
conn %default
ike=aes256gcm16-sha384-modp3072!
esp=aes256gcm16-sha384-modp3072!
conn ikev2
auto=start
dpdaction=restart
closeaction=restart
keyingtries=%forever
[email protected]
leftsourceip=%config
leftauth=eap-tls
leftcert=vpn-client.crt
right=159.203.26.109
rightid=my-vpn.com
rightsubnet=0.0.0.0/0
rightauth=pubkey
The following strategy makes sure the connection is always established.