By default, use firewalld to manage iptables # yum-yinstalliptabels to install iptables # yum-yinstalliptables-service to install ipta
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