Linux Netfilter discussions
 help / color / mirror / Atom feed
* Unexpected RSTs?
@ 2002-10-11 12:34 Martijn Klingens
  2002-10-11 13:03 ` Antony Stone
  0 siblings, 1 reply; 6+ messages in thread
From: Martijn Klingens @ 2002-10-11 12:34 UTC (permalink / raw)
  To: netfilter

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



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2002-10-16 13:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-11 12:34 Unexpected RSTs? Martijn Klingens
2002-10-11 13:03 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox