firewall add port

1. Add in /etc/sysconfig/iptables
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 8080 -j ACCEPT

2. Restart iptables
[root@localhost ~]# /etc/init.d/iptables restart

3. Look at the status
[root@localhost ~]# /etc/init.d/iptables status

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326526469&siteId=291194637