Install Squid
1 |
sudo apt-get install squid |
When asked to continue press Y
Configure Squid
The default configuration file for squid is located under /etc/squid3/squid.conf or /etc/squid/squid.conf.
1 |
sudo vi /etc/squid/squid.conf |
For http proxy you may need to change below options
http_port: Default is 3128
http_access deny all: You may want this to change to http_access allow all for probably testing purpose but real life scenario would be to allow just 1 IP address of your webserver
Remember to restart squid after making any changes to the configuration file
1 |
sudo service squid restart |