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

From: Ilya Palagin <ipalagin@dont-contact.us>
Date: Mon, 02 Jul 2001 20:20:26 +0700

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 - 07:19:09 MDT

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