From mboxrd@z Thu Jan 1 00:00:00 1970 From: joel williams Subject: Trouble setting QUEUE in mangle table Date: Wed, 22 Dec 2004 12:29:12 -0800 Message-ID: <41C9D918.5080504@emlinux.com> Reply-To: joel@emlinux.com Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-bounces@lists.netfilter.org Errors-To: netfilter-bounces@lists.netfilter.org Content-Type: text/plain; charset="us-ascii"; format="flowed" To: netfilter@lists.netfilter.org Could use some advice. I have a user space program and want process all packets coming into the box (PREROUTING) and going out of the box (POSTROUTING). POSTROUTING works as advertised, but I can not get PREROUTING, INPUT or OUTPUT hooks to send the packets the user program. I am adding a QUEUE rule to the mangle table. (Seems to behave the same on filter table also.) No other rules are defined. Any ideas what might be wrong? -------------- This is an out of the box Fedora-3 dirstro uname -a Linux localhost.localdomain 2.6.9-1.667 #1 Tue Nov 2 14:41:25 EST 2004 i686 i686 i386 GNU/Linux -------------- This works, sends packets to userspace program: # Generated by iptables-save v1.2.11 on Wed Dec 22 12:12:01 2004 *mangle :PREROUTING ACCEPT [139:11833] :INPUT ACCEPT [8385:713319] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [8366:708686] :POSTROUTING ACCEPT [7643:652716] -A POSTROUTING -j QUEUE <------------------- COMMIT # Completed on Wed Dec 22 12:12:01 2004 --------------- This does no work, processes packets normally, ignores rule # Generated by iptables-save v1.2.11 on Wed Dec 22 12:09:03 2004 *mangle :PREROUTING ACCEPT [76:6541] :INPUT ACCEPT [8206:697972] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [8186:693255] :POSTROUTING ACCEPT [7476:638066] -A PREROUTING -j QUEUE <--------------- COMMIT # Completed on Wed Dec 22 12:09:03 2004