How to Configure Squid Proxy on Ubuntu
????. ????????????????????????????
???????????????? at Express System Ltd.
Step 1: Install the Squid package on Ubuntu using the following commands:
sudo apt update
sudo apt install squid -y
Step 2: Configure the Squid proxy on Ubuntu by editing the configuration file with the following command:
sudo nano /etc/squid/squid.conf
In the editor, enable the HTTP port and access by adding:
http_port 3128
http_access allow all
Create ACL:
acl newlist src 172.16.10.7
acl block dstdomain "/etc/squid/block.txt"
http_access deny block
http_access allow newlist
Save and exit the editor. Next, create the block list using the following command:
sudo nano /etc/squid/block.txt
The block list should contain the following entries:
Step:3
Configure the proxy on the client device:
?