Mail Beyond Logo
Feed on
Posts
Comments

There are gui’s for configuration, but you have to find them and install them, when you could just edit the files in half the time. These instructions are for Red Hat Enterprise Linux (RHEL) but will probably work on most distros with IPTables, on which you wish to host Samba (SMB) shares. Yay for Windows Fileserving!

The ports you need to open are 137:udp, 138:udp, 139:tcp.

Edit the IPTables config file with:

sudo vi /etc/sysconfig/iptables

Then add these lines, the ruleset name to match your other rules

-A RH-Firewall-1-INPUT -m state –state NEW -m udp -p udp –dport 137 -j ACCEPT
-A RH-Firewall-1-INPUT -m state –state NEW -m udp -p udp –dport 138 -j ACCEPT
-A RH-Firewall-1-INPUT -m state –state NEW -m tcp -p tcp –dport 139 -j ACCEPT

Save the file and exit, then restart your firewall to load the new rules with:

sudo /etc/init.d/iptables restart

Done!

If you found this helpful, help me by checking out the ads at the bottom of the page. Thank you!

Bookmark with: | del.icio.us | Digg it | Netscape | Newsvine | Yahoo MyWeb |

Trackback URI | Comments RSS

Leave a Reply

You must be logged in to post a comment.