Contents

Proxy Server

How to isntall & do simple configuration of Squid’s Proxy server on linux

Installing squid

sudo apt update -y && sudo apt install squid

first we install the squid proxy application. and all of its dependencies.

Configuring the proxy server

the configuration file is located in /etc/squid/squid.conf we can edit it using nano

sudo nano /etc/squid/squid.conf

now we need to allow http, as the default configuration forbid it.

http_access allow all

change deny to allow.

Restarting the service

after changing the conf file and saving it we need to restart the service

sudo systemctl restart squid.service

wait because it may take a while. make a new firewall rules if there is one.

blocking a certain website

if you want to block a certain website using proxy conf. follow this step write this below

acl blocked_site dstdomain .kompas.com

then block it using by adding this below it

http_access deny blocked_site

Using the proxy

open your browser, setting, proxy then add 127.0.0.1 and the default server 3128 then ok test the proxy by visiting the web in which you have blocked and see if it is enforced.