/ etc / init.d / iptables: line 268: restorecon: command not found

时间:2023-03-09 22:09:08
/ etc / init.d / iptables: line 268: restorecon: command not found

When I tried to restart iptables from vps , I got the following error.

Iptables encountered such a problem to save the iptables rules:

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

Fix :

yum install policycoreutils