From: Pascal Hambourg <pascal@plouf.fr.eu.org>
To: netfilter@vger.kernel.org
Subject: Re: packets rejected as invalid, why?
Date: Mon, 02 Dec 2013 22:29:45 +0100 [thread overview]
Message-ID: <529CFBC9.3000604@plouf.fr.eu.org> (raw)
In-Reply-To: <1c23a9c49af4cca75004123c0166f546@mail.zaplinski.de>
Hello,
Olaf Zaplinski a écrit :
>
> since Dec. 1st I see 60 rejected packets from well known and "good"
> SMTP hosts:
>
> Dec 2 12:12:02 binky kernel: [873572.327219] iptables-INVALID IN=eth0
> OUT= MAC=00:f1:70:00:58:f0:fc:fb:fb:2d:55:48:08:00 SRC=213.165.67.104
> DST=109.75.188.214 LEN=40 TOS=0x00 PREC=0x00 TTL=58 ID=0 DF PROTO=TCP
> SPT=25 DPT=37022 SEQ=3171195917 ACK=0 WINDOW=0 RES=0x00 RST URGP=0
>
> Why are these logged and rejected?
Because your rules below say so.
> The rules:
>
> $IPTABLES -A INPUT -m conntrack --ctstate INVALID -m limit \
> --limit 3/s -j LOG --log-prefix="iptables-INVALID " \
> --log-tcp-sequence --log-tcp-options
>
> $IPTABLES -A INPUT -m conntrack --ctstate INVALID -j DROP
>
> I think this packet was part of the TCP closing handshake, so it should
> have been ESTABLISHED and not INVALID. Am I wrong?
RST is not part of the normal TCP closing handshake (FIN+ACK, FIN+ACK,
ACK). My guess is that this packet is related to an old connection which
is considered already closed by conntrack.
prev parent reply other threads:[~2013-12-02 21:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-02 13:43 packets rejected as invalid, why? Olaf Zaplinski
2013-12-02 21:29 ` Pascal Hambourg [this message]
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=529CFBC9.3000604@plouf.fr.eu.org \
--to=pascal@plouf.fr.eu.org \
--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.