From: Chris Brenton <cbrenton@chrisbrenton.org>
To: "Dharmendra.T" <dharmu@nsecure.net>
Cc: Ralf Spenneberg <lists@spenneberg.org>,
Atsushi Nakagawa <atnak@chejz.com>,
Netfilter <netfilter@lists.netfilter.org>
Subject: Re: Dropping RST of SYN
Date: Mon, 08 Sep 2003 06:02:06 -0400 [thread overview]
Message-ID: <3F5C539E.8030704@chrisbrenton.org> (raw)
In-Reply-To: 1063000297.827.26.camel@india.nsecure.net
Dharmendra.T responded:
>
> On Thu, 2003-09-04 at 14:43, Ralf Spenneberg wrote:
>
> /Am Don, 2003-09-04 um 10.50 schrieb Atsushi Nakagawa:///
> /> What iptables table/rule can I use to drop RST (TCP) packets that're in///
> /> reply to SYN?///
> /> This is what I want it to do:///
> /> ///
> /> -SYN-> [NEW] -SYN->///
> /> [CLOSED] <-RST-///
> /> ^///
> /> IF TCP & [NEW]: DROP '<-RST-' & SET [CLOSED]///
> Blocking the RST packets on the firewall is not recommended. If the
> attacker comes to know that the server is dropping RST packets then he
> can flood the servers by initiating lacks of connections, which inturn
> result closewait state.
Ya know, I missed this the first time through but Dharmendra is
absolutely right. This will make you far more susceptible to SYN flood
attacks.
It is extremely rare for a system to generate a RST immediately after a
SYN. The only time I've seen this in the wild are:
Load balancers
Port scanners
Response to SYN flood fallout
With a SYN flood attack, the attacker spoofs someone else's address
space when they send you the SYN. You reply with a SYN/ACK which gets
routed to the legitimate system. Since the true system did did not
originate the session, it has no idea why you are sending it a SYN/ACK
and responds with a RST. This clears your connection queue of the bogus
entry. If you where to block this RST packet, the entry would stay in
queue for a longer period of time (2 minutes or more) leaving less
memory to handle legitimate connection attempts.
So I totally agree with Dharmendra. Blocking these packets is a real bad
idea and would make it much easier for an attacker to knock your host
off-line.
HTH,
C
next prev parent reply other threads:[~2003-09-08 10:02 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-04 8:50 Dropping RST of SYN Atsushi Nakagawa
2003-09-04 9:13 ` Ralf Spenneberg
2003-09-08 5:51 ` Dharmendra.T
2003-09-08 10:02 ` Chris Brenton [this message]
2003-09-08 10:58 ` Atsushi Nakagawa
2003-09-08 11:29 ` Chris Brenton
2003-09-08 11:53 ` Stephen Satchell
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=3F5C539E.8030704@chrisbrenton.org \
--to=cbrenton@chrisbrenton.org \
--cc=atnak@chejz.com \
--cc=dharmu@nsecure.net \
--cc=lists@spenneberg.org \
--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