my vpn connection drop frequently

Connected Tutorial
This question is a follow-up to this tutorial:

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 ??

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

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! Nate