How to disable/stop/enable firewall in Red Hat Enterprise Linux 7?

Solution Verified - Updated -

Issue

  • Why is the below error observed when the firewall-cmd --state command is executed
-bash: firewall: command not found
  • How to disable firewall in RHEL7 via command line ?
  • Is there a quick short command to check whether the firewall is enabled or disabled?

Environment

  • Red Hat Enterprise Linux 7
  • firewalld

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.