All of lore.kernel.org
 help / color / mirror / Atom feed
From: Patrick McHardy <kaber@trash.net>
To: John Heffner <jheffner@psc.edu>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: What to do with malformed l4proto packets? (resend)
Date: Fri, 06 Apr 2007 20:29:10 +0200	[thread overview]
Message-ID: <46169176.2000507@trash.net> (raw)
In-Reply-To: <46168530.9070604@psc.edu>

John Heffner wrote:
> We have someone on the end of a DSL line that seems to be
> non-deterministically corrupting some of his packets (a rate of ~1e-5)
> in a way that causes the TCP checksum to fail.  While he hopes to get
> this situation remedied, the immediate problem is that his connections
> that go through our firewall are getting reset every time a corrupted
> segment is received.
> 
> AFAICT, what's happening is that tcp_error() finds the TCP checksum
> wrong, returning -NF_ACCEPT back up to nf_conntrack_in(), which quits
> and sends NF_ACCEPT back up.  So we have a TCP packet not associated
> with a connection, so our firewall rules send back a RST.
> 
> So, the question is: is there any reason to ACCEPT TCP segments with
> known bad checksums?


The REJECT target verifies the checksum, so this shouldn't happen.
Are you sure its the REJECT target thats sending the RST?

In either case you should probably just drop state INVALID packets
since this can also happen for retransmits etc. when TCP window
tracking doesn't like the packet.

  reply	other threads:[~2007-04-06 18:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-06 17:36 What to do with malformed l4proto packets? (resend) John Heffner
2007-04-06 18:29 ` Patrick McHardy [this message]
2007-04-06 19:32   ` John Heffner

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=46169176.2000507@trash.net \
    --to=kaber@trash.net \
    --cc=jheffner@psc.edu \
    --cc=netfilter-devel@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.