[squid-users] Squid Tproxy in Bridge Mode - Static Routes

From: Ulises Nicolini <ulises_at_vianetcon.com.ar>
Date: Thu, 13 Sep 2012 12:17:31 -0300

Hello,

I have a transparent proxy squid server work in bridge mode and tproxy
with two interfaces : LAN and WAN. My clients are reachable by LAN
interface by a group of gateways (Router 1, Router 2..Router(n))

CLIENTS (Network1)<------------>ROUTER1<
                                                                        \
                                                                        
+<-------->|LAN SQUID WAN|<------------->ROUTERWAN<--------> INTERNET
                                                                        /
CLIENTS (Network2)<------------>ROUTER2<
... |
CLIENTS (Network(n)<------------>ROUTER(n)<
                                                    

Squid Server default gateway = ROUTERWAN

For make this toplogy i need create static routes in the squid server
for the return routes, otherwise the squid responses are sent to default
wateway (ROUTERWAN)

ip route add Network1 via ROUTER1
ip route add Network2 via ROUTER2
....
ip route add Network(n) via ROUTER(n)

Is possible create this routes dynamically when for example intercept
the incoming traffic with iptables to redirect this to squid? Use static
routes is very dificult to support, being necessary add or remove
networks form squid server when my distribution toplogogy is modified.

Sorry for may bad english

Ulises
Received on Thu Sep 13 2012 - 15:09:22 MDT

This archive was generated by hypermail 2.2.0 : Thu Sep 13 2012 - 12:00:03 MDT