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