Gentoo Archives: gentoo-user

From: "Boyd Stephen Smith Jr." <bss03@××××××××××.net>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] iptables question
Date: Tue, 28 Mar 2006 14:28:24
Message-Id: 200603280806.30073.bss03@volumehost.net
In Reply to: [gentoo-user] iptables question by Hiren Dave
1 On Tuesday 28 March 2006 07:38, "Hiren Dave" <hiren2k4@×××××.com> wrote
2 about '[gentoo-user] iptables question':
3 > #service iptables stop
4 > #iptables -P INPUT DROP
5 > #iptables -t filter -A INPUT -s 192.168.1.0/24 --dport 80 -j ACCEPT
6 >
7 > But this command sends error that "Unknown arg: --dport"
8 > HOW CAN I ACHIEVE THIS?
9
10 Raw IP doesn't have port numbers; You'll have to match on the TCP or UDP
11 protocol to be able to match ports.
12
13 > ALSO IS THERE ANY BOOKS OR ONLINE DOCUMENTS FOR PRACTICALLY LEARNING OF
14 > IPTABLES?
15
16 Tldp is a good resource.
17
18 --
19 "If there's one thing we've established over the years,
20 it's that the vast majority of our users don't have the slightest
21 clue what's best for them in terms of package stability."
22 -- Gentoo Developer Ciaran McCreesh