Hi I have Ubuntu 9.04 installed and a healthy Samba installation.

If I have the firewall, UFW, activated I cannot see my network and get this error message in Nautilus when I click "Windows Network"
failed to retrieve share list from server

I have enabled samba by running this UFW command:
sudo ufw allow samba
. In the GUI GUFW I then see that these rules have been added:
137,138/udp (samba) ALLOW anywhere
139,445/tcp (samba) ALLOW anywhere
I have edited the file /etc/default/ufw, in particular I added nf_conntrack_netbios_ns so the relevant line becomes like so:
IPT_MODULES="nf_conntrack_ftp nf_nat_ftp nf_conntrack_irc nf_nat_irc nf_conntrack_netbios_ns"
Despite all that, Samba only works if I turn UFW off.

What have I missed?