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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
89 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....
user avatar
  • 133
1 vote
0 answers
126 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....
user avatar
0 votes
0 answers
407 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/...
user avatar
0 votes
0 answers
137 views

VPN via Command Line, but not via Gnome Network Manager

I can use Remmina to connect to a Windows 10 office machine from Ubuntu by first connecting to our corporate VPN. Following the helpful advice from here, I can successfully use the following: To ...
user avatar
0 votes
0 answers
158 views

OCServ dropping connections (OCServ 0.12.6 on Ubuntu 20.04.03)

Server: OCServ ocserv 0.12.6 Compiled with: seccomp, tcp-wrappers, oath, radius, gssapi, PAM, PKCS#11, AnyConnect GnuTLS version: 3.6.13 (compiled with 3.6.11) Client: openconnect OpenConnect ...
user avatar
0 votes
1 answer
589 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 ...
user avatar
  • 3
0 votes
0 answers
664 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 ...
user avatar
1 vote
0 answers
85 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 ...
user avatar
  • 33
0 votes
0 answers
172 views

SSL connection failure in Openconnect server

I'm trying to set-up ocserv on my ubuntu 20 machine. i did step by step configuration and everything seems good, but i can't connect to the openconnect client. first problem is i didn't active SSL ...
user avatar
  • 101
0 votes
1 answer
273 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?
user avatar
  • 113
1 vote
1 answer
1k 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 ...
user avatar
1 vote
0 answers
204 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 ...
user avatar
0 votes
0 answers
145 views

How to disable Split Tunnelling in OpenConnect on Ubuntu?

I use the following command to connect to a VPN via openconnect on Ubuntu 20.04 LTS: sudo openconnect -b --protocol=gp --user=himanshuiiitian vpn.example.com --servercert XXXXXXXXXXXXXXXX Above ...
user avatar
0 votes
0 answers
158 views

Does openconnect create automatically a virtual interface?

I need to run openconnect vpn client to connect to a server, but I'm not sure what virtual interface it will use. Does it create by itself a tun0 interface and assigns to it an ip address ? Or do I ...
user avatar
  • 43
2 votes
1 answer
399 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 ...
user avatar
0 votes
2 answers
2k 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 ...
user avatar
2 votes
0 answers
359 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 ...
user avatar
2 votes
0 answers
440 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 ...
user avatar
0 votes
1 answer
464 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 + ...
user avatar
  • 1
1 vote
0 answers
124 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 ...
user avatar
  • 267
0 votes
1 answer
1k 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 ...
user avatar
  • 111
2 votes
0 answers
214 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 ...
user avatar
0 votes
0 answers
615 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....
user avatar
4 votes
4 answers
2k 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 ...
user avatar
  • 41
4 votes
0 answers
679 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 ...
user avatar
2 votes
1 answer
3k 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 "...
user avatar
  • 10.6k
2 votes
1 answer
2k 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 ...
user avatar
  • 246
0 votes
1 answer
295 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 ...
user avatar
1 vote
0 answers
116 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 ...
user avatar
3 votes
2 answers
181 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, ...
user avatar
5 votes
1 answer
2k 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: ...
user avatar
  • 245
1 vote
0 answers
221 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-...
user avatar
  • 111
11 votes
3 answers
4k 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 ...
user avatar
  • 157
1 vote
0 answers
1k 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.
user avatar
  • 275
8 votes
4 answers
12k 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-...
user avatar
  • 101
6 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 ...
user avatar
6 votes
1 answer
11k 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?
user avatar
  • 165
0 votes
2 answers
4k 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 (...
user avatar
  • 181
5 votes
1 answer
3k 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 ...
user avatar
0 votes
1 answer
412 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-...
user avatar
1 vote
0 answers
307 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-...
user avatar
  • 131
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 ...
user avatar
  • 73
0 votes
0 answers
1k 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 (...
user avatar
2 votes
0 answers
1k 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. ...
user avatar
  • 21
3 votes
2 answers
2k views

openconnect 18.04 "please upgrade your client"

I have been using my VPN connection successfully for a few months on v 18.04. Openconnect reports its version as v7.08-3ubuntu0.18.04.1 Recently when I have tried to establish a connection, I have ...
user avatar
  • 133
5 votes
0 answers
2k views

VPN: openconnect how to indicate a form field for authentication purposes?

I am trying to connect to a corporate vpn using openconnect (protocol Global Protect): perret at perret-pc in ~ $ openconnect --protocol=gp [vpn-address] POST [vpn-address]/ssl-vpn/prelogin.esp?tmp=...
user avatar
  • 421
1 vote
0 answers
3k views

VPN (Cisco AnyConnect) openconnect plugin stopped setting up DNS on Ubuntu 18.04

Today (it is 2019-05-19) I can't connect to internal resource within VPN – it worked OK the day before. It happens because DNS doesn't resolve internal names. systemd-resolve shows this $ systemd-...
user avatar
3 votes
1 answer
8k views

globalprotect option missing in network-manager VPN options

Ubuntu 19.04 has openconnect v8.02 which supports globalprotect. I'm able to to connect to a corporate network from terminal using following command: openconnect --protocol=gp <some address> ...
user avatar
  • 33
2 votes
1 answer
8k views

Openconnect XML response has no “auth” node and failed to obtain WebVPN cookie on Ubuntu 18.04

After successfully installing openconnect using apt on Ubuntu 18.04, when I try to connect to VPN using $ openconnect https://xxx.xx.xxx/ XML response has no "auth" node Failed to obtain WebVPN ...
user avatar
4 votes
1 answer
957 views

OpenConnect "Unknown form id frmTotpToken" Error on Login

I'm on Ubuntu 18.04.1 LTS. I'm trying to login to VPN using Juniper / Pulse Network connect. After setting up the connection in the network manager, when I tried to login I got Unknown form id ...
user avatar