Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm using NetworkManager and OpenVPN on linux.

The problem is I get random disconnections, especially when idle.

So I was thinking maybe there was an option to keep it alive. I have seen examples for OpenVPN config files, but I don't think I'm using one. I have set up everything directly from the NetworkManager. I found the NetworkManger config file for my current connection, and it has these sections: [connection], [vpn], and [ipv4]. Does any of those have a keepalive option? What's the syntax, and how does it work?

share|improve this question
You might want to show us the logs of your VPN connection, both server and client. OpenVPN indeed has a keepalive option, but NM GUI has no way to pass the parameters, so you might want to hack into the global OpenVPN configuration, but I didn't find one, so it may be hard coded into NM. –  Braiam Jul 30 '13 at 3:35

1 Answer 1

Insert on the client:

keepalive 10 60 

This will keep your connection up.

share|improve this answer
Please provide more details for your answer. Where does that get inserted? What does it do? –  Taegost Aug 14 '13 at 15:11
I didn't downvote you, but seriously, where do I insert that line? –  ChocoDeveloper Aug 15 '13 at 17:04

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.