[squid-users] Squid3(Bridge)+Tproxy+Mikrotik???

From: Michel Peterson <michelpeterson_at_linuxguardian.org>
Date: Sat, 20 Sep 2008 20:56:46 -0300 (BRT)

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
Received on Sun Sep 21 2008 - 00:05:34 MDT

This archive was generated by hypermail 2.2.0 : Sun Sep 21 2008 - 12:00:03 MDT