The top of your script is fine. It should start with #!/bin/sh.
The 'push' idea I mentioned is purely theoretical. Instead of starting autossh at boot time, I'd like to start it on demand. I'd want to send a message to the phone using APN (maybe via Prowl?), and catch the event on the phone (using GRiP?) to start autossh.
Please look up any terms you're not familar with.
-
Regarding the change of IP, you are right, I'm seeing the same behaviour. There is a period of time where the tunnel is still up, but on the wrong interface. It is possible to send a signal to autossh (via killall) to tell it to renew the connection manually, but that is not desirable.
If the tunnel is started from the data side (Edge/3G), then I believe it's a little better. The tunnel still doesn't switch to wifi, but at least it doesn't go down.
I coundt say it any better, i wish i had the ability to explain a situation (the IP/3G/WIfi glitch) as well as yourself... by all means, take over ;P...
i was just upset u didnt reference my nickname in any way, if u really have been using this for a long time, and u know other people who have, thats great...
but as far as i knew, No one (even on android) didnt know how to run a server accessible by public (specific servers only obv) over 3G on the iPhone/other phones....
but u obviously deserve major cutos for realizing what i did =)
If someone with the know-how would be willing to automate these tasks via a Cydia app for the rest of us tards that would be awesome.
Related question: is there also a way to trigger the iphone's native VPN client at startup and have it auto reconnect?
[EDIT] Tried fooling around with com.apple.raccoon.plist but no go. It looks like there are a couple of options in there for VPN auto-starting and keeping-alive that are set to false. Switching to 'true' didn't produce any noticeable change on restart. Ok ending edit, sorry for momentary hijack.[/EDIT]
Last edited by ddarko777; 09-24-2009 at 02:03 AM.
Reason: more info
It doesn't involve using VPN but that did set me on the right track to discovering what I needed to do... essentially, overcoming the reason why veency doesn't work over 3G in the first place. Get a public IP!