Bypass VPN for Local Web Addresses

How to customize and extend your OpenVPN installation.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
eumoria
OpenVpn Newbie
Posts: 1
Joined: Tue Jun 26, 2012 3:06 pm

Bypass VPN for Local Web Addresses

Post by eumoria » Tue Jun 26, 2012 3:10 pm

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!

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: Bypass VPN for Local Web Addresses

Post by janjust » Wed Jun 27, 2012 6:53 am

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)

Post Reply