From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick McHardy Subject: Re: Netfilter socket hooks Date: Thu, 12 May 2005 02:12:43 +0200 Message-ID: <42829F7B.40602@trash.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: juha.heljoranta@evtek.fi, Rusty Russell , netfilter-devel@lists.netfilter.org Return-path: To: James Morris In-Reply-To: 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 James Morris wrote: > What about adding an output hook to the table? This would make it much > easier to manage rules. Sure. For symetry, I would prefer only to pass packets with skb->sk != NULL through OUTPUT and use skb->sk as socket argument to ipt_do_table(). But rule mangement is still tricky since only protocols which use sockets can be handled in the skfilter table. A more radical approach would be to use the socket hooks for filter/INPUT for all protocols with hooks - but I haven't thought much about this yet. Regards Patrick