[maemo-developers] auto-start openvpn and udhcpc

From: Graham Cobb g+770 at cobb.uk.net
Date: Sun Mar 7 16:30:46 EET 2010
On Wednesday 03 March 2010 03:25:48 Jason wrote:
> I'm attempting to get openvpn on my N900 connecting to my existing openvpn
> server.  The openvpn part works well.  The automation part is trickier :-)

You might want to take a look at what I did in the tinc package (see 
http://www.cobb.uk.net/apt/dists/mistral/user/source/).  The tinc-maemo 
script does the work to look at what connection has just changed state and 
work out whether to start or stop tinc.

> First, how do I get openvpn to automagically start anytime I select a
> network to connect to?  I'd like mail checks (which should pull up an
> interface on demand) to find my mailserver, which is only available via
> vpn.

For tinc, I use dbus-scripts -- Matan Ziv-Av has just released a new version 
for both Fremantle and Diablo.  However, as this waits until the connection 
comes up and then starts the VPN, I am not sure if it will work for checking 
email (which may try to connect as soon as the underlying connection comes 
up).

Graham
More information about the maemo-developers mailing list