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've gotta use a VPN as the first in several hoop-jumps into a client system, but this kills all other networking for me, which makes it very hard to get any work done :(

I only need to use the VPN for VNC/Rdesktop connection to a specific IP address, and I want all my other network traffic to go over my normal wifi / en1 / vmnet / etc. I know the answer is somewhere in route but can't figure it out based on the documentation I can find.

I've tried this as a starting point once the VPN is connected:

sudo route add -net 10.255.99.0 netmask 255.255.255.0 dev utun1

But I get no response, and have to ctrl-c to get back to my terminal.

So in summation, I want to do two things to the (with VPN) routing table:

  • Send all traffic to one IP (or 10.255.99.* if that's easier) to utun1
  • Remove all the other routes that point to utun1, or stop utun1 from being the default gateway somehow?
share|improve this question

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.