Home  >  Article  >  Operation and Maintenance  >  Solution to ptables-restore: line 13 failed [failed] when linux firewall opens port

Solution to ptables-restore: line 13 failed [failed] when linux firewall opens port

黄舟
黄舟Original
2017-06-05 10:04:041995browse

linuxOpen port 8080

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

Then service iptables restart, the following problem is reported

Solution:

Cause of the problem: Not familiar with Linux firewall related configuration;


The above is the detailed content of Solution to ptables-restore: line 13 failed [failed] when linux firewall opens port. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn