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

Reply via email to