I just had the same problem... using Samba with ufw. It didn't worked until I added nf_conntrack_netbios_ns to IPT_MODULES in /etc/default/ufw.
I just had the same problem... using Samba with ufw. It didn't worked until I added nf_conntrack_ netbios_ ns to IPT_MODULES in /etc/default/ufw.