libnetfilter_queue not picking up any packets during recv step.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks in advance for your help,

I am running the demo test code (with queue num 100) nfqnl_test.c
which is found in the documentation.
http://www.netfilter.org/projects/libnetfilter_queue/doxygen/nfqnl__test_8c_source.html

I have added the following rules to my iptables:
sudo iptables -A OUTPUT ! --out-interface lo -p tcp --syn -j NFQUEUE
--queue-bypass --queue-num 100
sudo iptables -A OUTPUT ! --out-interface lo -p tcp --syn -j LOG --log-level 7

There are many packets arriving at the LOG. But none ever arrive to
NFQUEUE on the userspace side. recv(fd, buf, sizeof(buf), 0) just
hangs waiting for the message from the kernel.
The binding and creation of the queue seems to have gone fine, no
errors were thrown before reaching this call. I am also running my
program as root. My output of `lsmod`: http://pastebin.com/m3gBKVst

Any tips to debug this are appreciated!

Thanks,
-- Rod Salazar
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux