How to check the firewalld version when it is in the stopped/disabled state?

Solution Verified - Updated -

Issue

  • firewall-cmd --version does not return the version when firewalld is disabled.

  • firewall-cmd --version gives the below output when firewalld is in the stopped state.

[root@rhel8 ~]$ firewall-cmd --version
FirewallD is not running

Environment

  • Red Hat Enterprise Linux 7
  • Red Hat Enterprise Linux 8

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