Update rhel.sh

This commit is contained in:
midoks
2022-12-20 13:40:56 +08:00
parent 7b3bbc8bdd
commit 5d12218a3e
+3
View File
@@ -30,6 +30,9 @@ fi
if [ -f /usr/sbin/iptables ];then
# $PKGMGR install -y iptables-services
# iptables -nL --line-number
iptables -I INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
iptables -I INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT
iptables -I INPUT -p tcp -m state --state NEW -m tcp --dport 443 -j ACCEPT