From: Martijn Lievaart <m@rtij.nl>
To: Harald Welte <laforge@netfilter.org>
Cc: Patrick Schaaf <bof@bof.de>,
Netfilter Development Mailinglist
<netfilter-devel@lists.netfilter.org>
Subject: Re: writing a fragmentation-needed patch
Date: Mon, 31 Mar 2003 17:10:31 +0200 [thread overview]
Message-ID: <3E885A67.3010100@rtij.nl> (raw)
In-Reply-To: <20030331122654.GM7718@sunbeam.de.gnumonks.org>
Harald Welte wrote:
>On Sun, Mar 30, 2003 at 12:14:49PM +0200, Martijn Lievaart wrote:
>
>
>
>>>- why is it a patch against REJECT, instead of a standalone target?
>>>
>>>
>>Because it feels (felt) right. It's the only subtype of
>>icmp-dest-unreach that is not handled in REJECT.
>>
>>
>
>Please re-read the whole discussion about reject-with-type-13.
>
>
/me searches archives.
Ahhh, yes I read that, but it didn't register at the time. (And I was
wrong, it also doesn't handle that subtype, maybe more).
>We _cannot_ change the structure layout/valid value ranges/etc of any
>target in the stable kernel series. We always need to make sure
>backwards- and forwards-compatibility between old/new kernel and old/new
>iptables userspace.
>
>
I see the point and had I remembered this beforehand I would have
created a seperate target. I still may, but the solution I have now
works for me. Effectively you are saying that the fake-source patch
should also not have been in pom as it changes the userspace<->kernel
interface?
OTOH, there could be an "incompatible" part of pom, for useful, but
backwards incompatible changes. Just make clear that these are optional
patches that will not make it into the kernel and need both a patched
kernel and userspace. This is probably not the major goal of pom, but it
could be a convenient repository for such patches.
>>What do you think?
>>
>>
>
>I think the solution is to create an ICMP target, which has the
>parameters 'icmp type' and 'icmp code', where the kernel would accept
>any values. detecting invalid icmp code/types should be done in the
>libipt_ICMP.c userspace plugin.
>
>
I'll have a look at the this aproach, but effectively this would just be
a clone of libipt_REJECT with minor changes. Also it probably should not
do the tcp-reset thingy as that is not ICMP (or think of a better
name.... hmmmm, REJECT, no that is taken ;^>). It would give a chance to
encode all the icmp error messages. Maybe DENY would be a better name
although this would create major confusion for newbies.
But for me it is not all that important in the end. I have a patched
kernel that does what I want, patch will not make pom, ok, I publish it
somewhere else for those that want it. If I feel like it, I will have a
look at a FRAGNEEDED and/or DENY/ICMP/Whatever target.
BTW, there does not seem to be an existing match for the DF-bit? Hmmm
more work to do. :-)
Martijn Lievaart
next prev parent reply other threads:[~2003-03-31 15:10 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-29 17:21 writing a fragmentation-needed patch Martijn Lievaart
2003-03-30 9:35 ` Patrick Schaaf
2003-03-30 10:14 ` Martijn Lievaart
2003-03-31 12:26 ` Harald Welte
2003-03-31 15:10 ` Martijn Lievaart [this message]
2003-03-31 15:31 ` Harald Welte
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=3E885A67.3010100@rtij.nl \
--to=m@rtij.nl \
--cc=bof@bof.de \
--cc=laforge@netfilter.org \
--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.