After installing vpnc, network-manager-vpnc and network-manager-vpnc-gnome, the "Cisco Compatible VPN (vpnc)" option appears on the "Add VPN" menu in network manager as intended. The problem I'm having is that, despite having filled all necessary fields (so, gateway, user/group name/password), the "Add" button stays greyed out. It does seem to be a bug, since if I fill the gateway and the user name fields, the button will go green if I type only one character in the group name field (it doesn't save, however).
- 323
- 1
- 2
- 6
-
1Same here. It was working fine with those packages on 20.04. – Manuel Uberti Apr 23 '22 at 16:16
-
Mayby this can help? https://answers.launchpad.net/ubuntu/+question/701185 Have some VPN problem on 22.04, when 20.04 works all fine. – fuss Apr 27 '22 at 15:48
-
1Same here. It was working fine with for me with these packages on 18.04 and 20.04. it doesn´t work via terminal with vpnc-connect or network – Muan May 05 '22 at 19:13
-
I tried the solution of daltux, but that didn't work for me. I use Ubuntu 22.04, a fresh installation and I use network-manager-vpnc and the gnome GUI version 1.2.8-2 The solution of Manuel Uberti does work though. It changes my public IP nr and I get a tunnel to the server, but I cant access anything on the network I am connecting to. I may try another VPN clients, like softether-vpnclient that is in the repositories. – adonet Apr 27 '22 at 12:49
2 Answers
The form validation seems buggy and there is a required field ("interface name") which was not required before. It is in the "Advanced" window.
There is a GUI workaround. Instead of editing the connection with the main Gnome Settings application, you have to do the following:
- Launch Advanced Network Configuration (or run
nm-connection-editorfrom terminal) - Click the "+" (Add a new connection), choose "Cisco Compatible VPN (vpnc)", click "Create..."
- Fill all the fields
- Click the "Advanced..." button
- Fill "Tunnel interface name" with
tun0 - Click "Apply"
- The Save button will still be disabled. Click "Advanced..." again and "Apply", or try ticking "Use hybrid authentication" and then tick it again.
- Finally, you will be able to "Save"!
This is tested on Ubuntu 22.04, Lubuntu 22.04, Pop!_OS 22.04, all with network-manager-vpnc-gnome version 1.2.8-2.
Bug reports on this issue already open in each project:
- 545
- 1
- 5
- 9
-
2
-
6
-
@Mark Please try again with Advanced Network Configuration. The standard settings unfortunately really never enables the Add button. – daltux May 03 '22 at 18:27
-
2`sudo nm-connection-editor` helped me out with an Anyconnect server. – Lauri Elias May 23 '22 at 10:45
-
1Doesn't work for login+password authentication method. "Save" button is still disabled. – Dmitry Sazonov Jun 30 '22 at 11:01
-
1I confirm the problem Dmitry Sazonov reported. When using the login and password authentication method, the trick of daltux unfortunately does not work. – user3139868 Jul 07 '22 at 10:39
-
8This worked for me ONLY when I ran `nm-connection-editor` from the terminal. It did NOT work when I went to the network configuration in the settings gui. – Phoenix Sep 27 '22 at 17:17
-
Btw, on 22.04, if you type something in "Group name", than delete/backspace any character, you won't be able to "Save" – Tarasovych Oct 12 '22 at 07:03
-
2Works on 22.04.1. Note that you you can't find the vpn configuration using the standard UI – Francesco Taioli Oct 18 '22 at 14:20
To temporarily work around this issue, I am using the command line approach for now by connecting to the VPN I need through the vpnc command.
I followed the instructions from Using vpnc as a Command Line VPN Client, so basically this is what I did (as root user):
- I copied
/etc/vpnc/default.confto/etc/vpnc/myvpn.conf - I filled
/etc/vpnc/myvpn.confwith the details of my VPN:
IPSec gateway mygateway
IPSec ID mygroupid
IPSec secret mygrouppassword
IKE Authmode psk
Xauth username myuser
Xauth password mypass
- Then, as root,
vpnc myvpn.conf(or as normal user:sudo vpcn myvpn.conf) - To disconnect
vpnc-disconnectas root (or as normal user:sudo vpnc-disconnect)
It's not as handy as clicking through the UI, but at least it's working.
- 203
- 1
- 2
- 8