Raymii.org
אֶשָּׂא עֵינַי אֶל־הֶהָרִים מֵאַיִן יָבֹא עֶזְרִֽי׃Home | About | All pages | Cluster Status | RSS Feed
Fix CentOS IPTables rule saving (iptables: Saving firewall rules to /etc/sysconfig/iptables: /etc/init.d/iptables: line 274: restorecon: command not found)
Published: 23-01-2013 | Author: Remy van Elst | Text only version of this article
❗ This post is over twelve years old. It may no longer be up to date. Opinions may have changed.
On a default CentOS installation, when trying to execute the service iptables
save command you can get an error like iptables: Saving firewall rules to
/etc/sysconfig/iptables: /etc/init.d/iptables: line 274: restorecon: command not
found.
This is fixed easily by installing the policycoreutils package, which is
available in the default CentOS repositories:
yum install policycoreutils
After installation the service iptables save command works without errors.