Linux debian small http Squid proxy with authentication

Tutorials thread
User avatar
serveroffer
Site Admin
Posts: 50
Joined: 2012 Jun 16, 18:31

Linux debian small http Squid proxy with authentication

Postby serveroffer » 2017 Feb 12, 12:34

This configuration uses around 300 MB of RAM
Tested with VPS on Debian 7 (Wheezy) 32-bit.

update debian packages lists

Code: Select all

apt-get update

Install squid proxy server and password encryption tool

Code: Select all

apt-get install apache2-utils squid

create proxy username proxyserver and enter the password

Code: Select all

htpasswd -c /etc/squid/passwd_squid proxyserver

rename default squid configuration file

Code: Select all

mv /etc/squid/squid.conf /etc/squid.conf.bakup

create new config file

Code: Select all

nano /etc/squid/squid.conf

paste basic configuration of http proxy with authentication

Code: Select all

acl all src 0.0.0.0/0.0.0.0
auth_param basic program /usr/lib/squid/ncsa_auth /etc/squid/passwd_squid
acl ncsa_users proxy_auth REQUIRED
http_access allow ncsa_users
auth_param basic children 2
auth_param basic realm proxy
auth_param basic credentialsttl 2 hours
auth_param basic casesensitive off

http_port 4129

save new configuration and restart squid service

Code: Select all

service squid restart

You should be able login to proxy server using username proxyserver and your password on VPS IP address and port 4129

Return to “Tutorials”

Who is online

Users browsing this forum: No registered users and 42 guests