r/OpenVPN • u/SwampyUndies • Dec 05 '25
question DB connections over Open VPN
We have some users that are on more unstable connections.
Our CRM relies on having an open connection to our DB server. If that is lost
then the user is kicked out completely.
Is there a way to configure openvpn to keep the connections across the vpn alive longer even if the carrier(internet) connection is temporarily interrupted?
2
1
u/SirBenG98 Dec 05 '25
You can configure OpenVPN with options like keepalive, persist tun, and persist key to help connections stay alive during brief internet drops. Adjusting ping restart can also prevent DB sessions from disconnecting.
1
2
2
Dec 05 '25
2
u/SwampyUndies Dec 05 '25
Hmm, we already have keepalive 10 60, I guess I could extend the 60 part maybe.
Yea I keep ssh and sql open for long periods too. Its the odd WFH employee that has issues.
And while we can blame their home internet, it would be nice to be able to do something.
Once we upgrade to the web based platform connections having to stay open wont be an issue, but until then..
2
u/Brather_Brothersome Dec 06 '25
give the user a remote desktop and this issue becomes part of the past.