Added basic squid installation
This commit is contained in:
parent
179dcada66
commit
ab0074c0a4
3
disable-rp-filter.sh
Executable file
3
disable-rp-filter.sh
Executable file
@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
sysctl -a|grep \.rp_filter|gawk '{print $1}' |xargs -I{} sysctl -w {}=0
|
38
install-ngtech-squid.sh
Executable file
38
install-ngtech-squid.sh
Executable file
@ -0,0 +1,38 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
dnf module disable squid -y
|
||||
|
||||
cat <<EOF > /etc/yum.repos.d/ngtech-squid.repo
|
||||
[ngtech-squid]
|
||||
name=Rocky Linux \$releasever - NgTech Squid Repo
|
||||
#mirrorlist=https://mirrors.rockylinux.org/mirrorlist?arch=\$basearch&repo=BaseOS-\$releasever
|
||||
baseurl=https://www.ngtech.co.il/repo/rocky/\$releasever/\$basearch/
|
||||
gpgcheck=0
|
||||
enabled=1
|
||||
countme=1
|
||||
EOF
|
||||
|
||||
dnf check-update
|
||||
|
||||
dnf install -y squid squid-helpers
|
||||
|
||||
dnf install -y epel-release
|
||||
|
||||
crb enable
|
||||
|
||||
dnf install -y epel-release
|
||||
|
||||
dnf install -y iptstate atop htop conntrack-tools curl jq wget iptables-services iptables-utils \
|
||||
tcpdump
|
||||
|
||||
systemctl disable firewalld --now
|
||||
|
||||
cp -vf rules.v4 /etc/sysconfig/iptables
|
||||
cp -vf rules.v6 /etc/sysconfig/ip6tables
|
||||
|
||||
|
||||
systemctl start iptables
|
||||
systemctl start ip6tables
|
||||
|
||||
systemctl enable iptables
|
||||
systemctl enable ip6tables
|
37
rules.v6
Normal file
37
rules.v6
Normal file
@ -0,0 +1,37 @@
|
||||
# Generated by ip6tables-save v1.8.5 on Tue Aug 27 02:40:47 2024
|
||||
*filter
|
||||
:INPUT ACCEPT [9:758]
|
||||
:FORWARD ACCEPT [0:0]
|
||||
:OUTPUT ACCEPT [9:608]
|
||||
COMMIT
|
||||
# Completed on Tue Aug 27 02:40:47 2024
|
||||
# Generated by ip6tables-save v1.8.5 on Tue Aug 27 02:40:47 2024
|
||||
*security
|
||||
:INPUT ACCEPT [9:758]
|
||||
:FORWARD ACCEPT [0:0]
|
||||
:OUTPUT ACCEPT [9:608]
|
||||
COMMIT
|
||||
# Completed on Tue Aug 27 02:40:47 2024
|
||||
# Generated by ip6tables-save v1.8.5 on Tue Aug 27 02:40:47 2024
|
||||
*raw
|
||||
:PREROUTING ACCEPT [9:758]
|
||||
:OUTPUT ACCEPT [9:608]
|
||||
COMMIT
|
||||
# Completed on Tue Aug 27 02:40:47 2024
|
||||
# Generated by ip6tables-save v1.8.5 on Tue Aug 27 02:40:47 2024
|
||||
*mangle
|
||||
:PREROUTING ACCEPT [9:758]
|
||||
:INPUT ACCEPT [9:758]
|
||||
:FORWARD ACCEPT [0:0]
|
||||
:OUTPUT ACCEPT [9:608]
|
||||
:POSTROUTING ACCEPT [9:608]
|
||||
COMMIT
|
||||
# Completed on Tue Aug 27 02:40:47 2024
|
||||
# Generated by ip6tables-save v1.8.5 on Tue Aug 27 02:40:47 2024
|
||||
*nat
|
||||
:PREROUTING ACCEPT [0:0]
|
||||
:INPUT ACCEPT [0:0]
|
||||
:POSTROUTING ACCEPT [0:0]
|
||||
:OUTPUT ACCEPT [0:0]
|
||||
COMMIT
|
||||
# Completed on Tue Aug 27 02:40:47 2024
|
Loading…
Reference in New Issue
Block a user