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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content