How to exclude a Website / IP from going through the VPN
Posted by Max Biggavelli on 27 December 2014 16:32
In some cases people want to prevent (exclude) a website / or IP from being accessed through the VPN.
What is the point of this? The point is that having your VPN IP visiting a specific website is not always the best idea for whichever reasons, or for example for websites where the VPN IP is blacklisted and so on.
So the sole idea of this tutorial is to explain how to use your original ISP instead, you can exclude website(s) or IPs from being accessed from the VPN IP (an often asked website where this makes sense is www.haxkfxrums.net).
Right click on this "cmd.exe" and choose "run as administrator"!
2. Now we need to find the Gateway IP address, in our example: "192.168.1.254"
In our example it's "192.168.1.254" save that IP somewhere or just copy it (in your case this IP could be different, most likely "192.168.0.1" or "192.168.178.1" or similar).
3. Now we need to find the IP address of the website which you want to use your real ip for, in this example case we use haxxfxrums.net, so type in "ping hackforums.net"
4. We will now add a route for this Website (you can set as many routes as you want for multiple websites), so type in the window:
"route add 126.96.36.199 192.168.1.254"
and hit Enter.
The syntax for route add command is "route add destinationIP gatewayIP"
"route -p add 188.8.131.52 192.168.1.254"
The same approach explained above for windows, is also possible on Linux and Mac OS too read here
sudo route -n add -net ExcludeIP MyGateway