Saturday, 30 November 2019

How to Stop and Disable Firewall on CentOS 8




Firewall is a free and open source tool that provides security features to control inbound and outbound traffic. It is enabled by default in CentOS 8 Linux machines, Services and ports can be allow and block by configuring firewall service.

This article describes How to Stop and Disable Firewall on CentOS 8.

[root@linuxcnf ~]# systemctl status firewalld
firewalld.service - firewalld - dynamic firewall daemon
   Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)
   Active: active (running) since Tue 2019-11-26 20:49:32 IST; 30min ago
…………………….
[root@linuxcnf ~]#

[root@linuxcnf ~]# firewall-cmd --stat
running
[root@linuxcnf ~]#

Step 1. Stop Firewall Service: Run the following command to stop firewalld daemon:

[root@linuxcnf ~]# systemctl stop firewalld
[root@linuxcnf ~]#

Step 2. Disable Firewall Service: Run the following command to disable the firewalld service on across reboot the machine:

[root@linuxcnf ~]# systemctl disable firewalld
Removed /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
[root@linuxcnf ~]#

Step 3. Verify the Firewall Service: Run the following commands to check the firewalld service status:

[root@linuxcnf ~]# firewall-cmd --stat
not running
[root@linuxcnf ~]#

[root@linuxcnf ~]# systemctl status firewalld
firewalld.service - firewalld - dynamic firewall daemon
   Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)
   Active: inactive (dead)
……………………
[root@linuxcnf ~]#

[root@linuxcnf ~]# systemctl is-enabled firewalld
disabled
[root@linuxcnf ~]#

Done!!! Firewall Service is stopped and disabled successfully.

No comments:

Post a comment