How to install Squid3 proxy suite on Debian

How to install Squid on Debian in some simple steps.

At first we install Squid3 and Apache tools.

The command we use is:

apt-get install squid3 apache2-utils

 

At first we take a small backup of Squid3 settings

Command:

cp /etc/squid3/squid.conf /etc/squid3/squid.conf.bak

And we replace the content in /etc/squid3/squid.conf as bellow:

http_port 3128

 

auth_param basic program /usr/lib/squid3/basic_ncsa_auth /etc/squid3/.passwd

auth_param basic children 1

auth_param basic credentialsttl 1 minute

auth_param basic casesensitive off

 

acl auth proxy_auth REQUIRED

acl localhost src 127.0.0.0/8

 

http_access allow auth

http_access allow localhost

http_access deny all

 

cache deny all

 

forwarded_for delete

request_header_access Via deny all

 

You can change squid port (3128), in case you would like to improve your security.

 

Create a User and login to the Squid server.

 

htpasswd -c /etc/squid3/.passwd YOUR_USER_NAME

 

Restart your Squid3 service, and the job is done.

 

/etc/init.d/squid3 restart

  • 2 Users Found This Useful
這篇文章有幫助嗎?

Powered by WHMCompleteSolution