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.
81
questions
35
votes
7
answers
90k
views
How to run openconnect with username and password in a line in the terminal?
I use openconnect in Ubuntu 16.04 terminally, when I want to run it, I need to enter three phases:
"yes/no"
"username"
"password"
How can I bypass above phases using openconnect in a line (e.g. ...
27
votes
6
answers
48k
views
No more AnyConnect compatible vpn transport in Ubuntu 16.04?
Following my previous experiences with setting up Cisco AnyConnect VPN connections on Ubuntu 14.04 I tried the same approach here by installing packages:
sudo apt-get install -y network-manager-...
26
votes
6
answers
61k
views
OpenConnect VPN not in Network Manager in 16.04
I have network-manager-openconnect-gnome installed, but there is no option for OpenConnect in Network Manager. If I run
sudo openconnect vpn.work.com
And enter my details, I can connect to my work ...
21
votes
3
answers
51k
views
Ubuntu 16.04 openconnect cisco vpn failed to obtain webvpn cookie
On Ubuntu 16.04 I am getting the following error:
$ openconnect -v vpn.com
POST https://vpn.com/
Attempting to connect to server 1.1.1.1:443
SSL negotiation with vpn.com
Connected to HTTPS on vpn....
20
votes
4
answers
14k
views
How do I use OpenConnect via Network Manager to connect to Juniper VPN?
The more general question: How do I pass arguments/switches to the client in Network Manager?
In order to connect to a Juniper VPN using OpenConnect, I use the following command-line:
sudo ...
19
votes
6
answers
28k
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-...
13
votes
1
answer
10k
views
Problem with openconnect after upgrade to ubuntu 18.04
After upgrading to 18.04 I can't use openconnect anymore. Here is the issue:
Established DTLS connection (using GnuTLS). Ciphersuite (DTLS1.2)-(PSK)-(AES-256-GCM).
DTLS connection compression using ...
11
votes
3
answers
8k
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 ...
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?
9
votes
2
answers
8k
views
OpenConnect Juniper VPN Not Working in Ubuntu 18.04
I have been using openconnect for a long time now with our corporate VPN. I upgraded my personal laptop to Ubuntu 18.04 and I can no longer receive network traffic once connect.
I use the following ...
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:
...
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 ...
6
votes
2
answers
9k
views
Openconnect won't disconnect in Ubuntu 17.10
I've installed openconnect and after establishing a session by the command
openconnect server_address
I just can't disconnect. In the manual, it's said a SIGINT signal would safely terminate the ...
6
votes
1
answer
12k
views
Automatically connect an Openconnect VPN connection
I installed the network-manager-openconnect package and uses it to login to my Openconnect VPN server. The connection works, except that every time I start the connection a two step dialog box pops up ...
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 ...
6
votes
0
answers
3k
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=...
5
votes
2
answers
3k
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 ...
5
votes
1
answer
10k
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>
...
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
1
answer
1k
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 ...
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 ...
4
votes
1
answer
11k
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 ...
3
votes
2
answers
254
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, ...
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 ...
3
votes
0
answers
2k
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=${...
3
votes
0
answers
529
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 ...
2
votes
2
answers
11k
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
2
answers
8k
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
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
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
1
answer
878
views
Cron job - need script to start VPN if not already running for job
I have mirror repos that I use as reference for multiple builds throughout the day. I would like to have a cron job that runs every night and does a repo sync for each of my repos. MY problem is some ...
2
votes
1
answer
2k
views
Openconnect - name or service not known when using sudo
I've been using openconnect with no problems at all, but since yesterday when I try to connect to the VPN using sudo it fails:
lmoreyra@arbanlmoreyra1:~$ sudo openconnect vpn-am2.infor.com
[sudo] ...
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
0
answers
990
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 ...
2
votes
1
answer
3k
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 ...
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.
...
2
votes
0
answers
3k
views
Openconnect profile add and automate VPN connectivity
I use Cisco anyconnect in Windows machine at office laptop. I also do office work from home with my personal Ubuntu laptop. Normally to connect I use openconnect which works perfectly. Installing ...
2
votes
0
answers
748
views
Build OpenConnect on 14.04 with PKCS#11 support
I'm trying to build OpenConnect 7.07 on Ubuntu 14.04 using autobuild shell script from
GitHub Autobuild script for OpenConnect 7 (Ubuntu 14/15/16 trusty/vivid/xenial)
The build works, but when I try ...
2
votes
0
answers
129
views
openconnect: connection destroyed after ls and unable to use sftp
In the past I have used Cisco AnyConnect under Mac OS to connect to a remote system at my uni. This worked perfectly.
Now I wish to do the same thing under Ubuntu 14.04, however Cisco AnyConnect has ...
1
vote
1
answer
216
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=/...
1
vote
1
answer
4k
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 ...
1
vote
2
answers
3k
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
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
0
answers
320
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 ...
1
vote
0
answers
215
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 ...
1
vote
0
answers
220
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 ...
1
vote
0
answers
345
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-...
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.