How to install & setup Squid Proxy for particular browser

Published: 14 December 2022
on channel: Quickloss3
429
23

updating server
sudo apt update && apt upgrade -y

installing squid
sudo apt install squid

squid status
systemctl status squid.service

sudo nano /etc/squid/squid.conf
add line below(# Example rule allowing access from your local networks.)
acl localnet src your_ip_address
save and close
------------------------------------------
Securing Squid
installing
sudo apt install apache2-utils

adding user
sudo htpasswd -c /etc/squid/passwords your_squid_username

verifying user
sudo cat /etc/squid/passwords
-----------------------------------------------------

sudo nano /etc/squid/squid.conf
add below (acl localnet src your_ip_address)

auth_param basic program /usr/lib/squid3/basic_ncsa_auth /etc/squid/passwords
auth_param basic realm proxy
acl authenticated proxy_auth REQUIRED

addbelow (http_access allow localhost)
http_access allow authenticated

sudo systemctl restart squid.service
------------------------------------
allow port
sudo ufw allow 3128
-------------------------------------------------
Connecting through Squid
curl -v -x http://your_squid_username:your_squid_password@your_server_ip:3128 http://www.google.com/
curl -v -x http://your_squid_username:your_squid_password@your_server_ip:3128 https://www.google.com/


Watch video How to install & setup Squid Proxy for particular browser online without registration, duration hours minute second in high quality. This video was added by user Quickloss3 14 December 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 429 once and liked it 23 people.