a bit strange that it doesn't work for you.
Try this, I use this on my router box:
Code: Select all
iptables -I INPUT -i eth0 -m multiport -p tcp --dports 137,139,445,631,53 -j DROP
iptables -I INPUT -i eth0 -m multiport -p udp --dports 137,138,139,445,631 -j DROP
needs the ipt_multiport netfilter module.
as far as i can tell, those ports are shut. you could create a separate chain with a logging
directive inside, to see if it works, and then let the filter line above jump to it, something like this:
Code: Select all
iptables -t filter -N DEBUGLOG >/dev/null 2>&1
iptables -t filter -A DEBUGLOG -j LOG --log-prefix "++FILTERED: "
iptables -t filter -A DEBUGLOG -j DROP
iptables -I INPUT -i eth0 -m multiport -p tcp --dports 137,139,445,631,53 -j DEBUGLOG
iptables -I INPUT -i eth0 -m multiport -p udp --dports 137,138,139,445,631 -j DEBUGLOG
and then scan your host again. you should see a few "++FILTERED: ..." messages in dmesg.
good luck,
--
mlau