Squid

From Finninday
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:
# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS

# Example rule allowing access from your local networks.
# Adapt localnet in the ACL section to list your (internal) IP networks
# from where browsing should be allowed
#http_access allow localnet
http_access allow all

# And finally deny all other access to this proxy
#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