my vpn connection drop frequently

Posted September 9, 2021 190 views
UbuntuSecurityVPNUbuntu 20.04

hi, I have build my vpn server as this post guide, it work well , but there is an issue now, the connection from my mac pro to my ubuntu droplet(my vpn server) always auto disconnected at very short time. i changed dpddelay parameter from default 300s to 1800s, but it’s no effect!! what is the exact problem ??

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

Hey there!

Were you seeing any logs on your Ubuntu server when the disconnect occurs that could provide more details as to why this is failing? You may want to check your syslogs as well. There may be more information on which side is closing the connection. You may also want to set dpdaction=restart and set dpdtimeout=to a larger value as well in your ipsec.conf file.

Hope it helps!