File: README.transparent-proxy

package info (click to toggle)
squid 1.1.21-1
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 2,828 kB
  • ctags: 3,705
  • sloc: ansic: 34,400; sh: 1,975; perl: 899; makefile: 559
file content (28 lines) | stat: -rw-r--r-- 1,010 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28

You can do transparent caching on Linux, Solaris, and BSD derivations.

The FAQ talks about this, see FAQ-5.html. It says:

The trick is to get the operating system to forward certain IP packets 
to the application.  This document currently contains only instruction
for configuring transparent caching on Linux and Solaris.

Here are the important settings in squid.conf:

        http_port               80
        icp_port                3130
        httpd_accel             virtual 80
        httpd_accel_with_proxy  on

However this way all hosts get indexed under their IP number instead of
under their real hostname, and that accounts for less efficiency.

The Debian version of squid-1.1.20 has been patched so that squid in
transparent proxy mode looks for the HTTP Host: header and uses that if
present. This patch is included in squid-1.1.21 and up. To turn on this
behaviour you also need:

        httpd_accel_uses_host_header   on

      Miquel van Smoorenburg <miquels@cistron.nl> 18-Mar-1998