Samba won't work unless you punch the right holes in your firewall. Here they are:

TCP 445
TCP 139
UPD 137, 138

You could use something like the following to create these rules (Fedora / Redhat):

# iptables -I RH-Firewall-1-INPUT -s 192.168.1.0/255.255.255.0 -p tcp -m tcp --dport 445 -j ACCEPT
# iptables -I RH-Firewall-1-INPUT -s 192.168.1.0/255.255.255.0 -p tcp -m tcp --dport 139 -j ACCEPT
# iptables -I RH-Firewall-1-INPUT -s 192.168.1.0/255.255.255.0 -p udp -m udp --dport 137:138 -j ACCEPT

Remeber to run:

# service iptables save

to make the rules stick.


CategoryLinux CategorySamba

SambaFirewallPorts (last edited 2006-02-11 15:21:58 by DavidKeen)