I'm using OpenVPN Connect 2.1.3.111 on Windows 10 to access my company's network. I have no control whatsoever on the OpenVPN server.
It appears that right now, all traffic goes through the VPN connection when I'm connected. I'd like some of the traffic (i.e. to public access resources) to not go through the VPN.
Is this possible at all with OpenVPN on Windows?
If so, is that something that needs to be adjusted in Windows itself or in the OpenVPN client?
Best Answer
Your server config will probably have something along the lines of this:
When connected to your OpenVPN server, you can check your routes via command line and
route print
.So, you got some options, as you are an admin on your device.
route-nopull
:route-noexec
:route CHANGE 0.0.0.0 MASK 0.0.0.0 <your preferred gateway> METRIC n1 IF n2
route ADD x.x.x.x MASK y.y.y.y z.z.z.z
where
x.x.x.x
is your company-subnet,y.y.y.y
the netmask andz.z.z.z
is your VPN-gatewayserver.n1/2
depend on your configuration, if you even need them.These points are not everything you can do, but it should be enough.
Detailed reading can be done in the official documentation.
This is an example, of course. So you have to adapt to your configuration.