From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick McHardy Date: Tue, 01 Apr 2003 19:18:59 +0000 Subject: Re: [LARTC] IMQ modification Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org mikee wrote: >Hi, >I wonder if i change imq-patch >+static struct nf_hook_ops imq_egress_ipv4 = { >+ { NULL, NULL}, >+ imq_nf_hook, >+ PF_INET, >+ NF_IP_POST_ROUTING, >+ NF_IP_PRI_LAST >+}; > >to >+ NF_IP_POST_ROUTING, >+ NF_IP_PRI_MANGLE+1 > >will this be working correctly? >(I'd like to use imq to shape traffic before SNAT changes source, and after filter rules applies) > then you need to use NF_IP_PRI_FILTER < x < NF_IP_PRI_NAT_SRC, for example NF_IP_PRI_FILTER + 1 or NF_IP_PRI_NAT_SRC - 1. look into include/linux/netfilter_ipv4.h for a list of pre-defined values. Patrick _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/