Page 1 of 1

Bypass VPN for Local Web Addresses

Posted: Tue Jun 26, 2012 3:10 pm
by eumoria
A cursory search didn't provide me with the information I require however if this post has already been answered I apologize,

I am using a pay-for VPN hosting using OpenVPN. What I need to do, however, is to bypass the VPN for two local web hosts;

http://it and http://srv01

They have static IP addresses what I need to know is what line I need to add to my *.opvn file to make this happen. I assumed it would be route xxx.xxx.xxx.xxx yyy.yyy.yyy.yyy X being my local IP I need to bypass and Y being my local gateway but this does not work so I'm at a loss at this moment :oops:

If anyone can help it would be greatly appreciated.

Thanks!

Re: Bypass VPN for Local Web Addresses

Posted: Wed Jun 27, 2012 6:53 am
by janjust
try adding

Code: Select all

route A.B.C.D 255.255.255.255 net_gateway
to bypass VPN routing for the host A.B.C.D ; similarly for an entire subnet, use

Code: Select all

route A.B.C.D 255.255.255.0 net_gateway

('net_gateway' is an OpenVPN keyword)