Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

a noob question about openVPN.

My laptop runs Ubuntu 12.04 and I connect to a variety of Wifi access points as I move around.

I've setup an account with AirVPN and created two openVPN connections in network manager (UDP and TCP).

I'd like the laptop to automatically connect/disconnect to the AirVPN whevener the Wifi or LAN network comes up/down.

The goal is to have all traffic go through the VPN. I don't generally access intranet sites - just localhost for development.

I've read some other q's but alot seem to be about server configuration. I'm looking for just the configuration for my Laptop.

This might be a start, but not sure the best way to tie it in. How to connect to VPN from the command line in Linux?

Thanks for the help!


share|improve this question

migrated from serverfault.com Jun 5 '13 at 17:42

This question came from our site for system and network administrators.


Your Answer


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

Browse other questions tagged or ask your own question.