Gentoo Archives: gentoo-user

From: JimD <Jim@×××××××××××××××××.org>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] iptables question
Date: Wed, 29 Mar 2006 02:30:03
Message-Id: 20060328212454.6687d1b4@keelie.localdomain
In Reply to: [gentoo-user] iptables question by Hiren Dave
1 On Tue, 28 Mar 2006 19:08:38 +0530
2 "Hiren Dave" <hiren2k4@×××××.com> wrote:
3
4 > Hi,
5 >
6 > I want to configure firewall such that network 192.168.1.0/24 can
7 > only access http server from server1(192.168.0.2/24) and
8 > network 192.168.0.0/24 can not access http server. So I tried this:
9 >
10 > #service iptables stop
11 > #iptables -P INPUT DROP
12 > #iptables -t filter -A INPUT -s 192.168.1.0/24 --dport 80 -j ACCEPT
13 >
14 > But this command sends error that "Unknown arg: --dport"
15 > HOW CAN I ACHIEVE THIS?
16
17 Because you need to put in a protocol like -p tcp.
18
19 > ALSO IS THERE ANY BOOKS OR ONLINE DOCUMENTS FOR PRACTICALLY LEARNING
20 > OF IPTABLES?
21
22 http://www.google.com/search?q=iptables+howto
23 --
24 gentoo-user@g.o mailing list