From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.54) id 1FOFBH-0005pb-Uu for garchives@archives.gentoo.org; Tue, 28 Mar 2006 14:28:24 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.6/8.13.5) with SMTP id k2SEO7Us026116; Tue, 28 Mar 2006 14:24:07 GMT Received: from ender.volumehost.net (adsl-69-154-123-202.dsl.fyvlar.swbell.net [69.154.123.202]) by robin.gentoo.org (8.13.6/8.13.5) with ESMTP id k2SE6Xg6016722 for ; Tue, 28 Mar 2006 14:06:33 GMT Received: from localhost (localhost [127.0.0.1]) by ender.volumehost.net (Postfix) with ESMTP id 4ADC2E37A for ; Tue, 28 Mar 2006 14:06:32 +0000 (UTC) Received: from ender.volumehost.net ([127.0.0.1]) by localhost (ender.volumehost.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 29529-04-2 for ; Tue, 28 Mar 2006 14:06:31 +0000 (UTC) Received: from ip70-178-212-144.ks.ks.cox.net (ip70-178-212-144.ks.ks.cox.net [70.178.212.144]) (using SSLv3 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ender.volumehost.net (Postfix) with ESMTP id 3BC1EE38C for ; Tue, 28 Mar 2006 14:06:31 +0000 (UTC) From: "Boyd Stephen Smith Jr." To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] iptables question Date: Tue, 28 Mar 2006 08:06:24 -0600 User-Agent: KMail/1.9.1 References: In-Reply-To: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1944553.8p1kjdQd6l"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200603280806.30073.bss03@volumehost.net> X-Virus-Scanned: amavisd-new at volumehost.net X-Archives-Salt: 50d8b094-c9c4-4b98-8056-d98bfe9043e8 X-Archives-Hash: d799dc2651d1a4026447e9f0d10540a6 --nextPart1944553.8p1kjdQd6l Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Tuesday 28 March 2006 07:38, "Hiren Dave" wrote=20 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=20 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. =2D-=20 "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." =2D- Gentoo Developer Ciaran McCreesh --nextPart1944553.8p1kjdQd6l Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQBEKULmq72nDbhDXToRAsiKAJ9PSIKQxfbLoNPtfvqC/5pbfEFf8gCgnlyQ jXikveVjZ1AmWhjhJqugtsU= =+Nb2 -----END PGP SIGNATURE----- --nextPart1944553.8p1kjdQd6l-- -- gentoo-user@gentoo.org mailing list