[Samba] Samba Ports

Joel Hammer Joel at HammersHome.com
Wed Jan 30 04:38:06 GMT 2002

Here is what I have in /etc/services (grep -i netbios /etc/services):
I don't know which protocols are used on each port, so, just open up
all three ports for both protocols.


netbios-ns	137/tcp				# NETBIOS Name Service
netbios-ns	137/udp
netbios-dgm	138/tcp				# NETBIOS Datagram Service
netbios-dgm	138/udp
netbios-ssn	139/tcp				# NETBIOS session service
netbios-ssn	139/udp

On Wed, Jan 30, 2002 at 11:45:48AM +0200, Brett Cavé wrote:
> Hi there.
> I have a question regarding samba behind a firewall. What ports do samba
> use? 
> I am allowing incoming on 139 (NetBIOS) and 445 (ms-dn), with all other
> ports blocked, yet I cannot access the samba shared directories with the
> firewall up.
> Are there any other ports that are needed by Samba?

More information about the samba mailing list