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