In CentOS 7, the iptables service suspends startup and saves backups.
By default, firewalld is used to manage iptables.
# Yum-y install iptabels install iptables
# Yum-y install iptables-service install iptables service
Install both at the same time to enable the firewalld service.
# Systemctl enable iptables Add the iptables service to start upon startup,
And automatically import rules from the/etc/syaconfig/iptables File
Chkconfig iptables = systemctl enable iptables all add the iptables service to the startup Service
# Systemctl disable iptables disable the iptables service
# Systemctl stop iptables service suspension
# Systemctl enable iptables remove static iptables
# Systemctl start iptables enable the Service
# Service iptables save because the iptables service has been added, this command can be run. If you do not add a service before, you cannot run it.
# Service iptables status view iptables service status