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.

VPN is working properly.

However, I wanted to route only a specific IP/block to net_vpn and all the rest of the traffic to net_gateway.

route 192.168.1.0 255.255.255.0 net_gateway
route 10.8.1.0 255.255.0.0 vpn_gateway

I tried this, but I think it does not work.

share|improve this question
    
Which OS? Keep in mind that routing on the reverse path must also set up correctly. Debug your setup using a packet analyzer like tcpdump or wireshark. –  artistoex Oct 15 '12 at 7:41
    
Linux (Debian) Yeah. I only wanted to allow specific block, since that VPN is slow. –  Louie Miranda Oct 16 '12 at 2:49
    
Have you done the packet analysis? –  artistoex Oct 16 '12 at 12:40
add comment

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.