Update rhel.sh

This commit is contained in:
midoks
2023-07-15 20:34:46 +08:00
parent 5c8527a5de
commit ae7afc2eb5
+1
View File
@@ -108,6 +108,7 @@ if [ -f /usr/sbin/firewalld ];then
# look
# firewall-cmd --list-all
# systemctl status firewalld
# firewall-cmd --zone=public --remove-port=80/tcp --permanent
if [ "$SSH_PORT" != "" ];then
firewall-cmd --permanent --zone=public --add-port=${SSH_PORT}/tcp