VPN - how to add route?

In Mountain Lion, I could add the VPN route to file /etc/ppp/ip-up and file was executed after connection happened. After upgrade to Mavericks, it seems no longer the case. I have to manualy enter rooute command after every connection to VPN from command line.

Is where any way to make it happend automaticaly like in previos OSX versions?

MacBook Pro (15-inch Early 2011), OS X Mavericks (10.9)

Posted on Oct 26, 2013 1:09 AM

Reply
4 replies

Dec 3, 2013 3:00 AM in response to KinoManija

/etc/ppp/ip-up seems to be executed. But check your PATH variable when "ip-up" script is running.
Try, for example, add these lines somewhere on top of ip-up script:

exec > /tmp/ip-up.log

exec2>&1


and check that "log" file. You'll may see something like:

/etc/ppp/ip-up: line 30: route: command not found


Because PATH contain just "/usr/gnu/bin:/usr/local/bin:/bin:/usr/bin:.". No "/sbin" (for i.e. route command) nor "/usr/sbin" (i.e. netstat command).

If so, simply add this line somewhere at the beginning of ip-up script:

PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/sbin


or call these commands with full path.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

VPN - how to add route?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.