From: Patrick McHardy <kaber@trash.net>
To: Pablo Neira <pablo@eurodev.net>
Cc: Gervasio Bernal <gervasiobernal@speedy.com.ar>,
netfilter-devel@lists.netfilter.org
Subject: Re: New target: can't delete rule
Date: Thu, 08 Sep 2005 00:34:52 +0200 [thread overview]
Message-ID: <431F6B0C.7070303@trash.net> (raw)
In-Reply-To: <431F6A0E.1090707@eurodev.net>
Pablo Neira wrote:
> I bet that you have a pointer in the private info section of the target.
> See that iptables sets that pointer to NULL at rule creation.
> Afterwards, once checkentry() is called, such pointer won't be NULL
> anymore.
>
> At removal, the rule built by iptables sets that pointer to NULL. Such
> rule will be compared with the ruleset hold in kernel space but no
> matches will be found since the pointers mismatch.
>
> This problem is well known and it's very easy to fix up (look for
> userspacesize and offsetof in iptables/extensions). See ipt_limit,
> ipt_CLUSTERIP...
Thanks, I didn't know about this problem. We should really focus on
a netlink interface to iptables once nf_conntrack is in, even without
pkttables.
next prev parent reply other threads:[~2005-09-07 22:34 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-07 18:09 New target: can't delete rule Gervasio Bernal
2005-09-07 22:30 ` Pablo Neira
2005-09-07 22:34 ` Patrick McHardy [this message]
2005-09-07 23:58 ` Pablo Neira
2005-09-12 19:23 ` Gervasio Bernal
2005-09-12 23:24 ` Pablo Neira
2005-09-12 20:45 ` Gervasio Bernal
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=431F6B0C.7070303@trash.net \
--to=kaber@trash.net \
--cc=gervasiobernal@speedy.com.ar \
--cc=netfilter-devel@lists.netfilter.org \
--cc=pablo@eurodev.net \
/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.