Routing specific IP/block to VPN and the rest to net_gateway in OpenVPN

1

1

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.

Louie Miranda

Posted 2012-10-15T05:13:27.877

Reputation: 111

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 – 2012-10-15T07:41:50.370

Linux (Debian) Yeah. I only wanted to allow specific block, since that VPN is slow. – Louie Miranda – 2012-10-16T02:49:26.543

Have you done the packet analysis? – artistoex – 2012-10-16T12:40:28.063

No answers