#!/bin/bash # Update the package lists sudo apt update # Install Squid and Apache Utilities (for htpasswd) sudo apt install -y squid apache2-utils # Create a username and password for the proxy read -p "Enter the proxy username: " proxy_user sudo htpasswd -c /etc/squid/passwd $proxy_user # Backup the original Squid configuration file sudo cp /etc/squid/squid.conf /etc/squid/squid.conf.backup # Add authentication configuration to Squid cat <