Squid

From Finninday
Revision as of 22:24, 15 September 2010 by Rday (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Minimal squid installation and configuration

  • Install the squid package via package management. That resulted in this:

root@rday-desktop:/var/log/squid# dpkg -l squid Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Description +++-==============-==============-============================================ ii squid 2.7.STABLE7-1u Internet object cache (WWW proxy cache)

  • Change the default /etc/squid/squid.conf configuration to make it visible to anyone:

  1. INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
  1. Example rule allowing access from your local networks.
  2. Adapt localnet in the ACL section to list your (internal) IP networks
  3. from where browsing should be allowed
  4. http_access allow localnet

http_access allow all

  1. And finally deny all other access to this proxy
  2. http_access deny all

  • Configure a Firefox client to use a proxy

Preferences > Advanced > Network > Connection Settings

Select "Manual proxy configuration"

Enter the IP address or name of the proxy server and the port number (default is 3128)

  • Use the client to browse and watch the squid log to verify that it is operational. The squid log is /var/log/squid/access.log