You Asked: What Is the Command to Disable Firewall in Linux?
Contents

Which command can be used to disable firewall in Linux?

ufw – Used by Ubuntu and Debian based system to manage the firewall. firewalld – Used by RHEL, CentOS and clones. It is a dynamic solution to manage the firewall.

How enable or disable firewall in Linux?

Disable Firewall

  1. First, stop the FirewallD service with: sudo systemctl stop firewalld.
  2. Disable the FirewallD service to start automatically on system boot: sudo systemctl disable firewalld. …
  3. Mask the FirewallD service which will prevent the firewall from being started by other services: sudo systemctl mask –now firewalld.
Maya Lin-Takahashi

Maya Lin-Takahashi

Consumer Tech & Gadget Reviewer

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.

Share this article
Twitter Facebook Pinterest