From 5f4b854a1743e53c626773444ab1ae5045a50b2a Mon Sep 17 00:00:00 2001 From: Eliezer Croitoru Date: Wed, 20 Nov 2024 02:41:04 +0200 Subject: [PATCH] Convert squid to router --- install-squid.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/install-squid.sh b/install-squid.sh index bc89e48..93c9242 100755 --- a/install-squid.sh +++ b/install-squid.sh @@ -14,3 +14,11 @@ dnf install htop iptstate conntrack iptables-services -y systemctl disable --now firewalld dnf install squid squid-helpers -y + +cat </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