4
2
I'm using OpenVPN on Windows with a TAP adapter.
I know you can specify a route to a specific ip address to go to your local internet connection. However it can't do the same for a hostname/domain.
Is there a way to keep my traffic on the VPN but route requests to www.google.com for example through my default gateaway at home (192.168.1.1 in my case)?
I was thinking that I could set 127.0.0.1 www.google.com in my HOSTS file and run a local apache and deal with a ruleset in there, but I'd rather not have to run a local webserver/proxy if there is another way I don't know about.
1Looks like something I'm looking for but the documentation isn't very clear on how to use this. Do you maybe have an example on how I would route traffic to lets' say www.google.com through my local adapter instead of the openvpn one?
Do I edit the .ovpn file with: push "route www.google.com 192.168.1.1" --allow-pull-fqdn – Jack Skinner – 2015-09-24T02:44:32.010