As root:
iptables -I INPUT -p tcp --dport 139 -j ACCEPT
If this system is accessible to the internet, you should only allow ip address(es) that need access (allowing public access to Samba shares is a really bad idea). So can use this as a template, just subsitute in the appropriate IP address or network subnets:
iptables -I INPUT -s XXX.XXX.XXX.XXX -p tcp --dport 139 -j ACCEPT
--EDIT--
Once you get it working, save your ruleset so that it will remain after a reboot:
service iptables save
Last edited by Capt_Caveman; 04-18-2004 at 09:30 PM.
|