LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Manjaro (https://www.linuxquestions.org/questions/manjaro-119/)
-   -   Can't connect to vpn in Manjaro KDE Plasma (https://www.linuxquestions.org/questions/manjaro-119/cant-connect-to-vpn-in-manjaro-kde-plasma-4175723577/)

enthusasist 03-30-2023 06:01 AM

Can't connect to vpn in Manjaro KDE Plasma
 
Hello!
Could you please give an advice how to configure VPN connection by user interface of OS.
I can do it from console by command like this:
Code:

sudo openconnect MyVPNAddress
or
Code:

echo "MyPassword" | openconnect MyVPNAddress --servercert pin-sha256:MyServerCert --authgroup MyServerGroup -u MyUsername --passwd-on-stdin
I can also connect from Windows 10 using Cisco AnyConnect Secure Mobility Client.
But I can’t connect by ui of Manjaro. I’ve tried several options. For example when I use vpnc without GroupPassword, it doesn’t connect and returns message:
Quote:

sending new secrets to the plugin failed: GDBus.Error:org.freedesktop.NetworkManager.VPN.Error.Inv
alidConnection: The request could not be processed because the requested “IPSec secret” information was not provided.
(I watch logs with command journalctl -f _COMM=NetworkManager)
When I put there a GroupPassword it says that it is connected, but websites are not available and after 30 seconds it disconnects with message
Quote:

dbus: failure: connect-failed
I’ve also tried different types of connection but no success. I have this options in VPN settings menu:
  • Array Networks Compatible VPN (openconnect)
  • Cisco AnyConnect Compatible VPN (openconnect)
  • F5 BIG_IP Compatible VPN (openconnect)
  • Fortinet Compatible VPN (openconnect)
  • Pulse Connect Secure (openconnect)
Should I use one of this connections, or install something else?
I’ve also tried to install cisco-anyconnect from AUR, but it’s interface does not show anything.
My OS details:
  • Manjaro 22.0.5 Sikaris
  • KDE Plasma 5.26.5
  • KDE Frameworks 5.103.0
  • Qt Version 5.15.8
  • Kernel Version 5.15.102-1-MANJARO (64-bit)
  • Graphics Platform X11

dosensuppe 04-17-2023 12:14 PM

Does you vpn provider/ workplace (?) provide .ovpn files?
This is how I always did it for cyberghost: https://support.cyberghostvpn.com/hc...etwork-Manager
Worked on various distros. Make sure to test for DNS leaks afterwards. I had problems with that in the past, since CyberGhost wouldn't offer ipv6 and it would just leak through so I had to disable it, if I remember correctly.

enthusasist 04-19-2023 06:28 AM

5 Attachment(s)
Finally connected!
Installed openconnect-gui
https://www.linuxquestions.org/quest...1&d=1681903538.

Then I switched to configuring network connections.
Click “Add Connection”.
Type: “Cisco Any Connect compatible VPN”.
https://www.linuxquestions.org/quest...1&d=1681903538
Entering MyVPNAddress.
https://www.linuxquestions.org/quest...1&d=1681903538
Save.
(ReportedOS after saving was automatically filled with “Apple iOS”)
https://www.linuxquestions.org/quest...1&d=1681903538
Click Connect.
Click the connect button near “VPN Host”
I got a certificate error, click OK
After that, appeared a list with the VPN server groups. I choose the desired one, entered the password (the login has already been entered). Check the boxes "Automatically start connecting next time," "Store passwords" and "View Log" and click Login.
https://www.linuxquestions.org/quest...1&d=1681903538
Then the connection is successful.

It remains to figure out how to save the password not to enter it every time.

enthusasist 04-19-2023 07:31 AM

Quote:

Originally Posted by enthusasist (Post 6425645)
It remains to figure out how to save the password not to enter it every time.

I've tried to add password in file /etc/NetworkManager/system-connections/MyVPNConnection.nmconnection like:
form:main: password=MyPassword
But it disappears after trying to connect

dosensuppe 04-20-2023 01:55 PM

Look into seahorse. Perhaps you haven't configured your keyring correctly

enthusasist 04-26-2023 03:31 AM

Quote:

Originally Posted by dosensuppe (Post 6425993)
Look into seahorse. Perhaps you haven't configured your keyring correctly

Thanks! But there is nothing there. I've tried to unlock KDEWallet and added a key for MyVPNConnection, but it didn't appear there


All times are GMT -5. The time now is 11:42 PM.