vpnc hangs, if avahi-daemon installed

Bug #1772692 reported by Mütze
10
This bug affects 2 people
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/avahi/avahi-daemon-check-dns.sh

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

Revision history for this message
Mütze (muetze-bsw) wrote :

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.

summary: - vpnc hangs, when avahi-daemon installed
+ vpnc hangs, if avahi-daemon installed
no longer affects: network-manager-vpnc (Ubuntu)
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in avahi (Ubuntu):
status: New → Confirmed
Changed in bind9 (Ubuntu):
status: New → Confirmed
Changed in vpnc (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.