Firewalld manages network filtering on supported Linux systems. Its current running state and whether it starts automatically are separate settings.
Check the current state
Run:
sudo systemctl status firewalld
sudo systemctl is-enabled firewalldCheck the text status rather than the colour or shape of an icon. An inactive service or disabled startup setting may produce a non-zero exit status.
Start or stop the service
To start it:
sudo systemctl start firewalldTo stop it temporarily:
sudo systemctl stop firewalldBefore either action, confirm console access and how the intended firewall policy will protect the server. Starting a restrictive configuration can block remote access; stopping it can expose services.
Disable automatic startup
If an approved replacement firewall is ready, stop firewalld and disable normal startup:
sudo systemctl disable --now firewalldDisabling is not the same as masking. Another service or activation mechanism may still start a disabled service. When a replacement’s instructions require preventing activation entirely, an administrator can use:
sudo systemctl mask --now firewalldRestore firewalld
After checking its saved rules and resolving any competing firewall manager, restore it with:
sudo systemctl unmask firewalld
sudo systemctl enable --now firewalldVerify required services and a new SSH connection before closing the existing session. Do not disable the firewall as a general fix for connection errors.