mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 04:19:26 +08:00
Update rhel.sh
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user