All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philip Craig <philipc@snapgear.com>
To: Patrick McHardy <kaber@trash.net>
Cc: netfilter-devel@lists.netfilter.org
Subject: Re: [PATCH 3/4] log dropped ICMP redirects
Date: Thu, 25 May 2006 12:34:53 +1000	[thread overview]
Message-ID: <447517CD.6040705@snapgear.com> (raw)
In-Reply-To: <44748922.4060207@trash.net>

On 05/25/2006 02:26 AM, Patrick McHardy wrote:
> There was a patch called "dropped table" once that hooked in kfree_skb.
> I'm also not completely satisfied with the current situation .. but
> I don't think adding excessive packet logging is the best solution,
> often drops just occur because of failed validity checks which can
> just as well happen outside of the netfilter code.

I'm not sure what checks occur outside of netfilter code, but I assume
they are mostly things that would be dropped by any router, not just
a firewall?

For connection tracking, the goal should be to never drop anything,
and instead mark it as invalid.  My first version of this patch
just removed this test completely, so then I could log it with an
iptables rule before dropping it.  But I didn't think that was suitable
for general use.

For other validity checks within netfilter, this is a possible use for
the unclean match.   This would allow you to use rules to do the
checks, log the packet, and drop it.  And if this was done in the raw
table, then it could cover some of the connection tracking checks too.
What was the problem with the unclean match, did it simply check too much?

> In this case I'm actually having trouble understanding what the code
> is supposed to do, why would we receive an ICMP redirect for a
> unhashed connection (unhashed == first packet hasn't even left the
> box yet)?

I don't understand the reason for the code either.

  reply	other threads:[~2006-05-25  2:34 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-24  4:04 [PATCH 0/4] netfilter patches for consideration philipc
2006-05-24  4:04 ` [PATCH 1/4] TCPMSS: dont drop packets philipc
2006-05-24 16:16   ` Patrick McHardy
2006-05-24 23:42     ` Philip Craig
2006-05-26 14:40       ` Patrick McHardy
2006-05-24  4:04 ` [PATCH 2/4] TCPMSS: clamp to input interface MTU too philipc
2006-05-24 16:18   ` Patrick McHardy
2006-05-24  4:04 ` [PATCH 3/4] log dropped ICMP redirects philipc
2006-05-24 16:26   ` Patrick McHardy
2006-05-25  2:34     ` Philip Craig [this message]
2006-05-26 14:49       ` Patrick McHardy
2006-05-24  4:04 ` [PATCH 4/4] drop ftp bounce attacks philipc
2006-05-24 16:31   ` Patrick McHardy
2006-05-25  2:55     ` Philip Craig
2006-05-26 14:51       ` Patrick McHardy

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=447517CD.6040705@snapgear.com \
    --to=philipc@snapgear.com \
    --cc=kaber@trash.net \
    --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.