check the current firewall status in rhel code example
Example 1: RHEL check the firewall status
[root@rhel7 ~]# systemctl status firewalld
Example 2: RHEL check the firewall status
[root@rhel7 ~]# systemctl enable firewalld
[root@rhel7 ~]# systemctl status firewalld
[root@rhel7 ~]# systemctl enable firewalld