How to check the firewalld version when it is in the stopped/disabled state?
Issue
-
firewall-cmd --versiondoes not return the version whenfirewalldisdisabled. -
firewall-cmd --versiongives the below output whenfirewalldis in thestoppedstate.
[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.