Here are the various ports and protocols used by Samba.
To check your current firewall rules, you can use the iptables -L command. Probably one of the best ways to verify that the Samba ports are open (and reachable) is to perform an nmap scan from the client machine.