firewall status check in linux 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