Squid: Difference between revisions

From finninday
Jump to navigation Jump to search
(Created page with '===Minimal squid installation and configuration=== * Install the squid package via package management. That resulted in this: <code> root@rday-desktop:/var/log/squid# dpkg -l s…')
 
No edit summary
 
Line 2: Line 2:


* Install the squid package via package management.  That resulted in this:
* Install the squid package via package management.  That resulted in this:
<code>
<pre>
root@rday-desktop:/var/log/squid# dpkg -l squid
root@rday-desktop:/var/log/squid# dpkg -l squid
Desired=Unknown/Install/Remove/Purge/Hold
Desired=Unknown/Install/Remove/Purge/Hold
Line 10: Line 10:
+++-==============-==============-============================================
+++-==============-==============-============================================
ii  squid          2.7.STABLE7-1u Internet object cache (WWW proxy cache)
ii  squid          2.7.STABLE7-1u Internet object cache (WWW proxy cache)
</code>
</pre>


* Change the default /etc/squid/squid.conf configuration to make it visible to anyone:
* Change the default /etc/squid/squid.conf configuration to make it visible to anyone:
<code>
<pre>
# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
# INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS


Line 24: Line 24:
# And finally deny all other access to this proxy
# And finally deny all other access to this proxy
#http_access deny all
#http_access deny all
</code>
</pre>


* Configure a Firefox client to use a proxy
* Configure a Firefox client to use a proxy

Latest revision as of 22:25, 15 September 2010

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