Linux Netfilter discussions
 help / color / mirror / Atom feed
From: joel williams <joel@emlinux.com>
To: netfilter@lists.netfilter.org
Subject: Trouble setting QUEUE in mangle table
Date: Wed, 22 Dec 2004 12:29:12 -0800	[thread overview]
Message-ID: <41C9D918.5080504@emlinux.com> (raw)

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








                 reply	other threads:[~2004-12-22 20:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=41C9D918.5080504@emlinux.com \
    --to=joel@emlinux.com \
    --cc=netfilter@lists.netfilter.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox