Monday, July 15, 2013

OSX VPN send all traffic over VPN via route command

Base on this inputs from stackoverflow
sudo /sbin/route add -host -interface ppp0

In this example, "" 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).