How to bypass VPN for specific websites and services on macOS X


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 OS X 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.

« Back

VPN Trial

24 hours
Hide your IP.
Encrypt your traffic.
Enjoy your privacy.
Start Now

Smart DNS Trial

7 days
196 Unblocked websites.
Unlimited devices.
Original ISP speed.
Start Now

Get extra 10% OFF!

This offer is valid for 5 minutes