#!/bin/bash
apt update -y

apt install squid apache2-utils -y
mv /etc/squid/squid.conf /etc/squid/squid.conf.bak
echo 'auth_param basic program /usr/lib/squid3/basic_ncsa_auth /etc/squid/passwd
auth_param basic realm proxy
acl authenticated proxy_auth REQUIRED
http_access allow authenticated
http_port 5888' >/etc/squid/squid.conf

htpasswd -bc /etc/squid/passwd fucku 05KrUeeh86n9Bw4n9rWN

systemctl restart squid
systemctl status squid
systemctl enable squid
