iptables rules to allow nautilus samba access

Bill Tangren bjt at aa.usno.navy.mil
Wed Jul 27 21:09:27 UTC 2005


I am trying to get access to the windows network neighborhood via 
smb:/// in nautilus. If I turn off iptables, it works just fine. If I 
turn it back on, it doesn't. Ethereal indicates that the traffic (with 
iptables turned off) looks like:

protocol: NBSS
Source Port (my box): 33406
Destination Port (another box on the LAN): netbios

The protocol is sometimes TCP, and sometimes LANMAN.

These high ports change when I open a new nautilus process.

These are the rules I have in iptables for samba (output from service 
iptables status):

Chain udp_inbound (1 references)
target     prot opt source               destination
ACCEPT     udp  --  10.1.5.0/24          0.0.0.0/0           udp 
dpts:137:139
ACCEPT     udp  --  10.1.5.0/24          0.0.0.0/0           udp dpt:445
RETURN     udp  --  0.0.0.0/0            0.0.0.0/0

Chain tcp_inbound (1 references)
target     prot opt source               destination
ACCEPT     tcp  --  10.1.5.0/24          0.0.0.0/0           tcp 
dpts:137:139
ACCEPT     tcp  --  10.1.5.0/24          0.0.0.0/0           tcp dpt:445
ACCEPT     tcp  --  10.1.5.0/24          0.0.0.0/0           tcp dpt:32890
ACCEPT     tcp  --  10.1.5.0/24          0.0.0.0/0           tcp dpt:32911
RETURN     tcp  --  0.0.0.0/0            0.0.0.0/0

My LAN is obviously 10.1.5.*

Does anyone know what ports I need to open to allow nautilus to access 
the network neighborhood?

TIA,
Bill Tangren




More information about the redhat-list mailing list