bazbax ([info]foobarbazbax) wrote,
@ 2008-01-28 14:12:00
Previous Entry  Add to memories!  Tell a Friend!  Next Entry
VPN with EVDO Card and OS X on a MacBook Pro.
Question:
I have a Verizon EV-DO card. I connect on my MacBook Pro using the built in "Internet Connect" It looks like it creates a PPP connection. When I launch Cisco VPNClient it tells me that there are no interfaces connected and exists after I click okay. What do I have to do to connect to the VPN when I'm using my EVDO card?

Answer:
After connecting to the EVDO network you need to restart the VPN service by running this command in terminal:
sudo /System/Library/StartupItems/CiscoVPN/CiscoVPN restart


Now if I can just figure out how to automatically connect when I insert the card.


(Post a new comment)

How to make a watchdog
[info]reidmefirst
2008-02-05 03:34 pm UTC (link)
There is most definitely a better way to do it than what I'm about to suggest, but this might get you started?

Write a stupid little perl script that tails /var/log/system.log and greps for the string indicating that the card has been inserted (watch the files in /var/log/ to see where the indication that the card has been inserted pops up, it might not necessarily be system.log, though it should be...). When it has, shellexec your command above. You could probably write a better daemon that would monitor the cardbus service (whatever it's called) via an OS system call, but that would require actual effort on my part to figure it out.

Reid

(Reply to this)(Thread)

Re: How to make a watchdog
[info]foobarbazbax
2008-02-05 06:36 pm UTC (link)
Great idea!

Actually I wanted to connect to the network automatically, not start VPN.

It turns out I can use Applescript for this.

I put this into bin/ppp_connect:
tell application "Internet Connect"
connect
end tell

Whenever my watchdog script sees this line:
SMSIWirelessUSB: USB Modem driver loaded.

It runs this command:
osascript bin/ppp_connect

Presto! I'm connected whenever I insert the card.

Then, if I want to connect to the VPN I run bin/vpn, which contains these two lines:

sudo /System/Library/StartupItems/CiscoVPN/CiscoVPN restart
sudo vpnclient connect sunnyvale


Thanks for the tip Reid!

(Reply to this)(Parent)


Create an Account
Forgot your login?
Login w/ OpenID
English • Español • Deutsch • Русский…