Questions tagged [openconnect]
OpenConnect is an LGPL-licensed VPN client developed as an opensource alternative to the proprietary AnyConnect client created by Cisco. It was first released in 2009.
83
questions
0
votes
1
answer
42
views
openconnect: symbol lookup error: /lib/x86_64-linux-gnu/libxmlsec1.so.1: undefined symbol: xmlIOFTPRead, version LIBXML2_2.4.30
I have installed openconnect by:
sudo apt install openconnect
Then I'm calling it by:
echo MyPassword | openconnect --pfs mydomain.com:8442 -u MyUsername
But the following error is thrown:
...
0
votes
0
answers
72
views
Default location for config file in openconnect
I use openconnect for my work vpn. I'm trying to locate the default location for the config file in openconnect. This does not seem to be documented on the (otherwise excellent) man page.
...
0
votes
0
answers
39
views
How to configure machine certificate for netplan openconnect vpn
How do you configure a machine certificate for a openconnect vpn in netplan?
I have looked at the documentation and can only see options for client-certificates. I need to use a certificate from a ...
0
votes
1
answer
481
views
how to specify additional options to openconnect when invoked via nmcli?
I use mlcli to connect to a VPN, like this: nmcli conn --ask up myVPN. Under the hood this invokes openconnect:
\_ bash
| \_ nmcli conn --ask up myVPN
| \_ /usr/sbin/openconnect --authenticate ...
0
votes
1
answer
612
views
Enable self signed certificates in OpenConnect GUI
I am trying to connect to a VPN server hosting a self-signed TLS certificate using OpenConnect VPN client. The authentication in VPN is behind Microsoft SSO.
When I try to connect to the VPN (Settings-...
0
votes
0
answers
123
views
Openconnect Server not see my local network
I has a vps that has ip 1.1.1.1. this vps has two interface. one of theme inside my LAN by ip 10.10.10.2\24 as name eth1 and another side in internet (1.1.1.1) as ens33.
Now, i create a ocserver based ...
4
votes
0
answers
3k
views
openconnect fails with "No SSO handler"
Previously I could connect to my office Windows machine remotely from Ubuntu using:
sudo openvpn --mktun --dev tun1
sudo ifconfig tun1 up
sudo openconnect ${VPN_SERVER_ADDRESS} --authgroup=${...
1
vote
1
answer
267
views
Can I override which URL openconnect POSTs to?
A while ago, a connection to a VPN broke. The admin says it's because openconnect is sending a POST to the wrong URL. The dump looks something like this:
echo 'MyPassword' | openconnect -b --pid-file=/...
0
votes
0
answers
80
views
openconnect works but timeouting
All of a sudden my interfaces (eno1, tun1) stop getting ingress traffic so my connections timeouting. It used to work, but some day it stopped.
I thought it was related to DNS names resolving but it's ...
0
votes
0
answers
50
views
how to make an installed package as a service in ubuntu? [duplicate]
I've installed the ocserv package using these commands on Ubuntu 22:
mkdir /usr/local/src/ocserv
cd /usr/local/src/ocserv
wget ftp://ftp.infradead.org/pub/ocserv/ocserv-0.10.9.tar.xz
unxz ocserv-0....
0
votes
1
answer
801
views
Using 22.04 Network menu to VPN with Pulse Secure
I can use the PulseUI GUI to VPN to a university I'm working with.
It uses Duo-push authentication and works fine.
What I don't like is that the GUI won't autofill the password fields.
I can invoke ...
0
votes
0
answers
658
views
VPN Error: any valid prefix is expected rather than "local/32"
I usually connect to the same VPN and today I got this error:
Error: any valid prefix is expected rather than "local/32"
Any idea to fix it?
I am using Ubuntu 21.10, 64 bit
GNOME Version 40....
1
vote
0
answers
1k
views
Network-manager openconnect with pulse/saml/azure?
I succesfully used the NetworkManager OpenConnect VPN to connect to our Secure Pulse.
However, we recently moved to Azure SAML Login, which is browser-based, and runs on a url in the form: gateway....
1
vote
1
answer
5k
views
DNS servers "ignored" with NetworkManager, systemd-resolved and VPN tunnel
With Ubuntu 20.04, I connect to the internet via WLan using NetworkManager. Then I establish a VPN with OpenConnect.
I am using the "stub resolv.conf": /etc/resolv.conf -> /run/systemd/...
1
vote
1
answer
3k
views
OpenConnect certificate failed verification, it says its expired, but it is NOT!
When I try to connect to my OCServ using OpenConnect client in ubuntu it throws an error:
Connected to x.x.x.x:yyy
SSL negotiation with server.domain.tld
Server certificate verify failed: certificate ...
0
votes
0
answers
3k
views
Openconnect VPN throwing "Failed to read from SSL socket: The TLS connection was non-properly terminated" + More
These are my specs:
Platform: Raspberry Pi 4
Raspberry Pi version: 2021-05-07
Anyconnect version: v8.02-1+deb10u1
CLI launch command: openconnect -v ***.***.172.2:4443
Error output:
*****BEGIN ERROR ...
1
vote
0
answers
325
views
Problem with reaching websites on browser after establishing vpn by openconnect
I used openconnect in terminal for connecting to server. The connection established. I can ping any websites. It looks good for everything. But in Chrome and Firefox I couldn't access to websites. All ...
0
votes
1
answer
1k
views
how to clear dns cache on vpn connection?
After connecting to my customer's VPN, I need to issue this command:
service nscd reload
Or wait for some time before I can access internal services.
How can I make this happen automatically?
2
votes
2
answers
9k
views
How to install openconnect-sso on Ubuntu 21.04
I would like to install openconnect-ssh. The install instructions from the project seem complex, I'm not sure what pipx is.
How do I install openconnect-sso on Ubuntu without using pipx and using ...
2
votes
0
answers
1k
views
Connect to openconnect server from the command line?
I tried finding a similar question and did but there's a caveat though, older questions use --no-cert-check option which is removed due to security reasons and I don't know the exact fingerprint for ...
2
votes
1
answer
2k
views
Proxy failing because system resolves it using local DNS instead of VPN (Ubuntu 20.04)
I am using an VPN over openconnect through NetworkManager. I also have a proxy server whose configuration is reachable via VPN (at http://wpad/wpad.dat). Sporadically, when I connect to VPN it fails ...
2
votes
2
answers
12k
views
How to disconnect from OpenConnect?
I command something like this : sudo openconnect -b serverName for connect to vpn but when i want to disconnect it , the process does not kill and its alive in background.
I used these commands for ...
2
votes
0
answers
1k
views
Network-manager openconnect does not change my public ip address
I just tried to connect to Cisco any-connect VPN through network-manager or command line.
When I use sudo openconnect <server_address> command in command-line I see my public IP address has been ...
2
votes
0
answers
1k
views
ufw block error seen in journalctl -xe command
I'm newbie in networking and system security. I am trying to create openconnect server which tutorial is found in this link. I have also seen the similar issues like this one, but they don't make ...
1
vote
2
answers
4k
views
OpenConnect not shown as an option in Network Manager in 20.04
I have network-manager-openconnect-gnome installed, but there is no option for OpenConnect in Network Manager. I am aware of this past question for Ubuntu 16.04. On 20.04, I have done the following + ...
1
vote
0
answers
227
views
Allow OpenConnect at Login Screen
I would like to allow the option to connect to OpenConnect at login screen on Ubuntu 18.04/20.04.
The method my work environment uses requires MFA so I don't want it to try to auto connect.
I just ...
0
votes
2
answers
2k
views
127.0.0.1 not responding when connected to VPN
I have a few services running on localhost, listening on port 80 or 9999.
When I connect to my corporate VPN (Cisco Anyconnect), it suddenly stops responding.
localhost resolves well to 127.0.0.1, but ...
4
votes
0
answers
550
views
Save PWD but not OTP with networkmanager openconnect
I have a few VPN connections of the openconnect / Cisco AnyConnet type.
If I select Save passwords here, and there is also a second stage with a one time password provided by SMS, this OTP will also ...
0
votes
0
answers
1k
views
How to reset an OpenConnect / NetworkManager pinned certificate
I have installed an OpenConnect server (ocserv) so I can connect to my home systems.
Initially I used the valid LetsEncrypt provided certificate for *.example.com, later I changed that to vpn.example....
4
votes
4
answers
4k
views
VPN openconnect pulse disconnects itself in Ubuntu 20
Openconnect pulse VPN disconnects itself after sometime with "ESP detected dead peer" error in ubuntu 20. In ubuntu 18 it worked fine and kept on connected for long hours.
Please help to ...
4
votes
0
answers
1k
views
Using "sudo openconnect" sets VPN DNS, but Gnome VPN setups don't on Ubuntu 20.04
OK, forgive me, but this is my first time posting about openconnect issues. Before my disk crash, I was using Ubuntu 18.04 LTS. I reinstalled it and remembered that to make it connect to my ...
2
votes
1
answer
5k
views
Is there a workaround for the bug that the username is not saved in openconnect VPN connection dialog
When you connect a VPN with OpenConnect, I can click on "save passwords" but only the password is filled in automatically when I open the connection dialogue the next time. The "...
2
votes
1
answer
4k
views
Openconnect VPN connecting, but work sites giving DNS_PROBE_FINISHED_NXDOMAIN
EDIT: I have no idea why, but if I connect to NordVPN, then disconnect, my work VPN through openconnect works as it should. I can access all work and non-work sites as intended. Maybe this will shed ...
0
votes
1
answer
948
views
Network Manager: Is it possible to pass CLI options to openconnect (in order to manually resolve the hostname)?
Basically this question has been asked before, albeit with a different flag/argument, and it's been a few years.
Since the people who administer my local network have apparently misconfigured IPv6, I ...
1
vote
0
answers
233
views
Cannot get response when connecting to OpenConnect
I have connected successfully to my VPN using openconnect. OpenConnect VPN provides me an IP suppose the IP is 9.9.9.9.By using VPN I can request a specific API and get the response back. But the ...
3
votes
2
answers
256
views
How to get openconnect to unmount a partition when VPN closes?
I have this entry in my fstab:
sc-netapp48.nvidia.com:/vol/scratch9/scratch.securesign_new /home/scratch.securesign_new nfs _netdev,comment=systemd.automount 0 0
I'm not sure how this works exactly, ...
8
votes
1
answer
4k
views
Openconnect in network-manager does not update resolv.conf
I just updated from ubuntu 19.10 to ubuntu 20.04. Now my resolve.conf does not get updated anymore when I connect to vpn with the openconnect thing in the network manager.
This works correctly:
...
1
vote
0
answers
355
views
Openconnect VPN where host contains "/" character not working as expected
I have Ubuntu 16.04 and I need to create a VPN connection with openconnect (Pulse Network Connect).
I have installed the necessary packages:
network-manager-openconnect
network-manager-openconnect-...
11
votes
3
answers
9k
views
Openconnect keeps asking for username in Ubuntu 20.04
I recently have upgraded to Ubuntu 20.04. Everything works fine except that every time I want to connect to a VPN network with openconnect I have to enter My username and It asks me to validate the ...
1
vote
0
answers
2k
views
Failed to obtain WebVPN cookie in Ubuntu 18.04.4
I am trying to connect VPN and getting the error
SSL connection failure
Failed to open HTTPS connection to my.vpn.com
Failed to obtain WebVPN cookie
Tried multiple workaround but no success.
19
votes
6
answers
29k
views
SSH fails with connection timed out - in VPN and hangs here "expecting SSH2_MSG_KEX_ECDH_REPLY" + Ubuntu 16.04.6 LTS
Raised bug -> https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1874257
SSH timeout issue, once connect to VPN.
Connecting via putty fine. No changes made before.
VPN established by open-...
7
votes
1
answer
1k
views
OpenConnect VPN on Ubuntu 18 set up like the default of OC on Fedora Workstation? Need PA GlobalProtect VPN
I have an older machine that is running Fedora Workstation 31. When I go into settings -> network -> Add a VPN, I see this:
However, I tried to install OpenConnect VPN client for Ubuntu with ...
9
votes
1
answer
15k
views
How do I install latest OpenConnect in Ubuntu 18.04?
In my Ubuntu 18.04, I have OpenConnect v7.08-3 installed. But it doesn't have GlobalProtect support. OpenConnect v8.02-1 has GlobalProtect support. How can I install it in ubuntu 18.04?
0
votes
2
answers
6k
views
Ubuntu 19.10 unable to find libnm-glib, libnm-glib-vpn and libnm-util packages
I've been trying to build network manager plugin for Ubuntu 19.10 but autogen.sh keeps failing witn the following error
checking for LIBNM_GLIB... no
configure: error: Package requirements (...
6
votes
2
answers
5k
views
How to configure OpenConnect with an XML file?
I'm not too familiar with VPNs and I'm having a hard time connecting to a VPN service with OpenConnect.
The VPN service I've purchased uses Cisco AnyConnect, which I can't get for Linux, but the ...
0
votes
1
answer
962
views
No Guile Development package found im compiling open-connect source code from git-hub
*** Detecting GNU Guile...
checking for guile-snarf... /usr/bin/guile-snarf
checking for guild... /usr/bin/guild
checking for arm-linux-androideabi-pkg-config... /usr/bin/pkg-config
checking pkg-...
1
vote
0
answers
473
views
networkmanager-openconnect with flag --no-http-keepalive not possible to set in UI
I activated the VPN SSL on our Cisco RV340 router. I want to use openconnect to establish the vpn connection. When I use the CLI in my bash session it is working when using the flag --no-http-...
3
votes
1
answer
2k
views
Unable to connect to Cisco openconnect in ubuntu 19.10
Today I have decided to upgrade my os from 18.04 to 19.10
I use openconnect with the terminal by this command :
sudo openconnect de.cisadd2.com
Then I enter my username and password and it would ...
0
votes
0
answers
2k
views
How to use OpenConnect without blocking port 443?
I've migrated a Windows 10 machine to Ubuntu.
On Windows 10 I connected to a Cisco VPN through the Cisco AnyConnect client. It worked fine and allowed me to use port 443 while connected to the VPN (...
2
votes
0
answers
2k
views
Openconnect add dns to systemd-resolve
When connecting to a vpn using openconnect the default vpnc script adds dns servers into my resolv.conf file.
These DNS servers come before my stub resolver 127.0.0.53 which uses systemd-resolve.
...