hi<br />
I have a problem, but first I describe the scenario<br />
I have clients with public IP<br />
Mikrotik router redirecting traffic to SQUID<br />
Squid 3.1 with support for TPROXY<br />
Iptables 1.4.4 with support for TPROXY<br />
Debian Lenny / Kernel 2.6.28 with support for TPROXY<br />
<br />
well.<br />
The proxy works as well, and when I made some test pages whatismyip, shows that the ip is the CLIENT.<br />
However. I can not get my clients with public IP address simultaneously downloading from RapidShare / Megaupload ETC. The error shown within these pages is the typical already are downloading from that ip, so if viewing RapidShare IP SQUID in reality and not the client. How fix this?<br />
<br />
the configuration file of squid in the harbor is well<br />
<br />
http_port 81 tproxy<br />
<br />
Iptables:<br />
<br />
iptables -t mangle -N DIVERT<br />
iptables -t mangle -A PREROUTING -p tcp -m socket -j DIVERT<br />
iptables -t mangle -A DIVERT -j MARK --set-mark 1<br />
iptables -t mangle -A DIVERT -j ACCEPT<br />
iptables -t mangle -A PREROUTING -p tcp --dport 3128 -j TPROXY --tproxy-mark 0x1/0x1 --on-port 81<br />
<br />
ip rule add fwmark 1 lookup 100<br />
ip route add local 0.0.0.0/0 dev lo table 100<br />
<br />
echo 1 > /proc/sys/net/ipv4/ip_forward<br />
<br />
<br />
Mikrotik:<br />
Have a rule in the firewall to redirect all traffic to port 80 of the SQUID to the IP, port 3128<br />
<br />
All clients create sessions PPPOE in Router Mikrotik<br />
<br />
May help?