About Linux FAQ

Browse More FAQs:

What ports need to be open for Samba to communicate with other windows/linux systems?

Posted by Vivek Gite [Last updated: July 29, 2006]

Q. 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 names.

A. You can get list of ports from file called /etc/services. For your ease of use here are ports you need to open for two-way samba communication with Windows and Linux desktop systems.

  • netbios-ns - 137/tcp # NETBIOS Name Service
  • netbios-dgm - 138/tcp # NETBIOS Datagram Service
  • netbios-ssn - 139/tcp # NETBIOS session service
  • microsoft-ds - 445/tcp # if you are using Active Directory

Other ports

  • Port 389 (TCP) - for LDAP (Active Directory Mode)
  • Port 445 (TCP) - NetBIOS was moved to 445 after 2000 and beyond, (CIFS)
  • Port 901 (TCP) - for SWAT service (not related to client communication)

See this url for Iptables rules for SAMBA/CIFS clients.

E-mail    Print    Can't find an answer to your question? Contact us

Related Other Helpful FAQs:

Leave a Reply

We encourage your comments, and suggestions. But please stay on topic, be polite, and avoid spam. Thank you very much for stopping by our site!

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Copyright © 2006-2008 nixCraft. All rights reserved - TOS/Disclaimer - Privacy policy - Powered by Open source software.