1) add rule for 3000 ports through firewall-cmd command
[root@localhost puppet-enterprise-3.8.0-el-7-x86_64]# firewall-cmd --zone=public --add-port=3000/tcp --permanent
success
[root@localhost puppet-enterprise-3.8.0-el-7-x86_64]#
2) Reload the firewall rules
[root@localhost puppet-enterprise-3.8.0-el-7-x86_64]# firewall-cmd --reload
success
[root@localhost puppet-enterprise-3.8.0-el-7-x86_64]#
3) verify the port status
[root@localhost puppet-enterprise-3.8.0-el-7-x86_64]# iptables-save | grep -i 3000
-A IN_public_allow -p tcp -m tcp --dport 3000 -m conntrack --ctstate NEW -j ACCEPT
[root@localhost puppet-enterprise-3.8.0-el-7-x86_64]#
[root@localhost puppet-enterprise-3.8.0-el-7-x86_64]# firewall-cmd --zone=public --add-port=3000/tcp --permanent
success
[root@localhost puppet-enterprise-3.8.0-el-7-x86_64]#
2) Reload the firewall rules
[root@localhost puppet-enterprise-3.8.0-el-7-x86_64]# firewall-cmd --reload
success
[root@localhost puppet-enterprise-3.8.0-el-7-x86_64]#
3) verify the port status
[root@localhost puppet-enterprise-3.8.0-el-7-x86_64]# iptables-save | grep -i 3000
-A IN_public_allow -p tcp -m tcp --dport 3000 -m conntrack --ctstate NEW -j ACCEPT
[root@localhost puppet-enterprise-3.8.0-el-7-x86_64]#
No comments:
Post a Comment