Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Possible to configure OS X VPN to split traffic between VPN and local interface? [closed]

Tags:

I'm using the built-in OS X VPN tool to connect to my company's network. I notice that, when I'm connected, all traffic goes over the VPN.

In the past when I've used the Windows VPN tool I was able to configure it such that only traffic to certain IP ranges and/or host names went over the VPN and everything else went over the local network.

Is that possible with a default OS X VPN? I don't see anything in the settings...

like image 413
jph Avatar asked Sep 13 '10 19:09

jph


People also ask

What is split tunneling Mac?

The Split Tunnel feature allows you to exclude specific applications or IP addresses from using the Intego Privacy Protection VPN encrypted tunnel. However, due to a bug in macOS which impacts split tunneling, this feature is not supported and may impact your internet access when enabled.

How do I send all traffic through VPN Mac?

This apple support page says there is a setting called "Send all traffic over VPN connection" which can be enabled through the Apple menu > System Preferences > Network > Advanced > Options dialogue.


2 Answers

Yes, this is possible. First, you have to remove the checkmark from "Send all traffic over VPN connection" in Settings -> Network -> Your VPN -> Advanced.

Then, from the Terminal you can use "route" to add specific hosts that should be routed via your VPN.

sudo /sbin/route add -host pandora.com -interface ppp0 

In this example, "pandora.com" is the host that should be routed via the VPN and ppp0 is the name of the VPN network interface (ifconfig shows you the list of network interfaces).

like image 122
kiteloop Avatar answered Oct 26 '22 04:10

kiteloop


To make it work also with the Pandora app, you can use

sudo /sbin/route add -host internal-tuner.pandora.com -interface ppp0 

and when you finish, you can simply do

sudo /sbin/route delete -host internal-tuner.pandora.com -interface ppp0 
like image 23
opoloko Avatar answered Oct 26 '22 05:10

opoloko