Thursday, 15 November 2012

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

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

root@server1:~# ls -l /sbin/ | grep restore
lrwxrwxrwx 1 root root     14 May 23 17:52 iptables-restore -> iptables-multi

Means policycoreutils not Installed
So Install policycoreutils to get restorecon save Iptables


root@server1:~# yum install policycoreutils
root@server1:~# ls -l /sbin/ | grep restore

lrwxrwxrwx 1 root root     14 May 23 17:52 iptables-restore -> iptables-multi
lrwxrwxrwx 1 root root      8 Nov 15 17:00 restorecon -> setfiles



Share This!



1 comment:

  1. Can you please tell me what the policycoreutils does with the system?
    Do i need to be aware of other changes, if i install this package?

    ReplyDelete

Here We Write The Problems we face at different situations and Solutions to those problems.