[Samba] Firewalling Samba server
Troy Johnson
troy.a.johnson at gmail.com
Thu Oct 27 18:43:03 GMT 2005
On 10/27/05, John H Terpstra <jht at samba.org> wrote:
>
> On Thursday 27 October 2005 12:23, Loren M. Lang wrote:
> > On Thu, Oct 27, 2005 at 10:56:28AM -0700, DSanchez wrote:
> > > I'm planning on firewalling my samba server, i understand that the
> ports
> > > for samba are
> > > 137 139 445. Does anyone know if these are udp or tcp ports?
> > 137 udp for nmbd
> > 139 and 445 tcp for smbd
> Add port 138 UDP (nmbd).
> Windows also uses port 135 TCP for MS DEC RPC, Samba-3 does not use this
> port.
> - John T.
>
You could demonstrate this by:
[root at abc ~]# service smb stop
[root at abc ~]# netstat -ln > netstat-ln-smb.before
[root at abc ~]# service smb start
[root at abc ~]# netstat -ln > netstat-ln-smb.after
[root at abc ~]# diff netstat-ln-smb.*
and do it for other services by changing "smb" to something else.
Good luck,
Troy
More information about the samba
mailing list