Running SquidWhy Use Squid? | ||||||||
| Line: 42 to 42 | ||||||||
|---|---|---|---|---|---|---|---|---|
<nop> | ||||||||
| Changed: | ||||||||
| < < |
/etc/init.d/squid start | |||||||
| > > |
invoke-rc.d squid start | |||||||
<nop> | ||||||||
Running SquidWhy Use Squid? | ||||||||
| Changed: | ||||||||
| < < |
When I'm at work, the machines I use all need to get access to the internet indirectly, via a firewall machine (let's call it "firewall_proxy_server"). Since I guess other folks might be in a similar situation, to save them going through the same trial and error with setting up squid, I wrote up the following summary of the configuration of squid for this scenario. | |||||||
| > > |
When you're at work, the machines you use may need to get access to the internet
indirectly, via a firewall machine or an http proxy server (let's call this machine firewall_proxy_server).
To save folks from having to go through the same trial and error with setting up Squid, I wrote up
the following summary of the configuration for this scenario of using Squid to cache files
downloaded via a firewall machine or http proxy server.
| |||||||
Configuring Squid | ||||||||
| Changed: | ||||||||
| < < |
I found the following are the main settings needed to make squid listen for http requests on its default port 3128, and forward them to port 80 on the machine called "firewall_proxy_server", while keeping a cache of everything it retrieves in the directory "/somewhere/with/space/squid_cache/" | |||||||
| > > |
I found the following are the main settings needed to get Squid to listen for
http requests on its default port 3128, and forward them to port 80 on the
machine firewall_proxy_server, while keeping a cache of everything
it retrieves in the directory /somewhere/with/space/squid_cache/
| |||||||
| (configured with size 16384 megabytes), while allowing access from clients | ||||||||
| Changed: | ||||||||
| < < |
in the three subnets listed in the "our_networks" access control list: | |||||||
| > > |
in the three subnets listed in the our_networks access control list:
| |||||||
Settings in configuration file
| ||||||||
| Line: 35 to 35 | ||||||||
|---|---|---|---|---|---|---|---|---|
apt-get install squid
| ||||||||
| Changed: | ||||||||
| < < |
If it's not already done, to initialize the squid cache (cache_dir) | |||||||
| > > |
If it's not already done, to initialize the squid cache cache_dir
| |||||||
you may need to run as root:
squid -z
| ||||||||
| Line: 49 to 49 | ||||||||
| squid -k reconfigure You might need to do this for example if you want to change the settings while squid is running, e.g. to | ||||||||
| Changed: | ||||||||
| < < |
increase the size of the squid disk cache (cache_dir third parameter). | |||||||
| > > |
increase the size of the squid disk cache (cache_dir third parameter).
| |||||||
| Changed: | ||||||||
| < < |
-- PeterKnaggs - 09 Dec 2004 | |||||||
| > > |
-- PeterKnaggs - 10 Dec 2004 | |||||||
| Line: 1 to 1 | ||||||||
|---|---|---|---|---|---|---|---|---|
| Added: | ||||||||
| > > |
Running SquidWhy Use Squid?When I'm at work, the machines I use all need to get access to the internet indirectly, via a firewall machine (let's call it "firewall_proxy_server"). Since I guess other folks might be in a similar situation, to save them going through the same trial and error with setting up squid, I wrote up the following summary of the configuration of squid for this scenario.Configuring SquidI found the following are the main settings needed to make squid listen for http requests on its default port 3128, and forward them to port 80 on the machine called "firewall_proxy_server", while keeping a cache of everything it retrieves in the directory "/somewhere/with/space/squid_cache/" (configured with size 16384 megabytes), while allowing access from clients in the three subnets listed in the "our_networks" access control list: Settings in configuration file
| |||||||