From: Joakim Axelsson Subject: Re: priv_data patch Date: Mon, 14 Aug 2006 16:58:01 +0200 Message-ID: <20060814145801.GT7194@kriss.csbnet.se> References: <44E07BCD.8030206@trash.net> <200608141640.41759.max@nucleus.it> <44E08D3B.7040505@trash.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Massimiliano Hofer , Netfilter Development Mailinglist Return-path: To: Patrick McHardy Content-Disposition: inline In-Reply-To: <44E08D3B.7040505@trash.net> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-devel-bounces@lists.netfilter.org Errors-To: netfilter-devel-bounces@lists.netfilter.org List-Id: netfilter-devel.vger.kernel.org 2006-08-14 16:48:27+0200, Patrick McHardy -> > > Any idea for a better userspace interface? > > It's not the first time you tell me that we could have a better "next > > generation" userspace interface. Maybe it's time to start planning. > > Does anyone have wishes for new or different ways to do things? > > > Its actually quite clear what is needed. We want a userspace interface > built on netlink, that acts on individual rules, not entire rulesets. > There are a few more ideas, like handling negation centrally, allowing > userspace to specify whether a target is terminal or not, allow multiple > non-terminal targets in a row, etc, but nothing really fundamental. > I have suggested this some years ago. But a new module type "action" could be used, along with "match" and "target". Meaning: 1. After zero, one or more matches 2. You run a zero, one or more actions 3. And finally end up in zero or one target. Example: iptables -m condition -m limit -a LOG -j DROP This means that the only targets we have today (as i can remember now) are: -j ACCEPT -j DROP -j REJECT -j other_chain As of now i have a few modules cheating this, being a match when they should be a target. A match always matching. This to lower the number of rules needed to perform some things. -- Joakim Axelsson