Attempt to manage vpn routing table with
Related Stackoverflow Question:
# setup sudo touch /etc/ppp/ip-up sudo vim /etc/ppp/ip-up # fill the script sudo chmod +x /etc/ppp/ip-up # tail the logs sudo tail -f /var/log/ip-up.log
Tested on MacOS
10.13 and didn't work for me. Script doesn't get called.
This works, shebang was wrong. Thanks to athairus and Mark Gaensicke in the comments.
- 2022-11-02: I've updated the script to reflect suggested changes in comments and I've added logging of the command
You forgot the bang in the shebang:
See my fork.