REPLACE FIREWALLD WITH IPTABLES IN CENTOS

 




If u want switch to iptables from firewalld in centos, run the following set of commands

$ systemctl stop firewalld

$ systemctl disable firewalld

$ yum -y install iptables-services

$ systemctl start iptables

$ systemctl start ip6tables

$ systemctl enable iptables

$ systemctl enable ip6tables

Note: Use “sudo” if you are not a root user.