Bug 447335 - Default configuration should not block smb/netbios browsing
Default configuration should not block smb/netbios browsing
Product: Fedora
Classification: Fedora
Component: anaconda (Show other bugs)
All Linux
low Severity low
: ---
: ---
Assigned To: Thomas Woerner
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2008-05-19 11:40 EDT by Simo Sorce
Modified: 2008-07-22 11:01 EDT (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-07-22 10:54:56 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Simo Sorce 2008-05-19 11:40:15 EDT
Description of problem:

The current firewall rules break smb servers browsing. This makes impossible to
find other machines sharing data.

it seem that the only way to restore this for an unexperienced user is to add
"samba" as a trusted service or to disable the firewall.

In both cases the solution is sub-optimal.

Enabling samba as a trust service allows me to browse but it also *expose* my
samba server.

An option that allows a machine to browse and access other machines without
exposing our own samba service is highly desirable, possible  and should be the
Comment 1 Thomas Woerner 2008-05-19 11:52:08 EDT
What is needed for browsing (client) and what is needed for a server?

This is the current configuration for the samba service:

137/udp, 138/udp, 139/udp and 445/tcp
helper: nf_conntrack_netbios_ns
Comment 2 Simo Sorce 2008-05-19 12:39:38 EDT
For browsing you need to be able to send and receive packets on 137/138 udp
For accessing other servers you need to be able to connect to 139/445 tcp

You do not need to give access to 139/445 tcp (the smbd server); that is
necessary only if you want to share printers.

139/udp is wrong, it is not used, 139/tcp is correct

Comment 3 Thomas Woerner 2008-05-20 08:02:44 EDT
I meant 139/tcp, it was a typo.

So the configuration should be like this:

Samba Client:
137,138/udp, ip_conntrack_netbios_ns (allows netbios broadcasts through the

Samba Server:

Is that correct? The server does not need the udp ports at all?
Comment 4 Simo Sorce 2008-05-20 08:52:23 EDT
No the server still need them to allow clients to find it, and announce itself
of the netbios network.
Comment 5 Thomas Woerner 2008-05-26 12:26:44 EDT
Please have a look at system-config-firewall-1.2.8 in testing. There is a new
client service for Samba. Please test if this is working for you.

The initial firewall configuration is done in anaconda, therefore this bug
should be assigned to anaconda afterwards, it should enable the desktop defaults
for the firewall.
Comment 6 Simo Sorce 2008-05-27 09:21:58 EDT
Is it in Fedora 9 testing already ?
It seem I can't see it there.
Comment 7 Simo Sorce 2008-07-12 10:58:15 EDT
New system-config-firewall looks fine, now rerouting to anaconda for the install
time fixes.
Comment 8 Chris Lumens 2008-07-22 10:54:56 EDT
Our general plan in anaconda is to make the default firewall/security setting as
strict as possible, then have the user make whatever settings they want to
afterwards with system-config-firewall.  Right now, the most strict useful
settings we can come up with are SELinux enforcing and the firewall with ssh
open.  People get pretty angry when new holes are opened by default in the
installed firewall - in fact, we get occasional bug reports saying ssh shouldn't
even be allowed.
Comment 9 Simo Sorce 2008-07-22 11:01:34 EDT
Please make sure you understand this is for use as a client, in theory you could
just use contrack although I can't remember how good that is.
Certainly you are not thinking of blocking ssh clients are you ?

Note You need to log in before you can comment on or make changes to this bug.