First to explain why the distribution of transparent proxy.
Acting proxy configuration can be achieved only functional, but the client, it is necessary to set up proxy server in the browser and other tools, such as Tips, CuteFTP, etc., must be set up on January 1, which is very difficult. However, the installation of transparent proxy, the client need only installed in the network configuration can be a gateway, any other procedures are not set up separately. This is the most transparent proxy installed temptation, of course, this is just for me, actually a more powerful gateway firewall functions, it is the largest utility. However, this configuration does not involve a firewall, if interested look at the iptables posted howto.
1. We will assume that the Linux firewall already translated into support option, which can be released into the Kernel source, and make menuconfig confirmed.
2. Linux installed, the general release version of Linux for all, the installation should have been installed completely over, of course, can also be downloaded from the following address : Installation
Http://www.squid-cache.org/
3. Re-installation of the system or whether there is the original, possibly because all proxy issue, the location of the configuration file is not the same, and find the exact location of the order confirmation squid.conf documents. If rpm installed, can also be used to confirm an order rpm rpm -ql [squidrpmname.rpm] | grep squid.conf :
4. Squid.conf document editing to ensure that there is the following :
Httpd_accel_host virtual
Httpd_accel_port 80
Httpd_accel_with_proxy on
Httpd_accel_uses_host_header on
Cache_effective_user nobody
Cache_effective_group nobody
Http_access allow all
Cache_dir ufs /usr/local/squid/cache 100 16 256
Note : The last sentence of cache catalog, the need to create below, you can read the list of where the plane proxy. The penultimate sentence, we allow all of the requests, it is very safe, he could create a group and then allow the group and deny all, the specific provision on a careful look at squid.conf, very detailed explanation and examples
5. Contents create cache (if any), to revise the list of owners for nobody
Chown nobody:nobody /pathname/cache
6. Check the configuration file tacit log catalog, which will be nobody to amend the list of owners to ensure that the log can be included
7. Z create proxy cache :
8. D : proxy proxy launched
Maintaining a very detailed proxy by the end of the FAQ, basically you need to have answers to the questions, for instance You can use a proxy to -NCd1 Debug mode, with such errors will be reported if, in general, if the customer is ADSL, Well, no dial-up before the start of the proxy is to be wrong, then the (FATAL : ipcache_init : DNS name lookup tests failed), will start the proxy used to check some of the DNS. But when you do not access the internet, naturally wrong, we do not need to start the DNS checks, which require add-D option to initiate proxy
9. After the successful launch, we can go to the client browser to see if they contain a proxy if they can access the internet, even set up successful proxy
10. Another follow-up work is to confirm the proxy is not switched on automatically activated, which generally has boomed in /etc/init.d script, and we need to do it is to the appropriate ln rc.d catalog, such acquiescence runlevel5 I started, then I would implement :
Ln-s /etc/init.d/squid /etc/init.d/rc5.d/S99squid
Ln-s /etc/init.d/squid /etc/init.d/rc5.d/K01squid
Now it is SuSE, RedHat if, in /etc rc.d list below, rather than /etc/init.d below.
OK, end of a proxy set up, we started following the distribution of Iptables