vpnc hangs, if avahi-daemon installed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
avahi (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
bind9 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned | ||
vpnc (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
My vpnc configuration stopped working correctly after an upgrade from 16.04 to 18.04.
Symptoms are:
When starting vpnc with:
$ sudo vpnc-connect myconfig
vpnc hangs without a working vpn connection. Pressing Ctrl-C once, will output the line
^CVPNC started in background (pid: 19352)...
and vpn suddenly works.
Hint: Pressing Ctrl-C twice is bad, as that exits vpnc without a working vpn
connection. And it changes the routing table and /etc/resolv.conf, so that
normal internet is also not working correctly. I found the Ctrl-C workaround
by accident.
Further examination revealed, that vpnc seems to hang inside the following script:
/usr/lib/
which comes with the avahi-daemon package.
I also discovered, that there is a 'host' process hanging. So, the above script
seems to hang in line 76:
OUT=`LC_ALL=C host -t soa local. 2>&1`
'host' is part of the bind9-host package.
Currently, I simply deinstalled avahi-daemon. Luckily, I don't need that package.
I'm not sure, which package is to blame for this bug, my candidates are (in this
order):
bind9-host
avahi-daemon
vpnc
I'd like to mention, that I try to connect to a cisco vpn server.
I added an anonymized config file, although I believe, that most
setups will exhibit this bug.