2023年7月2日 星期日

centos7 open the firewall

 #network tools

sudo yum install telnet


# fireall stop

systemctl stop firewalld

systemctl status firewalld


#

# add the port

sudo firewall-cmd --zone=public --add-port=10050/tcp --permanent

sudo firewall-cmd --reload

sudo iptables-save | grep 10050



#ref

https://www.thegeekdiary.com/how-to-open-a-ports-in-centos-rhel-7/

沒有留言:

張貼留言