Hi Guys,

I am trying to configure a proxy squid with tproxy
support. My squid is in a machine in bridge. The structure of my network
is below:

Clients -> Squid Bridge (Tproxy) -> Mikrotik
Router

I've compiled my kernel (2.6.24) and iptables(1.4) with
Tproxy support. I'm using Squid Version 3.HEAD-20080917.

My
routing and iptables rules:

ip rule add fwmark 1 lookup 100
Local
ip route add 0.0.0.0 / 0 dev lo table 100
ip rule add
fwmark 1 lookup 100
ip route add local 0.0.0.0/0 dev lo table 100
iptables -t mangle -N DIVERT
iptables -t mangle -A PREROUTING -p
tcp -m socket -j DIVERT
iptables -t mangle -A DIVERT -j MARK
--set-mark 1
iptables -t mangle -A DIVERT -j ACCEPT
iptables -t
mangle -A
PREROUTING -p tcp --dport 80 -j TPROXY --tproxy-mark
0x1/0x1 --on-ip 189.89.180.253 --on-port 3128


I see
packages into the rules, but nothing is displayed in the log of squid and
no object is cached.

Someone could help me with this
problem?

Regards,

Michel Peterson




Reply via email to