Aim: Configuration of Proxy Server.

Aim: Configuration of Proxy Server.

Government college of engineering Yavatamal

Aim: Configuration of Proxy Server.

To check the current version of Ubuntu type the below command

lsb_release -a

update and install squid

sudo apt update
sudo apt-get install squid

edit configuration file

sudo vim /etc/squid/squid.conf

Search http_access and paste the code following code there

#Second try test ashwin
acl localhost scr your_ip_address
acl blocksite dstdomain "/etc/squid/blocksite
http_access deny blocksite
http_access allow localnet

#this ashwin comment : add finally deny all other access to this proxy
http_access allow all

add the site to be blocked by tying this command anding the site URL inside the file

sudo vim /etc/squid/blocksite

restart squid

systemctl restart squid

Done! 🙂

Test proxy on firefox

  1. go to firefox settings and search for proxy

  2. add the below details there

  3. and press ok

  4. Now facebook.com is no longer accessible

Done! 🙂

please login and hit the like button for my motivation😥