Wednesday, December 25, 2013

osx - set routing after establishing vpn connection

nice and easy trick to set up routing after VPN connection has been established.

just create ip-up file in /etc/ppp

for example:

sudo nano cat /etc/ppp/ip-up

#!/bin/sh
/sbin/route  -v add -net 10.0.0 -interface ppp0

be sure to set chmod 755.