Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ https://serverok.in/squid
Auto install Squid 3 proxy on following linux OS.

* Ubuntu 24.04, 22.04, 20.04, 18.04
* Debian 12, 11, 10, 9, 8
* Debian 13, 12, 11, 10, 9, 8
* CentOS 8
* CentOS Steam 9, 8
* AlmaLinux 9, 8
Expand Down
2 changes: 2 additions & 0 deletions sok-find-os.sh
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ elif cat /etc/os-release | grep PRETTY_NAME | grep "bullseye" > /dev/null; then
echo "debian11"
elif cat /etc/os-release | grep PRETTY_NAME | grep "bookworm" > /dev/null; then
echo "debian12"
elif cat /etc/os-release | grep PRETTY_NAME | grep "trixie" > /dev/null; then
echo "debian13"
elif cat /etc/os-release | grep PRETTY_NAME | grep "CentOS Linux 7" > /dev/null; then
echo "centos7"
elif cat /etc/os-release | grep PRETTY_NAME | grep "CentOS Linux 8" > /dev/null; then
Expand Down
12 changes: 12 additions & 0 deletions squid3-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,18 @@ elif [ $SOK_OS == "debian12" ]; then
fi
systemctl enable squid
systemctl restart squid
elif [ $SOK_OS == "debian13" ]; then
# OS = Debian GNU/Linux 12 (bookworm)
/bin/rm -rf /etc/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
/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
fi
systemctl enable squid
systemctl restart squid
elif [ $SOK_OS == "centos7" ]; then
echo "CentOS Linux 7 reached End of Life (EOL) nn June 30, 2024. Please use to newer OS"
exit 1
Expand Down