Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I had been using shimo to connect to my vpn and shimo has the ability to execute apps/scripts when the connection happens. I have moved to 10.6 and am now using the built in client. I don't see any way to execute apps/scripts when the built in client connects. Does anyone know if this can be done? If so please provide details.

Thanks

share|improve this question
add comment

4 Answers

up vote 1 down vote accepted

Well, as far as I remember, Shimo can you any of your excisting connections. If its 10.6 compatible, you could just use it for the triggering/scripting.

If I'm wrong, sorry. That's just how it worked the last time I used it.

//Ulrik

share|improve this answer
    
Shimo is the best thing right now. –  Carnell Jan 19 '10 at 5:55
add comment

Use an ip-up (and an ip-down if needed) script in /etc/ppp, a quick article on macosxhints.com has a few details.

share|improve this answer
add comment

Use something like NetworkLocation to detect when you get the new IP address on your private network and trigger certain actions.

To do it for free, you could run a cron job every minute to detect if you've got an ip address in the VPN and trigger an action the first time it sees it.

share|improve this answer
add comment

The right way to do this is with an ip-up script in /etc, but historically, this has not actually worked properly on OS X.

I have not tried it since 10.4, but what I had to do as a workaround back then was setup a launchd job that watched /var/log/ppp.log for relevant (i.e. VPN-related) entries.

I'd say both methods are worth a shot.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.