nf-queue编译
gcc nf-queue.c -o nf-queue -lnetfilter_queue -lmnl -I../libnetfilter_queue-1.0.2 gcc nf-queue.c -o nf-queue -lnetfilter_queue -lmnl -I../../libnetfilter_queue-1.0.2/include/ cp /home/libnetfilter_queue/libnetfilter_queue-1.0.2/src/.libs/libnetfilter_queue.so ./ gcc nfqnl_test.c -o nf-queue -lnetfilter_queue -lmnl -I../../libnetfilter_queue-1.0.2/include/ iptables -A OUTPUT -j NFQUEUE --queue-num 0 http://wiki.ubuntu.org.cn/IptablesHowTo gcc filterQueue.c -o nf-queue -lnetfilter_queue -lmnl -I../../libnetfilter_queue-1.0.2/include/ http://www.doc88.com/p-3744296686284.html iptables -A INPUT -p tcp --dport 21 -j QUEUE iptables -A INPUT -p tcp --dport 80 -j NFQUEUE --queue-num 0 http://www.roman10.net/2011/11/27/how-to-calculate-iptcpudp-checksumpart-3-usage-example-and-validation/
iptables -A FORWARD -j NFQUEUE -p tcp --dport 80 -i eth0
iptables -A INPUT -p tcp --dport 80 -m iprange --src-range 0.0.0.0-255.255.255.255 -j NFQUEUE --queue-num 0
iptables -A INPUT -p tcp --dport 80 -j NFQUEUE --queue-num 0
iptables -t mangle -A POSTROUTING -p tcp -m multiport --dport 80,8080 -j NFQUEUE --queue-num 10
联系方式:heshengjun@tinywsn.com