How to: Mac OS X bypass VPN for specific websites and services


You might have seen our post about bypassing VPN connection in Windows. In short this is to keep your VPN connection active and being able to access specific sites and services without it. For a bit more theory, please read our Windows post and return here for specific steps to follow.

Setting up Static Routing on Mac

( compatible with Mac OS X Mountain Lion, Mavericks and Yosemite )

Bypassing VPN on OSX is very  similar to Windows, only few names and commands are different.

1. To get the gateway IP run netstat-r and look at the Gateway column. It should look like 192.168.XX.XX; once you find it take a note of it because you will need it in a moment.

2. As with Windows tutorial we will use as an example of web address. To find the IP of the website you have to run ping or use IP lookup field on Either way your should get IP as

3. Time to create the routing rule. On Mac it looks like this: “sudo route –nv destinationIP gatewayIP” and if you add the IP addresses you found earlier you will have sudo route-nv 192.168.XX.XX.

4. Connect to your VPN and go to You should see your real location and IP address if it worked (despite active VPN connection).

As we have mentioned in Windows tutorial, this uses similar idea to our SmartDNS service.

Thursday, 26 March 2015 at 17:55 in Setup