From: Eric Leblond <eleblond@inl.fr>
To: Tim Ritberg <tim_rit@gmx.de>
Cc: netfilter@vger.kernel.org
Subject: Re: Incoming packet in wrong chain
Date: Sun, 08 Feb 2009 22:28:03 +0100 [thread overview]
Message-ID: <498F4E63.8050603@inl.fr> (raw)
In-Reply-To: <20090208171752.32010@gmx.net>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
Tim Ritberg a écrit :
> Hi!
>
> I got Kernel 2.6.22 und do some Masquerade for my Windows boxes.
>
> My problem get visible in this rule:
> Chain INPUT (policy DROP 0 packets, 0 bytes)
> 113 87963 DROP_LOG 0 -- ppp0 * 0.0.0.0/0 0.0.0.0/0 state NEW
>
> This rule is at bottom of my INPUT-Chain.
>
> Kernel says:
> DROP: IN=ppp0 OUT= MAC= SRC=217.13.68.183 DST=91.xx.xx.xx LEN=58 TOS=0x00 PREC=0x00 TTL=59 ID=55058 DF PROTO=TCP SPT=80 DPT=2409 WINDOW=14520 RES=0x00 ACK URGP=0
>
> This ACK packet belongs to surfing WWW and should never get into INPUT-Chain. The problem occurs randomly.
> Is this a bug? A why hit a rule for SYN packets at ACK packets?
For Netfilter connection tracking, a NEW TCP connection does not have to
start with a SYN packet. If
/proc/sys/net/netfilter/nf_conntrack_tcp_loose is set to 1 (default),
Netfilter will try to pick up connection. By this mean, it is possible
to recover a connection (in some fail-over case for example), but it
introduces this looking-weird-at-first behaviour.
BR,
- --
Eric Leblond <eleblond@inl.fr>
INL: http://www.inl.fr/
NuFW: http://www.nufw.org/
EdenWall: http://www.edenwall.com/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFJj05dnxA7CdMWjzIRAk2BAJ4p7uOUzgNsTrOrGbg2sVTYEa8bjwCeLowc
tJssXCPP3rJk/isR9cnynvg=
=hb1D
-----END PGP SIGNATURE-----
next prev parent reply other threads:[~2009-02-08 21:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-08 17:17 Incoming packet in wrong chain Tim Ritberg
2009-02-08 21:28 ` Eric Leblond [this message]
2009-02-08 22:44 ` Tim Ritberg
2009-02-09 7:19 ` Eric Leblond
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=498F4E63.8050603@inl.fr \
--to=eleblond@inl.fr \
--cc=netfilter@vger.kernel.org \
--cc=tim_rit@gmx.de \
/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.