REDIRECT

r00t root at server.titansoft.ru
Mon Dec 13 14:36:31 CET 2004


Hi all,
>> How to i make by libipq  this rule:
>> -j REDIRECT --to-ports 3128 ?

>You don't.
>REDIRECT or other NAT related operations must be done in the kernel.

Ok, but if i use this:

-A PREROUTING -p tcp -j QUEUE
-A PREROUTING -i eth1 -p tcp -m tcp --dport 80 -j REDIRECT --to-ports 3128

And in the program:

ipq_set_verdict(h, m->packet_id,NF_ACCEPT, 0, NULL);

the packet not going to second rule(REDIRECT)

Sorry to my english
Best regards, Meg




More information about the netfilter-devel mailing list