• centosblog_icon_b_64

iptables – restorecon: command not found

We have found reports of some people seeing a “restorecon: command not found” when attempting to start or save iptable rules.


iptables: Saving firewall rules to /etc/sysconfig/iptables: /etc/init.d/iptables: line 274: restorecon: command not found

We have found this error on some CentOS 6 installations (virtualized.)

This error is due to a missing package “policycoreutils” – in order to fix this problem, you simply need to install it with yum:

yum install policycoreutils

Once this has been installed, you should be able to save and/or restart iptables on your CentOS 6 server.

Scan to Donate Bitcoin
Like this? Donate Bitcoin to at:
Bitcoin 14M4a7UHEX61VoHkyjj4dxbUBNGGz3hmhM
Share This Post

About Author: Curtis K

Hi! My name is Curtis, and I am the creator of CentOS Blog. Please feel free to comment any suggestions, feedback or questions on my posts!