🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #72056

Re: TCP RST security vs. consumer-grade firewalls / NATs

#72056
From: Bill Davidsen
Date: Mon, 18 Jul 2005 15:03
48 lines
3833 bytes
Andrew - Supernews wrote:
> We've run into the following case, which I've not managed to find any
> reference to in the usual places:
> 
> 1) TCP connection is in ESTABLISHED state, with the server sending data
> in response to a client request (in our case it's NNTP, but that doesn't
> in itself matter)
> 
> 2) User decides to abort the transfer, and hits "cancel" in his client
> program, which closes the socket
> 
> 3) Client host sends FIN from the closed socket as normal. Since data is
> in-flight from the server, the next segment to arrive then provokes an
> RST, as normal.
> 
> 4) Server is running a recent TCP stack, which (thanks to last year's
> hype) is doing strict checking of RST sequence numbers (checking for
> specific values and not just "in the window"). Accordingly the RST is
> ignored, the server's assumption being that further RSTs will be sent
> as the pipe empties, with the last one having the correct sequence
> number to kill the connection.
> 
> 5) Client host is behind a firewall or NAT that naively assumes that one
> RST segment is enough, and which killed its state table entry on seeing
> the initial RST, and which drops unexpected incoming packets rather than
> answering with RST. Accordingly, there is no response to the further
> segments arriving from the server.
> 
> 6) The connection is now hung until the server hits retransmit timeout.
> This presents a problem if the number of connections to a given client is
> being limited, as the server will not count the connection as being closed
> until several minutes have passed.
> 
> Obviously the firewall is broken, and equally obviously this can be
> worked around by disabling strict checks on RST sequence number, but is
> this a known problem? And if so, does anyone have a guess at what
> proportion of firewalls are broken in this way?
> 
We have seen a similar thing, but the cause seems to be different. What 
we see is that a socket is opened, and then closed *by the client* with 
a RST. This doesn't seem to be the same thing you describe, there is no 
valid data sent before the socket is closed.

-- 
bill davidsen
   SBC/Prodigy Yorktown Heights NY data center
   http://newsgroups.news.prodigy.com
Technical Details
Message-ID: <HwPCe.942$fx4.651@newssvr17.news.prodigy.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.protocols.tcp-ip.mbox.zip!g2news1.google.com!news4.google.com!news.glorb.com!newscon02.news.prodigy.com!prodigy.net!newsmst01b.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr17.news.prodigy.com.POSTED!dd8c8703!not-for-mail
References: <slrnddapnp.13l5.andrew+nonews@trinity.supernews.net>

Show Full Headers
Complete Article Headers
Message-ID: <HwPCe.942$fx4.651@newssvr17.news.prodigy.com>
Subject: Re: TCP RST security vs. consumer-grade firewalls / NATs
Date: Mon, 18 Jul 2005 15:03:03 GMT
From: Bill Davidsen <davidsen@deathstar.prodigy.com>
References: <slrnddapnp.13l5.andrew+nonews@trinity.supernews.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.protocols.tcp-ip.mbox.zip!g2news1.google.com!news4.google.com!news.glorb.com!newscon02.news.prodigy.com!prodigy.net!newsmst01b.news.prodigy.com!prodigy.com!postmaster.news.prodigy.com!newssvr17.news.prodigy.com.POSTED!dd8c8703!not-for-mail
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.6) Gecko/20050319
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: comp.protocols.tcp-ip,news.software.nntp
In-Reply-To: <slrnddapnp.13l5.andrew+nonews@trinity.supernews.net>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 47
NNTP-Posting-Host: 207.115.54.37
X-Complaints-To: abuse@prodigy.net
X-Trace: newssvr17.news.prodigy.com 1121698983 ST000 207.115.54.37 (Mon, 18 Jul 2005 11:03:03 EDT)
NNTP-Posting-Date: Mon, 18 Jul 2005 11:03:03 EDT
Organization: SBC http://yahoo.sbc.com
X-UserInfo1: TSU[@I_A\S@US\TYARKXK_@@FBYFRM@OMPUT_FMNJZ]BGIELCNSKQFCY@TXDX_WHSVB]ZEJLSNY\^J[CUVSA_QLFC^RQHUPH[P[NRWCCMLSNPOD_ESALHUK@TDFUZHBLJ\XGKL^NXA\EVHSP[D_C^B_^JCX^W]CHBAX]POG@SSAZQ\LE[DCNMUPG_VSC@VJM