On Tue, 28 Mar 2006 19:08:38 +0530 "Hiren Dave" <[EMAIL PROTECTED]> wrote:
> Hi, > > I want to configure firewall such that network 192.168.1.0/24 can > only access http server from server1(192.168.0.2/24) and > network 192.168.0.0/24 can not access http server. So I tried this: > > #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? Because you need to put in a protocol like -p tcp. > ALSO IS THERE ANY BOOKS OR ONLINE DOCUMENTS FOR PRACTICALLY LEARNING > OF IPTABLES? http://www.google.com/search?q=iptables+howto -- gentoo-user@gentoo.org mailing list