Re: [squid-users] Transparent proxy and several ports to redirect

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Mon, 02 Jul 2001 16:33:22 +0200

It is supposed to work with

httpd_accel_port virtual

but it has been reported that ipchains does not preserve the destination
port in a REDIRECT. If so, then set up one http_port for each port you
want to redirect, and redirect to this same portnumber..

I.e.

http_port 80
http_port 8100

ipchains -A input -i eth0 -p tcp -s $LANADDRESS/32 -d ANYWHERE 80 -j
REDIRECT 80
ipchains -A input -i eth0 -p tcp -s $LANADDRESS/32 -d ANYWHERE 8100 -j
REDIRECT 8100

--
Henrik Nordstrom
Squid Hacker
Ilya Palagin wrote:
> 
> Hi all,
> 
> How can I set squid to cache several ports? For example, I want request
> to 80 and 8100 to be cached, so I put:
> 
> --- squid.conf ---
> http_port 3128
> httpd_accel_host virtual
> httpd_accel_port 8100
> httpd_accel_port 80
> httpd_accel_with_proxy on
> httpd_accel_uses_host_header on
> 
> --- rc.firewall ---
> ipchains -A input -i eth0 -p tcp -s $LANADDRESS/32 -d ANYWHERE 80 -j
> REDIRECT 3128
> ipchains -A input -i eth0 -p tcp -s $LANADDRESS/32 -d ANYWHERE 8100 -j
> REDIRECT 3128
> 
> And it doesn't work. Sending a request to, for instance,
> www.linux.org.ru:8100, squid says:
> 
> TCP_MISS/302 565 GET http://www.linux.org.ru/ - DIRECT/195.170.236.10
> 
> The requested page isn't showed.
> 
> Thanks,
> Ilya.
Received on Mon Jul 02 2001 - 08:43:02 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 17:00:58 MST