From: Martijn Klingens <mklingens@ism.nl>
To: netfilter@lists.netfilter.org
Subject: Unexpected RSTs?
Date: Fri, 11 Oct 2002 14:34:52 +0200 [thread overview]
Message-ID: <200210111434.52124.mklingens@ism.nl> (raw)
Please consider the following piece of our firewall script's output:
----
* Setting up connection tracking for already-active traffic
iptables -A INPUT -m state --state ESTABLISHED -j ACCEPT
iptables -A FORWARD -m state --state ESTABLISHED -j ACCEPT
iptables -A INPUT -m state --state RELATED -j ACCEPT
iptables -A FORWARD -m state --state RELATED -j ACCEPT
modprobe ip_conntrack_ftp
[ .. snip creation and activation of custom chains .. ]
* Setting up connection tracking for ACL lan
iptables -A acl_lan -p tcp --tcp-flags RST RST -j log_lan
iptables -A log_lan -p tcp --tcp-flags RST RST -j LOG \
--log-level debug --log-prefix '* DROP: Unexpected RST * '
----
The last line intrigues me. We drop these packets since quite a while, but
didn't log them until yesterday. It turns out that almost 15% of my firewall
log now consists of packets qualifying as 'Unexpected RST' though.
But... isn't the conntrack code at the beginning supposed to take care of
accepting RSTs if they are associated with an active connection? Isn't a
packet with RST that passes through the RELATED/ESTABLISHED match a packet
that is not associated with an active connection and should thus be dropped?
I'm a bit surprised to see this to say the least. It's not a subnet-wide
portscan at least, the dropped packets definitely seem to indicate legitimate
traffic.
Thanks in advance for any hints,
--
Martijn
next reply other threads:[~2002-10-11 12:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-11 12:34 Martijn Klingens [this message]
2002-10-11 13:03 ` Unexpected RSTs? Antony Stone
2002-10-11 14:29 ` Martijn Klingens
2002-10-11 16:07 ` Send mail Secure(SSL): No, Socket Error Sundaram Ramasamy
2002-10-11 17:20 ` Antony Stone
2002-10-16 13:36 ` Unexpected RSTs? Martijn Klingens
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=200210111434.52124.mklingens@ism.nl \
--to=mklingens@ism.nl \
--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