On Tuesday 28 March 2006 07:38, "Hiren Dave" wrote about '[gentoo-user] iptables question': > #service iptables stop > #iptables -P INPUT DROP > #iptables -t filter -A INPUT -s 192.168.1.0/24 --dport 80 -j ACCEPT > > But this command sends error that "Unknown arg: --dport" > HOW CAN I ACHIEVE THIS? Raw IP doesn't have port numbers; You'll have to match on the TCP or UDP protocol to be able to match ports. > ALSO IS THERE ANY BOOKS OR ONLINE DOCUMENTS FOR PRACTICALLY LEARNING OF > IPTABLES? Tldp is a good resource. -- "If there's one thing we've established over the years, it's that the vast majority of our users don't have the slightest clue what's best for them in terms of package stability." -- Gentoo Developer Ciaran McCreesh