New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ubuntu 18.04: Issues with OpenConnect #11
Comments
From dlenski/openconnect#104:
which refers to Ubuntu Bug #1752411: "bind9-host, avahi-daemon-check-dns.sh hang forever causes network connections to get stuck", which is still open and provides a few workarounds, e.g. tweak /usr/lib/avahi/avahi-daemon-check-dns.sh to use timeout 5 .... |
I found that changing the /sbin/resolvconf line in modify_resolvconf_manager() in vpnc-script to
fixes it. |
@patrickhwood, thxs. Exactly where is the |
I downloaded an up-to-date version as suggested on the openconnect site: http://www.infradead.org/openconnect/vpnc-script.html and use it with the -s option. There's also a vpnc-script in /usr/share/vpnc-scripts, but I haven't tried that one, nor am I 100% certain it's the one used by openconnect by default. The change was to simply add the "&" on the end of the line so it would run in the background and not stall the execution of the script (which seems to be the cause of the problem). I'm pretty sure this is the line that kicks off the run-parts process. |
Reading the
I think this is a better plan, letting nsswitch know to use |
Moot; the "General Support" for Ubuntu 18.04 LTS ended 2023-06 (https://en.wikipedia.org/wiki/Ubuntu#Releases). |
Moving what @graft wrote in #4 (comment) to a new issue:
An issue I have been having lately with openconnect on some of my machines is a strange name service bug - the connection looks fine, an IP is assigned, but there is no ping available (or any other IP traffic apparently). This only happens on systems that use systemd-resolved - other systems I have that still use dnsmasq seem to work okay. I haven't really been able to understand what's going on here, but there is some discussion of the issue and a workaround here: dlenski/openconnect#104
The workaround, in case you encounter this issue on a new install (I'm running 18.04 ubuntu) is, after your connection is active, look for the following process:
Killing this will give you a working VPN connection.
The text was updated successfully, but these errors were encountered: