From: Pascal Hambourg <pascal.mail@plouf.fr.eu.org>
To: a.schild@aarboard.ch
Cc: netfilter <netfilter@vger.kernel.org>
Subject: Re: How to debug RST filter ?
Date: Mon, 01 Feb 2010 20:29:03 +0100 [thread overview]
Message-ID: <4B672B7F.4060603@plouf.fr.eu.org> (raw)
In-Reply-To: <L749C3EBF46964d4a9E404BAF2BFD837F.1265011977.scalix01.aarboard.ch@MHS>
Hello,
a.schild@aarboard.ch a écrit :
>
> Rule 15 is the one which should allow everything "local" on the firewall
>
> #
> # Rule 15 (global)
> #
> echo "Rule 15 (global)"
> #
> #
> #
> $IPTABLES -N Cid4A4A84F123430.0
> $IPTABLES -A INPUT -s myip -m state --state NEW -j Cid4A4A84F123430.0
> $IPTABLES -A INPUT -s 127.0.0.1 -m state --state NEW -j Cid4A4A84F123430.0
> $IPTABLES -A Cid4A4A84F123430.0 -d myip -j ACCEPT
> $IPTABLES -A Cid4A4A84F123430.0 -d 127.0.0.1 -j ACCEPT
> $IPTABLES -N Cid4A4A84F123430.1
> $IPTABLES -A OUTPUT -s myip -m state --state NEW -j Cid4A4A84F123430.1
> $IPTABLES -A OUTPUT -s 127.0.0.1 -m state --state NEW -j Cid4A4A84F123430.1
> $IPTABLES -A Cid4A4A84F123430.1 -d myip -j ACCEPT
> $IPTABLES -A Cid4A4A84F123430.1 -d 127.0.0.1 -j ACCEPT
I do not see here "a rule which allows everything in/out on the
lo interface". Such rules would be :
iptables -A INPUT -i lo -j ACCCEPT
iptables -A OUTPUT -o lo -j ACCCEPT
Instead, your rules accept only packets in the NEW state (RST packets
are never in that state) whose source and destination addresses are
"myip" or 127.0.0.1 (not only 127.0.0.1 but also the whole 127.0.0.0/8
range may be used on the loopback interface).
next prev parent reply other threads:[~2010-02-01 19:29 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-01 7:50 How to debug RST filter ? Andre Schild
2010-02-01 8:05 ` Remzi AKYÜZ
2010-02-01 8:13 ` a.schild
2010-02-01 18:54 ` Mart Frauenlob
2010-02-01 19:29 ` Pascal Hambourg [this message]
2010-02-02 6:42 ` Andre Schild
2010-02-02 6:46 ` a.schild
2010-02-02 2:26 ` Regarding Iptables Redirect Target rule Vikram Ragukumar
2010-02-02 19:18 ` Pascal Hambourg
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=4B672B7F.4060603@plouf.fr.eu.org \
--to=pascal.mail@plouf.fr.eu.org \
--cc=a.schild@aarboard.ch \
--cc=netfilter@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.