Re: [squid-users] Tproxy + Centos + Bridge

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Sun, 19 Jul 2009 02:18:30 +1200

Alejandro Martinez wrote:
> Hi,
>
> I've seen some messages in the forum talking about tproxy funcionality.
>
> Has anybody success configuring this scenario in bridge mode ?
> I have a box with Centos 5.3 + Kernel 2.6.30 + iptables 1.4.3 + squid 3.1
>
> I've read and applied this howto
> (http://wiki.squid-cache.org/Features/Tproxy4) but in bridge mode with
> no success.
> I've applied this rules too (ebtables)
>
> -p IPv4 -i eth1 --ip-proto tcp --ip-dport 80 -j redirect --redirect-target
>
> DROP
> -p IPv4 -i eth0 --ip-proto tcp --ip-sport 80 -j redirect --redirect-target
> DROP
>
>
>
> I can see the matchs in the mangle table but the access.log does not
> report any traffic.
>
> Thanks four your comments.
>
> Alejandro

ebtables -t broute -A BROUTING -i eth1 -p ipv4 --ip-proto tcp --ip-dport
80 -j redirect --redirect-target DROP

ebtables -t broute -A BROUTING -i eth0 -p ipv4 --ip-proto tcp --ip-sport
80 -j redirect --redirect-target DROP

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE6 or 3.0.STABLE16
   Current Beta Squid 3.1.0.10
Received on Sat Jul 18 2009 - 14:18:36 MDT

This archive was generated by hypermail 2.2.0 : Sun Jul 19 2009 - 12:00:03 MDT