To open up your ufw firewall for DAAP on the local network (ipv4 rfc 1918), you can issue the following:
sudo ufw allow proto tcp from 10.0.0.0/8 to 10.0.0.0/8 port 3689
sudo ufw allow proto tcp from 172.16.0.0/12 to 172.16.0.0/12 port 3689
sudo ufw allow proto tcp from 192.168.0.0/16 to 192.168.0.0/16 port 3689To delete them again, use the same but with "delete" just before "allow".