Hi all,
I am trying to configure and connect Cisco VPN on Ubuntu 10.04.
I've imported .pcf file. The new vpn conn appears in the VPN Connections option. Now when I select it, it doesn't connect. Nothing happens.
I am not able to connect to VPN at all. I tried using kvpnc as well but it didn't work either.
Any suggestions on this will be helpful.
Best Regards.
---------- Post updated at 08:26 AM ---------- Previous update was at 08:16 AM ----------
Update:
I just reboot the box and now I am receiving this message when trying to connect to VPN:
The VPN connection 'VPN' failed.
I had the same problem, if I remember correctly, you have to check the "available to all users" box somewhere in the connection properties window (or during the connection setup).
Thanks. I have already checked this option. I observed that unless I check it, the new VPN conn name does not appear in the VPN Connections.
I select it but it gives 'The VPN connection 'VPN' failed'.?
Did you try to remove the connection and run the setup again?
Just check available to all users during the setup.
yea, I did that.. run over the whole process many times. no change in status though.
I cross-checked with my colleague as well, the settings are exactly the same. So a bad pcf file is ruled out..
Are there any messages related to the failed vpn connection in /var/log/messages?
cat /var/log/syslog | tail -20 shows this:
syslog:Aug 31 10:28:44 mybox NetworkManager: <info> Starting VPN service 'org.freedesktop.NetworkManager.vpnc'...
syslog:Aug 31 10:28:44 mybox NetworkManager: <info> VPN service 'org.freedesktop.NetworkManager.vpnc' started (org.freedesktop.NetworkManager.vpnc), PID 3819
syslog:Aug 31 10:28:44 mybox NetworkManager: <info> VPN service 'org.freedesktop.NetworkManager.vpnc' just appeared, activating connections
syslog:Aug 31 10:28:44 mybox NetworkManager: <info> VPN plugin state changed: 1
syslog:Aug 31 10:28:44 mybox NetworkManager: <info> VPN plugin state changed: 3
syslog:Aug 31 10:28:44 mybox NetworkManager: <info> VPN connection 'Connect to My VPN' (Connect) reply received.
syslog:Aug 31 10:28:44 mybox NetworkManager: <info> VPN plugin failed: 1
syslog:Aug 31 10:28:44 mybox NetworkManager: <info> VPN plugin state changed: 6
syslog:Aug 31 10:28:44 mybox NetworkManager: <info> VPN plugin state change reason: 0
syslog:Aug 31 10:28:44 mybox NetworkManager: <WARN> connection_state_changed(): Could not process the request because no VPN connection was active.
syslog:Aug 31 10:28:57 mybox NetworkManager: <debug> [1283264937.002773] ensure_killed(): waiting for vpn service pid 3819 to exit
syslog:Aug 31 10:28:57 mybox NetworkManager: <debug> [1283264937.002902] ensure_killed(): vpn service pid 3819 cleaned up
syslog.1:Aug 28 15:30:25 mybox AptDaemon: INFO: InstallPackages() was called: dbus.Array([dbus.String(u'kvpnc')], signature=dbus.Signature('s'))
syslog.1:Aug 28 15:31:18 mybox AptDaemon: INFO: InstallPackages() was called: dbus.Array([dbus.String(u'vpnc')], signature=dbus.Signature('s'))
syslog.1:Aug 28 15:32:15 mybox AptDaemon: INFO: RemovePackages() was called: 'dbus.Array([dbus.String(u'vpnc')], signature=dbus.Signature('s'))'
syslog.1:Aug 28 15:32:21 mybox AptDaemon.Worker: INFO: Removing packages: 'dbus.Array([dbus.String(u'vpnc')], signature=dbus.Signature('s'))'
syslog.1:Aug 28 15:33:41 mybox AptDaemon: INFO: InstallPackages() was called: dbus.Array([dbus.String(u'kvpnc')], signature=dbus.Signature('s'))
syslog.1:Aug 28 16:04:42 mybox kvpnc: Libgcrypt warning: missing initialization - please fix the application
syslog.1:Aug 28 16:05:02 mybox AptDaemon: INFO: InstallPackages() was called: dbus.Array([dbus.String(u'vpnc')], signature=dbus.Signature('s'))
user.log.1:Aug 28 16:04:42 mybox kvpnc: Libgcrypt warning: missing initialization - please fix the application
---------- Post updated at 11:47 AM ---------- Previous update was at 10:31 AM ----------
Update:
I managed to correct the configuration. Now when I click on the new VPN Connection that I created, I am greeted with a password box.
I have the soft token keys with me and I enter one of them in the pw box to get connected. Damn, it fails again!
cat /var/log/syslog | tail -15 shows this:
Aug 31 11:36:28 mybox NetworkManager: <info> Starting VPN service 'org.freedesktop.NetworkManager.vpnc'...
Aug 31 11:36:28 mybox NetworkManager: <info> VPN service 'org.freedesktop.NetworkManager.vpnc' started (org.freedesktop.NetworkManager.vpnc), PID 2004
Aug 31 11:36:28 mybox NetworkManager: <info> VPN service 'org.freedesktop.NetworkManager.vpnc' just appeared, activating connections
Aug 31 11:36:28 mybox NetworkManager: <info> VPN plugin state changed: 1
Aug 31 11:36:32 mybox NetworkManager: <info> VPN plugin state changed: 3
Aug 31 11:36:32 mybox NetworkManager: <info> VPN connection 'Connect to My VPN' (Connect) reply received.
Aug 31 11:36:32 mybox kernel: [ 815.711290] tun0: Disabled Privacy Extensions
Aug 31 11:36:32 mybox NetworkManager: SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/tun0, iface: tun0)
Aug 31 11:36:32 mybox NetworkManager: SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/tun0, iface: tun0): no ifupdown configuration found.
Aug 31 11:36:33 mybox NetworkManager: SCPlugin-Ifupdown: devices removed (path: /sys/devices/virtual/net/tun0, iface: tun0)
Aug 31 11:36:33 mybox NetworkManager: <info> VPN plugin failed: 1
Aug 31 11:36:33 mybox NetworkManager: <info> VPN plugin state changed: 6
Aug 31 11:36:33 mybox NetworkManager: <info> VPN plugin state change reason: 0
Aug 31 11:36:33 mybox NetworkManager: <WARN> connection_state_changed(): Could not process the request because no VPN connection was active.
Aug 31 11:36:33 mybox NetworkManager: <info> Policy set 'Auto My Team' (wlan0) as default for routing and DNS.
Aug 31 11:36:46 mybox NetworkManager: <debug> [1283269006.001992] ensure_killed(): waiting for vpn service pid 2004 to exit
Aug 31 11:36:46 mybox NetworkManager: <debug> [1283269006.002182] ensure_killed(): vpn service pid 2004 cleaned up
any ideas folks?
Google "10.04 VPN plugin failed: 1" and you'll get some results, some say that you need to uncheck "available to all users" ...
Update:
VPN connection using Network Manager didn't work. I copied over a working vpnc cisco.conf file from a colleague and used cli to connect. Worked fine.
Thanks..
Yep,
now for me I doesn't work either (just installed the latest Ubuntu on my new notebook).
I found a workaround
create vpn connection/import profile -> Available for All Users should be unchecked -> kill NetworkManager (it gets automatically restarted).
After that, when you try to connect, you'll see the password prompt.