View Single Post
Posts: 5,335 | Thanked: 8,187 times | Joined on Mar 2007 @ Pennsylvania, USA
#4
Originally Posted by mase View Post
How can I start openvpn automatically, when a connection was established? Best would be a connection-specific script to run. I want to start openvpn on any connection, but not when connected
to my home lan. At the moment I am using the openvpn-gui, but
I always have to do that manually.
You might try writing a script for placement in /etc/network/if-up.d/. Compare the output of
Code:
/usr/bin/gconftool -g \
"/system/osso/connectivity/IAP/$ICD_CONNECTION_ID/name"
against your home WiFi network's name and launch OpenVPN for any connection that doesn't match.
__________________
maemo.org profile