bootstrap-rocky-9/install-squid.sh
2024-11-20 02:41:27 +02:00

25 lines
499 B
Bash
Executable File

#!/usr/bin/env bash
REPO_FILE_URL="https://www.ngtech.co.il/repo/rocky/ngtech-squid.repo"
wget "${REPO_FILE_URL}" -O "/etc/yum.repos.d/ngtech-squid.repo"
dnf install epel-release -y
crb enable
dnf install epel-release -y
dnf install htop iptstate conntrack iptables-services -y
systemctl disable --now firewalld
dnf install squid squid-helpers -y
cat <<EOF >/etc/sysctl.d/10-proxy.conf
net.ipv4.ip_forward=1
net.ipv4.conf.all.forwarding=1
net.ipv4.ip_forward_use_pmtu=1
EOF
sysctl --system