Tag Archives: disable firewalld

Disable FirewallD and enable/import IPTables rules

1) Clear the default firewall rules in FirewallD.

#iptables -F
#iptables -t nat -F

2) Disable firewalld.

#systemctl stop firewalld
#systemctl disable firewalld
#systemctl mask firewalld

3) Install iptables-services.

#yum install iptables-services
#systemctl start iptables
#systemctl enable iptables

4)Clear again the iptables rules.

#iptables -F
#iptables -t nat -F

5) Import iptable rules and saved it or create a new iptable rules.

#iptables-restore < iptables
#service iptables save
#service iptables stop
#service iptables start