Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Atsushi Nakagawa <atnak@chejz.com>
To: Chris Brenton <cbrenton@chrisbrenton.org>
Cc: "Dharmendra.T" <dharmu@nsecure.net>,
	Ralf Spenneberg <lists@spenneberg.org>,
	Netfilter <netfilter@lists.netfilter.org>
Subject: Re: Dropping RST of SYN
Date: Mon, 08 Sep 2003 20:58:50 +1000	[thread overview]
Message-ID: <20030908204206.C148.ATNAK@chejz.com> (raw)
In-Reply-To: <3F5C539E.8030704@chrisbrenton.org>

Chris Brenton <cbrenton@chrisbrenton.org> wrote:
> 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?
> > >
> > > There is no way to differentiate between this RST and a later valid
> > > and needed RST packet.  You can only drop all RST packets
> > > -m state --state ESTABLISHED -p tcp --tcp-flags RST,ACK RST,ACK -j DROP
> >
> > 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.
>
> ...

Both Dharmendra and Chris have pointed out perfectly legitimate reasons
why it is a bad idea to drop RSTs in general.  However, these warnings
have taken the original proposition slightly out of context. --AFAIS

Ralf's response was to a question regarding the removal of outgoing RST
packets that are generated in reply to incoming SYN packets.  (These
RSTs being the kind that causes the "Connection Refused" TCP message)

Hence, "dropping all RST packets", should implicitly have meant, "all
outgoing RST packets".  (The -m state ... -j DROP line is ambiguous.)

In this case, there should be no consequences with SYN flood-type
attacks.  The only ill-effect, AFAIK, is with abortive disconnects not
reaching remote host (and remote host will resend obselete packets
little more times).  --A problem enough to deter me from implmementing
this.

Regards,


-- 
Atsushi Nakagawa
<atnak@chejz.com>
Changes are made when there is inconvenience.



  reply	other threads:[~2003-09-08 10:58 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
2003-09-08 10:58       ` Atsushi Nakagawa [this message]
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=20030908204206.C148.ATNAK@chejz.com \
    --to=atnak@chejz.com \
    --cc=cbrenton@chrisbrenton.org \
    --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