REDIRECT

Meg root at server.titansoft.ru
Mon Dec 13 15:11:53 CET 2004


Hi, r00t.



>>> 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)

-A FORWARD -p tcp -j QUEUE
or
-t nat -p tcp -j QUEUE

this right by iptables, but not work



-- 
Best regards,
 Meg                          mailto:root at server.titansoft.ru




More information about the netfilter-devel mailing list