What Ports Need To Be Open For Samba To Communicate With Other Windows/Linux Systems?

Posted on in Categories , , , , last updated March 31, 2017

What ports need to be open for Samba to communicate with other windows/linux systems? I need to configure Linux firewall so I need the exact port TCP and UDP port numbers for SMB/CIFS networking protocol. Can you provide me a list of ports along with sample iptables rules?