LKBEN11072: Howto install squid on a debian system
Symptom
You need to install squid3 on a debian, kubunt or apt-get based system
Cause
none
Solution
First you need to install the proxy server
apt-get install squid3 squid3-common
The default port used by squid is 3128 and will have to be configured on the clients. Your first try will deliver an access denied message.
...
ERROR
The requested URL could not be retrieved
--------------------------------------------------------------------------------
While trying to retrieve the URL: http://www.lubby.org/
The following error was encountered:
Access Denied.
Access control configuration prevents your request from being allowed at this time. Please contact your service provider if you feel this is incorrect.
Your cache administrator is webmaster.
--------------------------------------------------------------------------------
Generated Sat, 03 Jan 2009 08:13:57 GMT by localhost (squid/3.0.STABLE8)
...
This is normal. You still need to configure your installation of squid. Therefore you need to be root and edit the file /etc/squid3/squid.conf.
I added the following lines for my local network:
...
acl mylocalnet scr 192.168.1.0/24
http_access allow mylocalnet
...
If you try now, nothing will have changed! You still need to restart your proxy server. This can easily be done by:
invoke-rc.d squid3 stop
invoke-rc.d squid3 start
If you configured your clients correctly, everything will run fine.
Disclaimer:
The information provided in this document is intended for your information only. Lubby makes no claims to the validity of this information. Use of this information is at own risk!About the Author
Author:
- Keskon GmbH & Co. KGWim Peeters is electronics engineer with an additional master in IT and over 30 years of experience, including time spent in support, development, consulting, training and database administration. Wim has worked with SQL Server since version 6.5. He has developed in C/C++, Java and C# on Windows and Linux. He writes knowledge base articles to solve IT problems and publishes them on the Lubby Knowledge Platform.