[squid-users] Web servers behind squid

From: Maxime Gaudreault <mgaudreault_at_reference.qc.ca>
Date: Mon, 1 Jun 2009 17:22:16 -0400

Hi

I'm running a squid cache proxy in bridge mode.

(INTERNET)-----(LINUX ROUTER/FIREWALL)-----(SQUID
BRIDGE)-----(SWITCH)-----(PCS AND SERVERS)

With this setup, websites hosted on the LAN doesn't work anymore. The
following iptables rules redirect HTTP request to squid:

ebtables -t broute -A BROUTING -p IPv4 --ip-protocol 6
--ip-destination-port 80 -j redirect --redirect-target ACCEPT
iptables -t nat -A PREROUTING -i br0 -p tcp --dport 80 -j REDIRECT
--to-port 3128

How can I continu to serve my users but to keep my websites working ?
Received on Mon Jun 01 2009 - 21:22:28 MDT

This archive was generated by hypermail 2.2.0 : Tue Jun 02 2009 - 12:00:01 MDT