[tproxy] I need help with tproxy

Adrian Chadd adrian.chadd at gmail.com
Tue Jun 30 03:07:38 CEST 2009


Email the squid-users email list.

Also, read the examples at http://wiki.squid-cache.org/ConfigExamples/

2009/6/30 Welisson <welissontome at ig.com.br>:
> I would like of a help of yours, in the following situations.
>
> I need redirect all request of port 80, to my proxy server with tproxy
> active, however it will not be gateway of my network.
> I am using Debian 5 Etch, kernel 2.6.19 in the two servers and iptables
> 1.3.7.
> However i did the following, i redirected of gateway to my proxy server
> using the command below;
>
> iptables -t tproxy -A PREROUTING -s 189.111.xxx.2 -p TCP --dport 80 -j
> TPROXY --on-ip 189.4xx.xxx.10 --on-port 3129
>
> I got the error below in cache.log
>
> 2009/06/29 14:38:58| tproxy ip=189.111.xxx.2,0x2a07fbd,port=0 ERROR ASSIGN
>
> Then i did a DNAT rule, e.g below
>
> iptables -t nat -A PREROUTING -s 189.111.xxx.2 -p TCP --dport 80 -j DNAT
> --to-destination 189.4xx.xxx.10
>
> and in proxy server the following command
>
> iptables -t tproxy -A PREROUTING -s 189.111.xxx.2 -p TCP --dport 80 -j
> TPROXY  --on-port 3129
>
> The request finised giving timeout.
>
>
> I would like know, if possible used tproxy in this situation.
>
> station <---------->gateway<---------->InterNet
>                                | redirected to proxy using iptables
>                        Proxy/Tproxy
>
> Regards
>
>
>
>
>
>
> _______________________________________________
> tproxy mailing list
> tproxy at lists.balabit.hu
> https://lists.balabit.hu/mailman/listinfo/tproxy
>
>


More information about the tproxy mailing list