Home » Questions » Computers [ Ask a new question ]

How do I setup Ubuntu/Linux's Network manager to selectively route network traffic through the VPN?

How do I setup Ubuntu/Linux's Network manager to selectively route network traffic through the VPN?

I'm using Ubuntu 9.04 and I just noticed that ALL of my network traffic is being routed through my VPN. I would like the VPN to route only the traffic hitting servers on the VPN and then connect directly to anywhere else on the internet as needed. The VPN is PPTP VPN that is run using some sort of Microsoft stack.

Asked by: Guest | Views: 73
Total answers/comments: 2
Guest [Entry]

"For my Cisco Compatible VPN in Ubuntu 9.04 (VPNC), there is a check box to select.

Edit your connections, go to the VPN tab, and edit the VPN configuration.

Go to the IPv4 Settings tab, and in the bottom right is a button ""Routes"".

Click the button and check the box
""Use this connection only for resources on its network""

As others have mentioned, there are text based configuration files one can alter instead of using the GUI. One nice thing about GUIs is that you don't have to memorize all the possible values or worry about spelling"
Guest [Entry]

"If you want to do a block edit, export or simply a backup the details are in this folder /etc/NetworkManager/system-connections/

To apply changes if any you should do

sudo NetworkManager stop
sudo NetworkManager start"