Linux debian small http Squid proxy with authentication
Posted: 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
Install squid proxy server and password encryption tool
create proxy username proxyserver and enter the password
rename default squid configuration file
create new config file
paste basic configuration of http proxy with authentication
save new configuration and restart squid service
You should be able login to proxy server using username proxyserver and your password on VPS IP address and port 4129
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