Save forwarding rules, when found to be invalid service iptables save, and error
[root @ localhost bin] # Service iptables the Save at The Service the Command the Supports only Basic LSB Actions (Start, STOP, restart, the try-restart, reload, Force-reload, Status ). the For OTHER Actions, Please use the try to systemctl. , the cause of this problem is the iptables service is not installed
Turn off the firewall
#停止firewall
systemctl stop firewalld.service
# Disable firewall boot
systemctl disable firewalld.service
# Review the default firewall status (display notrunning closed, the display running after opening)
Firewall-cmd --state
Install iptables service
after the installation is complete iptables, using the service iptables save method would be no problem
# Install or update service
yum install iptables-services
#启用iptables
systemctl enable iptables
# Start iptables
systemctl Start iptables open iptables
[root@localhost ~]# service iptables save
iptables: Saving firewall rules to /etc/sysconfig/iptables:[ OK ]
----------------
Disclaimer: This article is CSDN blogger "Hurricane yellowcong 'original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source and link this statement.
Original link: https: //blog.csdn.net/yelllowcong/article/details/78229862