2024-11-20 01:35:37 +02:00
|
|
|
#!/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
|
2024-11-20 02:41:04 +02:00
|
|
|
|
|
|
|
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
|