public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: JimD <Jim@keeliegirl.dyndns.org>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] iptables question
Date: Tue, 28 Mar 2006 21:24:54 -0500	[thread overview]
Message-ID: <20060328212454.6687d1b4@keelie.localdomain> (raw)
In-Reply-To: <a944a7520603280538j488ef7dfwc9a89b9cb524323f@mail.gmail.com>

On Tue, 28 Mar 2006 19:08:38 +0530
"Hiren Dave" <hiren2k4@gmail.com> 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



  parent reply	other threads:[~2006-03-29  2:30 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-28 13:38 [gentoo-user] iptables question Hiren Dave
2006-03-28 14:06 ` Boyd Stephen Smith Jr.
2006-03-28 14:35 ` Uwe Thiem
2006-03-29  2:24 ` JimD [this message]
2006-03-29 14:43 ` [gentoo-user] " James
  -- strict thread matches above, loose matches on Subject: below --
2011-12-16 15:17 [gentoo-user] " Tanstaafl
2011-12-17 16:34 ` Hari Purnama
2011-12-17 17:25   ` Tanstaafl
2007-01-31 20:36 [gentoo-user] IPtables question James Colby
2007-01-31 20:56 ` Albert Hopkins
2007-01-31 23:25   ` Mick
2007-02-01  3:58 ` Norberto Bensa
2007-02-02  8:45 ` Pawel Kraszewski
2007-02-02  9:54   ` Hans-Werner Hilse
2007-02-02 11:01     ` Pawel Kraszewski
2006-01-20 19:49 [gentoo-user] iptables question Dmitry S. Makovey
2006-01-20 20:49 ` Trenton Adams
2006-01-20 22:21   ` Dmitry S. Makovey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060328212454.6687d1b4@keelie.localdomain \
    --to=jim@keeliegirl.dyndns.org \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox