Update rhel.sh

pull/321/head
midoks 2 years ago
parent 0d2721523c
commit 155b8d2b4c
  1. 4
      scripts/install/rhel.sh

@ -33,6 +33,8 @@ if [ -f /usr/sbin/iptables ];then
# iptables -nL --line-number
echo "iptables start"
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
@ -48,6 +50,8 @@ if [ -f /usr/sbin/iptables ];then
fi
#安装时不开启
service iptables stop
echo "iptables end"
fi
if [ ! -f /usr/sbin/iptables ];then

Loading…
Cancel
Save