How to start/stop and permanently disable Firewalld

January 10, 2025 / How-to Guide

Firewalld is a vital tool for managing firewall configurations on Linux systems. This guide provides quick steps to check its status, start or stop it temporarily, and disable it permanently for effective server management.
Follow the steps:

  1. Log in to your server via SSH.
  2. Check Firewalld status by running:
    systemctl status firewalld.service

    If Firewalld is running, you will see a green circle (?) next to firewalld.service, and the status will show Active: active (running).
    Example output:

    ? firewalld.service - firewalld dynamic firewall daemon  
    
    Loaded: loaded (/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)  
    
    Active: active (running) since Tue 2020-06-23 12:38:49 EDT; 1h 16min ago  
    
    Main PID: 29194 (firewalld)  
    
    CGroup: /system.slice/firewalld.service  
    
    L29194 /usr/bin/python3 -Es /usr/sbin/firewalld --nofork --nopid
  3. Stop Firewalld for the current session:
    systemctl stop firewalld.service
  4. Verify Firewalld is inactive by checking its status again:
    systemctl status firewalld.service

    If stopped, a white circle (?) will appear, and the status will show Active: inactive (dead).

  5. Start Firewalld:
    systemctl start firewalld.service

Disabling Firewalld Permanently

When Firewalld is stopped using the systemctl stop command, it becomes inactive only until the next reboot. To disable Firewalld permanently:

  1. Check Firewalld status:
    systemctl status firewalld.service
  2. Disable Firewalld from starting at boot:
    systemctl disable firewalld
  3. Confirm Firewalld is disabled:
    systemctl status firewalld.service

    The status should now indicate that Firewalld will not start at boot.

  4. To re-enable Firewalld at boot if required:
    systemctl enable firewalld

This ensures Firewalld is managed effectively based on your requirements.

This way, you can Start/Stop and Permanently Disable Firewalld. Hope you liked our article. If you encounter any issues, feel free to contact our support staff.

Spread the love