While working towards improving my Linux skills I found it useful to show how to temporarily (when needed) disable and stop the FirewallD in CentOS 7. As you know FirewallD
is a complete firewall solution that dynamically manages the level of trust within network connections and interfaces. It allows full control over what traffic is allowed or not to pass and from the system you administer. From CentOS 7 and up, FirewallD is the replacement of the well-known iptables and the default firewall management tool. Today, I will show you how to disable the FirewallD on CentOS 7 machines when we talk for example for testing scenarios. In production, it is advisable to adjust the settings accordingly to reflect your environment and secure it properly. This blog post is provided "as is" and for testing only if you do not want to play with the configurations too much while evaluating a product for example QuadStor VTL.
Before attempting to disable or reconfigure the firewalld have in mind that you need a user with the appropriate sudo privileges.
How to verify the Firewall Status:
Open the Terminal and run the "sudo firewall-cmd --state" command. This will list the status. Screenshot below:
"sudo firewall-cmd --state"
How to disable the FirewallD
In order to temporarily stop the FirewallD service please use this command: "sudo systemctl stop firewalld" and how to disable it when booting the machine up: "sudo systemctl disable firewalld":
"sudo systemctl stop firewalld" and "sudo systemctl disable firewalld"
Usually there are other services that may try to start the firewall, so better masking it like: "sudo systemctl mask --now firewalld", screenshot attached as well ;)
"sudo systemctl mask --now firewalld"
I believe you liked the post and the new possibilities that comes with CentOS 7. Feel free to share the post in your favorite social media. Thank you for reading and sharing it.