New Avahi package



  • This topic is for information on the new Avahi package.

    The new package, version 2.0.0, has been released. If you have the prior 1.X package installed, it is recommended, but not required, that you uninstall the old package before installing the new package. This will ensure that all files from the prior package are removed.

    The new version offers the following improvements:

    • A much cleaner and simpler interface.
    • Uses positive interface selection rather than negative selection. This prevents security surprises when adding interfaces.
    • Addresses an information leakage issue with OpenVPN connections.
    • Removes run-time dependance upon dbus, reducing memory and improving service startup time (no more 5 second delay).
    • Disables local cache which caused hostname collision issues with reflection.

    The new package will migrate your existing configuration. After installing, navigate to the Avahi settings page (Services / Avahi), review your configurations and press Save. This will save the new configuration and start the Avahi daemon.

    Version history:

    • 2.0.0_1 Initial production version


  • Note that if you have publishing disabled (which is the default) you may see the following errors in the system log:

    Failed to add service 'fw' of type '_sftp-ssh._tcp', ignoring service group (/usr/local/etc/avahi/services/sftp-ssh.service): Not permitted
    Failed to add service 'fw' of type '_ssh._tcp', ignoring service group (/usr/local/etc/avahi/services/ssh.service): Not permitted
    

    These errors are benign and can be ignored.



  • Hi,

    Being stupid, I found the upgrade, and hit the update button.

    True, Avahi 2.0.0 won't restart after updating - I visited the settings page, what'l left of it ;) , and a simple Save (without even looking the option - again, I'm stupid) started the Avahi daemon right away.

    All is well. Thank your for your notice.



  • Hi,

    I just updated the avahi package to version 2.0.0_1. But no response from avahi to any MDNS requests...

    I tried with one/several interfaces but did not work.

    Avahi configuration :0_1542039891202_image.JPG

    Any idea?



  • I’ve also been having a lot of intermittent issues with specific devices (namely an iDevices brand switch) not responding in HomeKit since upgrading to 2.0.0_1. Other devices don’t appear to be affected. Was there any change to the Avahi service with this upgrade, or was it only a GUI change?



  • @dammex Can you explain what subnets you have devices mDNS devices in? I note that your LAN is not included in the list of subnets--are there no mDNS devices in the LAN? I also see you have an OpenVPN interface defined--I don't know that OpenVPN supports multicast forwarding.

    Unrelated: unless you have a specific reason for using it, you probably want to disable publishing of information about the pfSense host.



  • @xpxp2002 said in New Avahi package:

    I’ve also been having a lot of intermittent issues with specific devices (namely an iDevices brand switch) not responding in HomeKit since upgrading to 2.0.0_1. Other devices don’t appear to be affected. Was there any change to the Avahi service with this upgrade, or was it only a GUI change?

    No change to the underlying Avahi service, just the GUI.



  • @dammex One other note: when you add/remove connectivity between devices, sometimes they won't work right away. I have a couple of stupid devices that don't respond to discovery--I either have to wait N minutes for the devices to retry their own discovery or restart them to force it.



  • @dennypage that’s very odd, then. Is there a cache on disk that I might be able to try deleting? Restarting the Avahi service brings the device "back to life" for about 15 minutes, then it drops out again. I can still see it sending multicasts every couple seconds, so I’m not sure why restarting the service has any effect.



  • @xpxp2002 Avahi caching is completely disabled.

    To help me understand, can you give a brief explanation of what devices you are trying to communicate between, and what interfaces they are attached to on your pfSense box?

    Also, can you show your Avahi config please?