Message-ID: <20041112195709.90434.qmail@web54502.mail.yahoo.com> From: juan morales MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-93365580-1100289429=:89854" Subject: [Bridge] bridge + squid List-Id: Linux Ethernet Bridging List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Fri, 12 Nov 2004 19:57:21 -0000 To: bridge@lists.osdl.org This is a multi-part message in MIME format... --0-93365580-1100289429=:89854 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi Srs I have a linux like a bridge LAN - BRIGE -ROUTER The bridge has a ip ( non public IP) The bridge is working fine but y need to set up the Squid on the same machine where is installed the BRIDGE. I was looking for the answers and say: httpd_accel_host virtual httpd_accel_port 80 httpd_accel_with_proxy on httpd_accel_uses_host_header on and put this rules with iptables iptables #8722;t nat #8722;A PREROUTING #8722;i eth0 #8722;p tcp #8722;#8722;dport 80 #8722;j REDIRECT #8722;#8722;to#8722;port 3128 eth0 go to Router eth1 go to LAN iptables #8722;A INPUT #8722;i interface #8722;p tcp #8722;d your_bridge_ip #8722;s local#8722;network #8722;#8722;dport 3128 #8722;m state #8722;#8722;state NEW,ESTABLISHED #8722;j ACCEPT (replace interface by eth1 LAN) But it don't work because i see the /var/log/squid/access.log and not see anything Thank in advance for your help juan --------------------------------- Do you Yahoo!? Check out the new Yahoo! Front Page. www.yahoo.com --0-93365580-1100289429=:89854 Content-Type: text/html; charset=us-ascii Content-Disposition: inline
Hi Srs
I have a linux like a bridge
 
LAN  - BRIGE -ROUTER
The bridge has a ip ( non public IP)
The bridge is working fine but y need to set up the Squid on the same machine where is installed the BRIDGE.
 
I was looking for the answers and say:
 

httpd_accel_host virtual

httpd_accel_port 80

httpd_accel_with_proxy on

httpd_accel_uses_host_header on

 

and put this rules with iptables

iptables −t nat −A PREROUTING −i eth0 −p tcp −−dport 80 −j REDIRECT  −−to−port 3128

eth0 go to Router

eth1 go to LAN

iptables −A INPUT −i interface −p tcp −d your_bridge_ip −s local−network −−dport 3128 −m state

−−state NEW,ESTABLISHED −j ACCEPT

(replace interface by eth1 LAN)

But it don't work because i see the /var/log/squid/access.log and not see anything

Thank in advance for your help

juan

 

 

 

 


Do you Yahoo!?
Check out the new Yahoo! Front Page. www.yahoo.com --0-93365580-1100289429=:89854--