>> Package: network-manager >> Version: 0.6.6-2 >> Severity: normal >> >> cannot start vpn from commandline via network-manager >> I've got a vpn configured in network-manager. I can successfully start >> it from the network-manager gui. >> Now I would like to have it automatically started as soon as >> /etc/network/if-up.d/somescript is started. >> So what I do from that script is: >> su - folkert -c '/usr/local/sbin/NetworkManager.startvpn >> keetweej.vanheusden.com' >> where the /usr/local/sbin/NetworkManager.startvpn is just a python >> script that does: >> interface.activateVPNConnection() etc. (if you're interested, the script >> can be found here: http://blog.mithis.net/archives/ideas/51-nm-autovpn ) >> Now from what the comments tell me it only works with gutsy, not with >> feisty ubuntu. Now I checked but gutsy has an older network-manager than >> debian testing. Maybe some patch in ubuntu fixed it? I skimmed through >> their patch-list but could not find a relevant vpn-related fix. > > You can only activate a NM vpn connection, if another NM, non-vpn > connection is active, i.e. NM is in the online state.
Ok, that is the case. So: network-manager connects to the wireless/wired network, /etc/network/if-up.d/up is executed and starts the vpn. What I forgot to tell is that when my script runs, a popup-box appears telling me that a login failure occured: if I then manually click on the connection and let it start with the parameters it already knows (including password), it connects fine. Folkert van Heusden -- MultiTail รจ uno flexible tool per seguire di logfiles e effettuazione di commissioni. Feltrare, provedere da colore, merge, 'diff-view', etc. http://www.vanheusden.com/multitail/ ---------------------------------------------------------------------- Phone: +31-6-41278122, PGP-key: 1F28D8AE, www.vanheusden.com -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]