iptables is plain old good. How to enable it after I disable firewalld?
iptables是老旧的好东西。 禁用firewalld后如何启用它?
First, install the iptables-services package as root:
首先,以root用户身份安装iptables-services 软件包 :
# yum install iptables-services
Then, start iptables service as root:
然后,以root用户身份启动 iptables服务:
# touch /etc/sysconfig/iptables
# touch /etc/sysconfig/ip6tables
# systemctl start iptables
# systemctl start ip6tables
# systemctl enable iptables
# systemctl enable ip6tables
Answered by Eric Z Ma.
埃里克·马(Eric Z Ma)回答。
翻译自: https://www.systutorials.com/how-to-enable-iptables-on-centos-7-fedora-20/