How to Stop and Disable Firewalld on RHEL 7/8/9: Easy step-by-step guide

Stop and disable firewalld

In this article, I have described a step-by-step guide on how to stop and disable Firewalld on RHEL 7/8/9.

1.Check the Status of FirewallD:

[root@localhost ~]# systemctl status firewalld.service

● firewalld.service - firewalld - dynamic firewall daemon
   Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)
   Active: active (running) since Sat 2023-03-25 16:09:14 IST; 1h 49min ago	>----> 
     Docs: man:firewalld(1)
 Main PID: 718 (firewalld)
   CGroup: /system.slice/firewalld.service
           └─718 /usr/bin/python -Es /usr/sbin/firewalld --nofork --nopid

Mar 25 16:09:12 localhost systemd[1]: Starting firewalld - dynamic firewall daemon...
Mar 25 16:09:14 localhost systemd[1]: Started firewalld - dynamic firewall daemon.

2. Stop the FirewallD Service:

[root@localhost ~]# systemctl stop firewalld.service

3. Disable the FirewallD Service:

[root@localhost ~]# systemctl disable firewalld.service

Removed symlink /etc/systemd/system/multi-user.target.wants/firewalld.service.
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.

4. Reboot the machine:

[root@localhost ~]# init 6

5. Verify firewalld status:

[root@localhost ~]# systemctl status firewalld.service

● firewalld.service - firewalld - dynamic firewall daemon
   Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled; vendor preset: enabled)
   Active: inactive (dead)
     Docs: man:firewalld(1)
[root@localhost ~]#

Hope you got the details on how to Stop and Disable Firewalld on RHEL 7/8/9.If you want to disable SELinux on RHEL then follow my article Disable SELinux on RHEL.

For more information on Firewalld, you can visit the official Redhat site.

Leave a Reply