Re: Firewall setup for Samba
From: Jan Schledermann (jschledermann_at_REMOVEeuronet.nl)
Date: Wed, 18 May 2005 15:07:56 +0200
> I would prefer to have the firewall on, for obvious reasons. Would
> anyone be willing to offer any guidance as to how to perhaps open the
> needed ports for Samba? I use webmin for Samba configuration and other
> tasks, but the iptables options there are a little over my head;
> notwithstanding the fact I do not know which ports need to be open by
> default for smb.
You'll need at least port 138 and 139 open.
Check out the file: /etc/services
It is a reference of all normal ports/services.
Whenever you are having the fw on and are being blocked, have a look at:
It'll show you which ports are being blocked.