Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Arnt Karlsen <arnt@c2i.net>
To: Cedric Blancher <blancher@cartel-securite.fr>
Cc: netfilter@lists.netfilter.org
Subject: Re: FORWARD rules
Date: Mon, 15 Sep 2003 18:32:05 +0200	[thread overview]
Message-ID: <20030915183205.2f109f6f.arnt@c2i.net> (raw)
In-Reply-To: <1063612582.928.17.camel@elendil.intranet.cartel-securite.net>

On Mon, 15 Sep 2003 09:56:22 +0200, 
Cedric Blancher <blancher@cartel-securite.fr> wrote in message 
<1063612582.928.17.camel@elendil.intranet.cartel-securite.net>:

> Le sam 13/09/2003 à 08:42, Arnt Karlsen a écrit :
> > ..wrong snippet.  ;-)  Reread the thread, and you'll see both I 
> > and Cedric weren't to clear on that we meant to say, we _implied_ 
> > things instead of actually _saying_ them
> 
> So, for the things to get clear, the whole script should be[1] :
> 
> 
> $IPTABLES -P FORWARD DROP
> $IPTABLES -P INPUT DROP
> 
> $IPTABLES -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
> $IPTABLES -A FORWARD -m state --state NEW -s 125.125.125.0/32 -p tcp \
>         -m tcp --dport 53 -j ACCEPT
> $IPTABLES -A FORWARD -m state --state NEW -s 125.125.125.0/32 -p udp \
>         -m tcp --dport 53 -j ACCEPT
> $IPTABLES -A FORWARD  -m state --state NEW -s 125.125.125.0/32 -p tcp
> \        -m tcp --dport 80 -j ACCEPT
> $IPTABLES -A FORWARD  -m state --state NEW -s 125.125.125.0/32 -p tcp
> \        -m tcp --dport 110 -j ACCEPT
> 
> $IPTABLES -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
> 
> echo "1" > /proc/sys/net/ipv4/ip_forward
> 
> 
> A -m state --state NEW,ESTABLISHED,RELATED _should not_ be used, as
> it's an quasi-generic full match (i.e. nearly matches all packets).
> 
> 
> [1] Note I did a typo in my
> <1063363533.879.52.camel@elendil.intranet.cartel-securite.net> post,
> it's FORWARD, not INPUT...

..me too, ;-)  I ofcourse meant we "weren't too clear on what 
we meant to say"...  ;-)

-- 
..med vennlig hilsen = with Kind Regards from Arnt... ;-)
...with a number of polar bear hunters in his ancestry...
  Scenarios always come in sets of three: 
  best case, worst case, and just in case.



  reply	other threads:[~2003-09-15 16:32 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-09-10 17:52 FORWARD rules Payal Rathod
2003-09-10 18:44 ` Ramin Dousti
2003-09-11  2:15   ` netfilter
2003-09-10 18:47 ` Vladimir Potapov
2003-09-11  6:09 ` Vishwanatn T. K.
2003-09-12 10:09   ` Payal Rathod
2003-09-12 10:45     ` Cedric Blancher
2003-09-12 14:36       ` Arnt Karlsen
2003-09-12 14:51         ` Cedric Blancher
2003-09-12 18:14           ` Arnt Karlsen
2003-09-13  2:26             ` Payal Rathod
2003-09-13  6:42               ` Arnt Karlsen
2003-09-15  7:56                 ` Cedric Blancher
2003-09-15 16:32                   ` Arnt Karlsen [this message]
2003-09-15 17:34                     ` Cedric Blancher
2003-09-16  4:28                       ` Payal Rathod
2003-09-16 23:31                         ` Arnt Karlsen
2003-09-12 10:35   ` Cedric Blancher
  -- strict thread matches above, loose matches on Subject: below --
2003-09-16  4:28 Payal Rathod
2003-11-28 19:18 Forward rules Alejandro Cabrera Obed
2003-11-28 20:03 ` Jeffrey Laramie

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=20030915183205.2f109f6f.arnt@c2i.net \
    --to=arnt@c2i.net \
    --cc=blancher@cartel-securite.fr \
    --cc=netfilter@lists.netfilter.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