diff --git a/README.md b/README.md index 8c3b075..f5537dd 100644 --- a/README.md +++ b/README.md @@ -7,6 +7,7 @@ Auto install Squid 3 proxy on following linux OS. * Ubuntu 14.04, 16.04, 18.04, 20.04, 22.04 * Debian 8, 9, 10, 11, 12 * CentOS 7, 8 +* CentOS Steam 8, 9 * AlmaLinux 8, 9 diff --git a/conf/debian12.conf b/conf/debian12.conf new file mode 100644 index 0000000..f458d7c --- /dev/null +++ b/conf/debian12.conf @@ -0,0 +1,40 @@ +acl SSL_ports port 1-65535 +acl Safe_ports port 1-65535 + +auth_param basic program /usr/lib/squid/basic_ncsa_auth /etc/squid/passwd +auth_param basic children 5 +auth_param basic realm ServerOK Proxy Server +auth_param basic credentialsttl 2 hours +acl password proxy_auth REQUIRED +http_access allow password + +forwarded_for off +request_header_access Allow allow all +request_header_access Authorization allow all +request_header_access WWW-Authenticate allow all +request_header_access Proxy-Authorization allow all +request_header_access Proxy-Authenticate allow all +request_header_access Cache-Control allow all +request_header_access Content-Encoding allow all +request_header_access Content-Length allow all +request_header_access Content-Type allow all +request_header_access Date allow all +request_header_access Expires allow all +request_header_access Host allow all +request_header_access If-Modified-Since allow all +request_header_access Last-Modified allow all +request_header_access Location allow all +request_header_access Pragma allow all +request_header_access Accept allow all +request_header_access Accept-Charset allow all +request_header_access Accept-Encoding allow all +request_header_access Accept-Language allow all +request_header_access Content-Language allow all +request_header_access Mime-Version allow all +request_header_access Retry-After allow all +request_header_access Title allow all +request_header_access Connection allow all +request_header_access Proxy-Connection allow all +request_header_access User-Agent allow all +request_header_access Cookie allow all +request_header_access All deny all diff --git a/squid3-install.sh b/squid3-install.sh index d5062fa..8738bdb 100644 --- a/squid3-install.sh +++ b/squid3-install.sh @@ -43,8 +43,8 @@ if [ $SOK_OS == "ERROR" ]; then fi if [ $SOK_OS == "ubuntu2204" ]; then - /usr/bin/apt update - /usr/bin/apt -y install apache2-utils squid + /usr/bin/apt update > /dev/null 2>&1 + /usr/bin/apt -y install apache2-utils squid > /dev/null 2>&1 touch /etc/squid/passwd mv /etc/squid/squid.conf /etc/squid/squid.conf.bak /usr/bin/touch /etc/squid/blacklist.acl @@ -56,8 +56,8 @@ if [ $SOK_OS == "ubuntu2204" ]; then service squid restart systemctl enable squid elif [ $SOK_OS == "ubuntu2004" ]; then - /usr/bin/apt update - /usr/bin/apt -y install apache2-utils squid + /usr/bin/apt update > /dev/null 2>&1 + /usr/bin/apt -y install apache2-utils squid > /dev/null 2>&1 touch /etc/squid/passwd /bin/rm -f /etc/squid/squid.conf /usr/bin/touch /etc/squid/blacklist.acl @@ -69,8 +69,8 @@ elif [ $SOK_OS == "ubuntu2004" ]; then service squid restart systemctl enable squid elif [ $SOK_OS == "ubuntu1804" ]; then - /usr/bin/apt update - /usr/bin/apt -y install apache2-utils squid3 + /usr/bin/apt update > /dev/null 2>&1 + /usr/bin/apt -y install apache2-utils squid3 > /dev/null 2>&1 touch /etc/squid/passwd /bin/rm -f /etc/squid/squid.conf /usr/bin/touch /etc/squid/blacklist.acl @@ -80,8 +80,8 @@ elif [ $SOK_OS == "ubuntu1804" ]; then service squid restart systemctl enable squid elif [ $SOK_OS == "ubuntu1604" ]; then - /usr/bin/apt update - /usr/bin/apt -y install apache2-utils squid3 + /usr/bin/apt update > /dev/null 2>&1 + /usr/bin/apt -y install apache2-utils squid3 > /dev/null 2>&1 touch /etc/squid/passwd /bin/rm -f /etc/squid/squid.conf /usr/bin/touch /etc/squid/blacklist.acl @@ -91,8 +91,8 @@ elif [ $SOK_OS == "ubuntu1604" ]; then service squid restart update-rc.d squid defaults elif [ $SOK_OS == "ubuntu1404" ]; then - /usr/bin/apt update - /usr/bin/apt -y install apache2-utils squid3 + /usr/bin/apt update > /dev/null 2>&1 + /usr/bin/apt -y install apache2-utils squid3 > /dev/null 2>&1 touch /etc/squid3/passwd /bin/rm -f /etc/squid3/squid.conf /usr/bin/touch /etc/squid3/blacklist.acl @@ -106,8 +106,8 @@ elif [ $SOK_OS == "ubuntu1404" ]; then elif [ $SOK_OS == "debian8" ]; then # OS = Debian 8 /bin/rm -rf /etc/squid - /usr/bin/apt update - /usr/bin/apt -y install apache2-utils squid3 + /usr/bin/apt update > /dev/null 2>&1 + /usr/bin/apt -y install apache2-utils squid3 > /dev/null 2>&1 touch /etc/squid3/passwd /bin/rm -f /etc/squid3/squid.conf /usr/bin/touch /etc/squid3/blacklist.acl @@ -120,8 +120,8 @@ elif [ $SOK_OS == "debian8" ]; then elif [ $SOK_OS == "debian9" ]; then # OS = Debian 9 /bin/rm -rf /etc/squid - /usr/bin/apt update - /usr/bin/apt -y install apache2-utils squid + /usr/bin/apt update > /dev/null 2>&1 + /usr/bin/apt -y install apache2-utils squid > /dev/null 2>&1 touch /etc/squid/passwd /bin/rm -f /etc/squid/squid.conf /usr/bin/touch /etc/squid/blacklist.acl @@ -133,8 +133,8 @@ elif [ $SOK_OS == "debian9" ]; then elif [ $SOK_OS == "debian10" ]; then # OS = Debian 10 /bin/rm -rf /etc/squid - /usr/bin/apt update - /usr/bin/apt -y install apache2-utils squid + /usr/bin/apt update > /dev/null 2>&1 + /usr/bin/apt -y install apache2-utils squid > /dev/null 2>&1 touch /etc/squid/passwd /bin/rm -f /etc/squid/squid.conf /usr/bin/touch /etc/squid/blacklist.acl @@ -146,8 +146,8 @@ elif [ $SOK_OS == "debian10" ]; then elif [ $SOK_OS == "debian11" ]; then # OS = Debian GNU/Linux 11 (bullseye) /bin/rm -rf /etc/squid - /usr/bin/apt update - /usr/bin/apt -y install apache2-utils squid + /usr/bin/apt update > /dev/null 2>&1 + /usr/bin/apt -y install apache2-utils squid > /dev/null 2>&1 touch /etc/squid/passwd /bin/rm -f /etc/squid/squid.conf /usr/bin/touch /etc/squid/blacklist.acl @@ -161,12 +161,10 @@ elif [ $SOK_OS == "debian11" ]; then elif [ $SOK_OS == "debian12" ]; then # OS = Debian GNU/Linux 12 (bookworm) /bin/rm -rf /etc/squid - /usr/bin/apt update - /usr/bin/apt -y install apache2-utils squid + /usr/bin/apt update > /dev/null 2>&1 + /usr/bin/apt -y install apache2-utils squid > /dev/null 2>&1 touch /etc/squid/passwd - mv /etc/squid/squid.conf /etc/squid/squid.conf.default - /usr/bin/touch /etc/squid/blacklist.acl - /usr/bin/wget -q --no-check-certificate -O /etc/squid/squid.conf https://raw.githubusercontent.com/serverok/squid-proxy-installer/master/squid.conf + /usr/bin/wget -q --no-check-certificate -O /etc/squid/conf.d/serverok.conf https://raw.githubusercontent.com/serverok/squid-proxy-installer/master/conf/debian12.conf if [ -f /sbin/iptables ]; then /sbin/iptables -I INPUT -p tcp --dport 3128 -j ACCEPT /sbin/iptables-save