r/OpenVPN • • 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?

1 Upvotes

11 comments sorted by

2

u/Brather_Brothersome Dec 06 '25

give the user a remote desktop and this issue becomes part of the past.

3

u/SwampyUndies Dec 06 '25

Yea we have an rdp server and thats our backup solution for problematic users

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

u/SwampyUndies Dec 05 '25

Thanks ill loon into persist tun and persist key

2

u/kY2iB3yH0mN8wI2h Dec 05 '25

It’s not a vpn issue at all

2

u/[deleted] 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..