Netatalk3 is a file server for exporting storage to Macs. Samba has long been considered its replacement, but to this day Netatalk still handles file labels and other Mac-specific metadata more reliably and with greater performance. One day I’ll properly try replicating this in Samba.
I installed it in a new FreeBSD jail:
# pkg install net/netatalk3
/var/log/daemon.log in the jail and was inundated with afpd(8) spam:
netatalk: Restarting 'afpd' (restarts: 7) afpd: dsi_tcp_init(*): getaddrinfo: Name does not resolve afpd: No suitable network config for TCP socket afpd: no suitable network address found, use "afp listen" or "afp interfaces" afpd: main: no servers configured
I followed the error’s advice and added the IP address of the jail to the
[Global] section of my
afp listen = <IP Address>
It worked, and I was able to log in, as shown in the logs:
afpd: Netatalk AFP/TCP listening on <IP Address>:548
I don’t recall ever having to add a specific interface or IP address to an
afp.conf file before on a FreeBSD or NetBSD host. My hunch is it has something to do with the jail environment, and
dsi_tcp_init not being able to autodetect or initialise the jail’s virtual network interface. Please correct me if you have more details!