Move from FirewallD to iptables on CentOS 7 Print

  • 1

Below we'll give you a list of commands to convert your CentOS 7 server from using FirewallD to iptables. Many users know and prefer iptables commands over FirewallD, and as they are based upon the same backend system there isn't any performance difference.

sudo yum install iptables-services -y
sudo systemctl stop firewalld && sudo systemctl start iptables && sudo systemctl start ip6tables
sudo systemctl disable firewalld
sudo systemctl mask firewalld
sudo systemctl enable iptables
sudo systemctl enable ip6tables

Was this answer helpful?

« Back