Adding static routing after SSL VPN connection
I have a little prob 🙂
From time to time i need to connect to my workplace. I'm doing it by running SSL VPN client (FortiNet).
There is a small glitch. When I already connect to my company network - I got IP - and the tunnel is running. But the VPN tunnel traffic route isn't correct at all.. So finally I cannot ping my company's gateway. I wrote a shell script which "manually" set up proper trace for packets.. It looks like this:
cat VPNTUNNEL.command
sudo route add -net 10.1.0.0/16 10.9.9.30
Script adds static route - and the problem is solved.
My question is: how can I make Snow Leopard run mentioned script automatically - every time when system detect that tunnel is running (the ppp1 network interface is up)?
--
Cheers
macosxgeek
Maybe I need to add that on Ubuntu - I just copy shell script to /etc/ppp.d/ directory - and it works.. 🙂
Message was edited by: macosxgeek
Mac Pro, Mac OS X (10.6.6), It's quite neat... ;-)