How to install and configure Squid private anonymous proxy server on Ubuntu / Debian

System update

# apt-get update
# apt-get upgrade

Installing the squid3 package

# apt-get install squid3 squid3-common

Editing the Squid config file:

# vi /etc/squid3/squid.conf

To only allow access to the Squid proxy server from your IP, find and uncomment the following line and specify your IP or IP range:

acl localnet src Your_IP

Add also the lines:

http_access allow localnet
http_access allow localhost

You can change the default proxy port 3128

http_port 3128

To browse HTTP anonymously, add the following instructions to the end of the /etc/squid3/squid.conf file:

forwarded_for off

request_header_access Allow allow all
request_header_access Authorization allow all
request_header_access WWW-Authenticate allow all
request_header_access Proxy-Authorization allow all
request_header_access Proxy-Authenticate allow all
request_header_access Cache-Control allow all
request_header_access Content-Encoding allow all
request_header_access Content-Length allow all
request_header_access Content-Type allow all
request_header_access Date allow all
request_header_access Expires allow all
request_header_access Host allow all
request_header_access If-Modified-Since allow all
request_header_access Last-Modified allow all
request_header_access Location allow all
request_header_access Pragma allow all
request_header_access Accept allow all
request_header_access Accept-Charset allow all
request_header_access Accept-Encoding allow all
request_header_access Accept-Language allow all
request_header_access Content-Language allow all
request_header_access Mime-Version allow all
request_header_access Retry-After allow all
request_header_access Title allow all
request_header_access Connection allow all
request_header_access Proxy-Connection allow all
request_header_access User-Agent allow all
request_header_access Cookie allow all
request_header_access All deny all

Finally, restart Squid:

# service squid3 restart

Remember to configure your browser proxy settings with the new proxy server.

Use the IP and port 3128 of your proxy server.

Note: Sites using HTTPS will not work with these anonymous settings

Ubuntu–Debian.jpg.webp?x69943″ alt=”How to install and configure Squid private anonymous proxy server on Ubuntu / Debian” width=”600″ height=”250″ srcset=”” sizes=”(max-width: 600px) 100vw, 600px”>

Sidebar