bootstrap-rocky-10/install-squid.sh
2026-02-25 00:22:44 +00:00

27 lines
522 B
Bash
Executable File

#!/usr/bin/env bash
REPO_FILE_URL="https://www.ngtech.co.il/repo/rocky/ngtech-squid.repo"
dnf install wget -y
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 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