[avahi] avahi-0.6.24 on freebsd-7.0

Dewey Hylton dewey.hylton at gmail.com
Tue Dec 30 13:22:19 PST 2008


i would like the avahi server to show up in finder on my macosx boxes.
what i'm attempting does work on ubuntu but i just can't get it
working on freebsd. as far as i can tell, the configs are the same
between the ubuntu (working) and freebsd (non-working) boxes. i'm
using the latest versions available from their respective "official"
package management systems (ie freebsd ports).

after screwing around with avahi on and off for the past couple of
weeks, and not finding a fix via irc (but thanks going out to a few
genuinely helpful folks there, you know who you are), i'm ready to
throw in the towel ... any help would be greatfully accepted. so
without further ado, here is information i've gathered which i believe
may be useful in showing the situation:

firewalling completely disabled on both client and server.


client: dewey-imac
macosx 10.5.6
en0: flags=8963<UP,BROADCAST,SMART,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
        inet 10.0.0.234 netmask 0xffffff00 broadcast 10.0.0.255

server: walle
FreeBSD 7.0-RELEASE-p7
avahi-0.6.24
dbus-1.2.1
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        inet 10.0.0.9 netmask 0xffffff00 broadcast 10.0.0.255



walle# avahi-daemon --debug
-----------------------------
Found user 'avahi' (UID 558) and group 'avahi' (GID 558).
Successfully dropped root privileges.
avahi-daemon 0.6.24 starting up.
WARNING: No NSS support for mDNS detected, consider installing nss-mdns!
Loading service file /usr/local/etc/avahi/services/afp.service.
Loading service file /usr/local/etc/avahi/services/sftp-ssh.service.
Loading service file /usr/local/etc/avahi/services/ssh.service.
Joining mDNS multicast group on interface em0.IPv4 with address 10.0.0.9.
New relevant interface em0.IPv4 for mDNS.
Network interface enumeration completed.
Registering new address record for 10.0.0.9 on em0.IPv4.
Registering HINFO record with values 'AMD64'/'FREEBSD'.
Server startup complete. Host name is walle.local. Local service
cookie is 2478213216.
Service "walle" (/usr/local/etc/avahi/services/ssh.service)
successfully established.
Service "SFTP File Transfer on walle"
(/usr/local/etc/avahi/services/sftp-ssh.service) successfully
established.
Service "walle" (/usr/local/etc/avahi/services/afp.service)
successfully established.
dbus-protocol.c: interface=org.freedesktop.Avahi.Server, path=/,
member=GetAPIVersion
dbus-protocol.c: interface=org.freedesktop.Avahi.Server, path=/, member=GetState
dbus-protocol.c: interface=org.freedesktop.Avahi.Server, path=/,
member=ServiceTypeBrowserNew
dbus-protocol.c: interface=org.freedesktop.Avahi.Server, path=/,
member=ServiceBrowserNew
dbus-protocol.c: interface=org.freedesktop.Avahi.Server, path=/,
member=ServiceBrowserNew
dbus-protocol.c: interface=org.freedesktop.Avahi.Server, path=/,
member=ServiceBrowserNew
dbus-protocol.c: interface=org.freedesktop.Avahi.Server, path=/,
member=ServiceBrowserNew
dbus-protocol.c: client :1.12 vanished.
dbus-protocol.c: interface=org.freedesktop.Avahi.Server, path=/,
member=GetAPIVersion
dbus-protocol.c: interface=org.freedesktop.Avahi.Server, path=/, member=GetState
dbus-protocol.c: interface=org.freedesktop.Avahi.Server, path=/,
member=ServiceTypeBrowserNew
dbus-protocol.c: interface=org.freedesktop.Avahi.Server, path=/,
member=ServiceBrowserNew
dbus-protocol.c: interface=org.freedesktop.Avahi.Server, path=/,
member=ServiceBrowserNew
dbus-protocol.c: interface=org.freedesktop.Avahi.Server, path=/,
member=ServiceBrowserNew
dbus-protocol.c: interface=org.freedesktop.Avahi.Server, path=/,
member=ServiceBrowserNew
dbus-protocol.c: client :1.13 vanished.


walle# tcpdump -nli em0 |grep 5353
-----------------------------
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on em0, link-type EN10MB (Ethernet), capture size 96 bytes

