Packet marking in user queue with VWMARK
Hi,
Can somebody please give me an example how to mark & match packets with vwmark and iptables in user queue.
I have patched the kernel (2.6.18) and iptables (1.3.8) to support vwmark. Both progs compiles and installs ok and queue works normaly with ipq_set_verdict but not with ipq_set_vwmark.
If vwmark is not recommended style to mark packets in user space, what is???
Regs.
-jori
Hi,
Quoted 8 lines · Jorch
Hi,
Can somebody please give me an example how to mark & match packets with vwmark and iptables in user queue.
I have patched the kernel (2.6.18) and iptables (1.3.8) to support vwmark. Both progs compiles and installs ok and queue works normaly with
ipq_set_verdictbut not withipq_set_vwmark.
Please switch your program to work with libnetfilter_queue. It has default support for packet marking.
A code example can be found at :
http://software.inl.fr/trac/trac.cgi/browser/mirror/edenwall/nufw/trunk/nufw/src/nufw/authsrv.c
BR,
Signature · 2 lines
Eric Leblond <[email protected]> INL
Quoted 11 lines · Eric Leblond
Hi,
Quoted 8 lines · Jorch
Hi,
Can somebody please give me an example how to mark & match packets with vwmark and iptables in user queue.
I have patched the kernel (2.6.18) and iptables (1.3.8) to support vwmark. Both progs compiles and installs ok and queue works normaly with
ipq_set_verdictbut not withipq_set_vwmark.
Got vwmark workin after i noticed i had bad test scenario to test the prog. System works with marking and verdicts but when i try to inject modified packet back to queue, queue seems to drop packet every time(any ideas??)
Quoted 2 lines
Please switch your program to work with
libnetfilter_queue. It has default support for packet marking.
If i would find some kind of installation/usage manual from somewhere it would be great!! I have tried to get libnetfilter_queue work for several hours now and no success. libnfnetlink 0.0.16 and libnetfilter_queue 0.0.13 compiles ok against kernel and installs ok.
The test program (nfqnl_test) wich comes in libnetfilter_queue packet, can open library handle but unbinding or binding causes
"NFNETLINK answers: Invalid argument" message.
BTW: I got many hits to netfilter.org/pipermail/... When i was trying to get more information of the libnetfilter_queue, i noticed that there are man page for libnetfilter_queue in address
http://lists.netfilter.org/pipermail/netfilter-devel/2006-February/023488.html
but for me: Forbidden, You don't have permission...
Quoted 4 lines
A code example can be found at :
http://software.inl.fr/trac/trac.cgi/browser/mirror/edenwall/nufw/trunk/nufw/src/nufw/authsrv.cBR,
Regs.
-jori