--- On Thu, 5/6/10, Pierre Chifflier <chiffl...@edenwall.com> wrote: > From: Pierre Chifflier <chiffl...@edenwall.com> > Subject: Re: Bug#580555: nfqueue-bindings-perl: Examples don't work > To: "mpapet" <mpa...@yahoo.com>, 580...@bugs.debian.org > Date: Thursday, May 6, 2010, 2:20 PM > On Thu, May 06, 2010 at 12:48:57PM > -0700, mpapet wrote: > > Package: nfqueue-bindings-perl > > Version: 0.3-1 > > Severity: important > > > > perl examples/example.pl > > open > > bind > > RuntimeError error during nfq_bind_pf() > > Hi, > > I'd say the same as in #580554 : > > The same example works here: > # perl examples/example.pl > open > bind > setting callback > creating queue > trying to run > > So here are a few things to check: > - are you running the example as root ? It is required to > be able to > bind to the nfnetlink socket > - is the nfnetlink_queue module loaded ? > - have you started another program on the same queue ID ? > You can check > this using cat /proc/net/netfilter/nf_queue > > Regards, > Pierre > > I stand by the bug report because it doesn't work as provided. The information required to make these scripts work is not complete.
Step 1: modprobe nfnetlink_queue **missing entirely and doesn't work without it** Step 2: listed as, iptables -A OUTPUT --destination 1.2.3.4 -j NFQUEUE **queue number option is not mentioned but required.**** Revised step 2: iptables -I OUTPUT -p tcp -o eth0 --dport 80 -j NFQUEUE --queue-num 1 <<< you need to use the number in example.pl Step 3: perl example.pl (line 70 has to have a 1 as the queue) Step 4: telnet debian.org 80 Results of test: Perl callback called! dummy is 42 len: 60 NetPacket::IP=HASH(0x9ebfad0) 192.168.1.29 => 194.109.137.218 6 Id: 1 TCP src_port: 56871 TCP dst_port: 80 It's awesome work. Thank you. But, the missing information makes the package unworkable. Let me know how else I can help flesh out the documentation. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org