iptables: Applying firewall rules: iptables-restore: line 17 failed
Post a reply
If an error like iptables: Applying firewall rules: iptables-restore: line 17 failed appears when the firewall is started, there should be a problem with the configuration file.
Please save a configuration file first, or record the firewall rules. Then use the command to initialize the configuration file:
# iptables-save > /etc/sysconfig/iptables
This general firewall configuration file will appear in the initial state.
Then restart the firewall and execute the add rule command:
#iptables -I INPUT -p tcp –dport 22 -j ACCEPT
#iptables -I INPUT -p tcp –dport 80 -j ACCEPT
and so on. Again:
# iptables-save > /etc/sysconfig/iptables
The newly added rules are also written into the configuration file. Restart to see. Well you can get up.
iptables: Applying firewall rules: iptables-restore: line 17 failed
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=326930187&siteId=291194637
Recommended
Ranking