21.7.21

How to Stop and Disable Firewall on CentOS 8

How to Stop and Disable Firewall on CentOS 8

Most of the time this task is done by system admins but if you work in a small organization like me(God helps you) :) then you need to do many system admin tasks by yourself.


I am writing this blog because recently faced issue similar issue when we moved one of the 19C databases to Azure cloud. After setting up the database application team was not able to reach the database. I did some checking and found that the Linux admin missed disabling the firewall on the DB server. So I decided to stop the firewall on DB server by myself.  


Sharing steps with you all, so may help you on "How to Stop and to Disable Firewall on CentOS 8"


There may be many methods but I used firewall-cmd to stop the firewall.


Man Page DESCRIPTION for firewall-cmd

NAME

       firewall-cmd - firewalld command line client

SYNOPSIS
       firewall-cmd [OPTIONS...]

DESCRIPTION

       firewall-cmd is the command-line client of the firewall daemon. It provides an interface to manage the runtime and permanent configurations.

       The runtime configuration in firewalld is separated from the permanent configuration. This means that things can
       get changed in the runtime or permanent configuration


Note: You need the root user or any user to have SUDO to do this change.

Steps to top and Disable Firewall on CentOS 8:- 

1. Check the Status of the firewall using Firewalld

[root@TEST-D01 ~]# firewall-cmd --state
                                     running
   
2.  Stop firewall using Firewalld

[root@TEST-D01 ~]# systemctl stop firewalld

3. Check the Status of firewall using Firewalld

[root@TEST-D01 ~]# firewall-cmd --state
not running

Keep Sharing :)


No comments:

Post a Comment

Really Thanks