15:28:25.782360 IP 10.0.0.9.5353 > 224.0.0.251.5353: 0 [2q] [3n] ANY
(QM)? 9.0.0.10.in-addr.arpa.[|domain]
15:28:26.034751 IP 10.0.0.9.5353 > 224.0.0.251.5353: 0 [2q] [3n] ANY
(QM)? 9.0.0.10.in-addr.arpa.[|domain]
15:28:26.287194 IP 10.0.0.9.5353 > 224.0.0.251.5353: 0 [2q] [3n] ANY
(QM)? 9.0.0.10.in-addr.arpa.[|domain]
15:28:26.488262 IP 10.0.0.9.5353 > 224.0.0.251.5353: 0*- [0q] 3/0/0
(Cache flush) PTR[|domain]
15:28:26.589784 IP 10.0.0.9.5353 > 224.0.0.251.5353: 0 [4q] [8n][|domain]
15:28:26.842234 IP 10.0.0.9.5353 > 224.0.0.251.5353: 0 [4q] [8n][|domain]
15:28:27.094681 IP 10.0.0.9.5353 > 224.0.0.251.5353: 0 [4q] [8n][|domain]
15:28:27.295625 IP 10.0.0.9.5353 > 224.0.0.251.5353: 0*- [0q] 17/0/0[|domain]
15:28:27.542398 IP 10.0.0.9.5353 > 224.0.0.251.5353: 0*- [0q] 2/0/0
(Cache flush) PTR[|domain]
15:28:28.351406 IP 10.0.0.9.5353 > 224.0.0.251.5353: 0*- [0q] 17/0/0[|domain]
15:28:29.607960 IP 10.0.0.9.5353 > 224.0.0.251.5353: 0*- [0q] 3/0/0
(Cache flush) PTR[|domain]
15:28:30.406721 IP 10.0.0.9.5353 > 224.0.0.251.5353: 0*- [0q] 17/0/0[|domain]
15:31:15.417538 IP 10.0.0.9.5353 > 224.0.0.251.5353: 0 [8a] [5q] PTR
(QM)? _services._dns-sd._udp.local.[|domain]
15:32:27.371515 IP 10.0.0.9.5353 > 224.0.0.251.5353: 0 [8a] [5q] PTR
(QM)? _services._dns-sd._udp.local.[|domain]


dewey-imac:~ root# tcpdump -nli en0 multicast|grep 5353
-----------------------------
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on en0, link-type EN10MB (Ethernet), capture size 96 bytes

15:28:26.304295 IP 10.0.0.9.5353 > 224.0.0.251.5353: 0 [2q] [3n] ANY
(QM)? 9.0.0.10.in-addr.arpa.[|domain]
15:28:26.556684 IP 10.0.0.9.5353 > 224.0.0.251.5353: 0 [2q] [3n] ANY
(QM)? 9.0.0.10.in-addr.arpa.[|domain]
15:28:26.809128 IP 10.0.0.9.5353 > 224.0.0.251.5353: 0 [2q] [3n] ANY
(QM)? 9.0.0.10.in-addr.arpa.[|domain]
15:28:27.010197 IP 10.0.0.9.5353 > 224.0.0.251.5353: 0*- [0q] 3/0/0
(Cache flush) PTR[|domain]
15:28:27.111741 IP 10.0.0.9.5353 > 224.0.0.251.5353: 0 [4q] [8n][|domain]
15:28:27.364197 IP 10.0.0.9.5353 > 224.0.0.251.5353: 0 [4q] [8n][|domain]
15:28:27.616630 IP 10.0.0.9.5353 > 224.0.0.251.5353: 0 [4q] [8n][|domain]
15:28:27.817558 IP 10.0.0.9.5353 > 224.0.0.251.5353: 0*- [0q] 17/0/0[|domain]
15:28:28.064330 IP 10.0.0.9.5353 > 224.0.0.251.5353: 0*- [0q] 2/0/0
(Cache flush) PTR[|domain]
15:28:28.873368 IP 10.0.0.9.5353 > 224.0.0.251.5353: 0*- [0q] 17/0/0[|domain]
15:28:30.129940 IP 10.0.0.9.5353 > 224.0.0.251.5353: 0*- [0q] 3/0/0
(Cache flush) PTR[|domain]
15:28:30.928697 IP 10.0.0.9.5353 > 224.0.0.251.5353: 0*- [0q] 17/0/0[|domain]

walle# avahi-browse -at
-----------------------------
+  em0 IPv4 walle [00:0e:0c:aa:7b:ca]
_workstation._tcp    local
+  em0 IPv4 walle                                         _ssh._tcp
        local
+  em0 IPv4 SFTP File Transfer on walle
_sftp-ssh._tcp       local
+  em0 IPv4 walle
_afpovertcp._tcp     local

dewey-imac:~ root# mDNS -B _afpovertcp._tcp local
-----------------------------
Browsing for _afpovertcp._tcplocal
Talking to DNS SD Daemon at Mach port 4099
Timestamp     A/R Flags Domain                   Service Type
   Instance Name
15:15:34.869  Add     1 local.                   _afpovertcp._tcp.
   dewey-imac
15:15:34.869  Add     1 local.                   _afpovertcp._tcp.
   dewey-imac
15:15:34.869  Add     0 local.                   _afpovertcp._tcp.
   cindy-imac ## this is another macosx 10.5.6 client


More information about the avahi mailing list