Linux Netfilter discussions
 help / color / mirror / Atom feed
From: Tim Burress <hokousha2001@yahoo.com>
To: netfilter@lists.netfilter.org
Subject: Conntrack Response to Port Unreachable for UDP
Date: Tue, 22 Jul 2003 19:54:55 -0700 (PDT)	[thread overview]
Message-ID: <20030723025455.36204.qmail@web21102.mail.yahoo.com> (raw)

Hello!

We kind of an interesting problem and I was wondering
if people have any suggestions. Imagine a network like
this:

    X----------F---------Z

where F is a Linux box acting as a firewall to protect
the Z network. F runs

    kernel 2.4.21-pre5 
    iptables 1.2.7a
    patch-o-matic 20030112

The problem arises like this:

X attempts to initiate a UDP exchange with Z, but Z
responds to the initial packet with an ICMP port
unreachable. That's fine, but once this happens, it
seems that Z (or some other node on Z's network) is
then able to repeatedly replay this same ICMP port
unreachable back to X.

So the question is, what's the best way to prevent
that at F?

One idea was that conntrack could destroy the
conntrack record for the UDP "connection" upon receipt
of the port unreachable. Another, much larger scope
solution would be to implement some sort of
generalized replay protection that would attempt to
identify and DROP replayed packets. The first seems
nice and simple, but we're worried about unintended
consequences. The second seems interesting, but could
get a little involved. I wondered if people had any
thoughts or suggestions for other ways to deal with
this.

Thanks!

Tim

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com


             reply	other threads:[~2003-07-23  2:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-23  2:54 Tim Burress [this message]
2003-07-23 13:53 ` Conntrack Response to Port Unreachable for UDP Ramin Dousti

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=20030723025455.36204.qmail@web21102.mail.yahoo.com \
    --to=hokousha2001@yahoo.com \
    --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