Hi,
Because of the bug #524979 , network-manager may be unable to connect to
an openvpn server.
You should see this line in logs:
NetworkManager: <info> VPN connection 'VPN 1' (IP Config Get) timeout
exceeded.
(despite openvpn establish the connection)
Workaround (dirty) :
earth% LANG=C; sudo dpkg-divert
/usr/lib/NetworkManager/nm-openvpn-service-openvpn-helper
Adding `local diversion of
/usr/lib/NetworkManager/nm-openvpn-service-openvpn-helper to
/usr/lib/NetworkManager/nm-openvpn-service-openvpn-helper.distrib'
earth% sudo cat <<EOF >>
/usr/lib/NetworkManager/nm-openvpn-service-openvpn-helper
#!/bin/sh
export trusted_ip=your.server.ip.address
/usr/lib/NetworkManager/nm-openvpn-service-openvpn-helper.distrib $@
exit 0;
EOF
earth% sudo chmod 755
/usr/lib/NetworkManager/nm-openvpn-service-openvpn-helper
If you are using many hosts you can use:
if [ ifconfig_remote='192.168.10.1 ]; then
export trusted_ip=your.server.ip.address
fi;
if [ ifconfig_remote='10.23.0.1 ]; then
export trusted_ip=your.2nd_server.ip.address
fi;
etc...
If you want to see what vars you can access, you can put:
set > /tmp/nm-debug
in the script
Note that the testing version was also unable to connect but i upgraded
to sid version
before finding the workaround. It May work, but use at your own risk :)
(directory is different, something like /usr/lib/network-manager-openvpn)
Regards,
Mathieu