Amazon Ad

Featured Post

Sunday, December 16, 2018

Check the status and disable the firewall in CentOS/RHEL v7.x

To check if the firewall is disabled, run iptables --list - the output should show all chains with empty lists - exactly like the following output:


[root@nvme80 20:13:40 eyal]# iptables --list
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination


Check if the firewalld service is running:

systemctl status firewalld


Disable the firewalld service:

systemctl stop firewalld
systemctl disable firewalld

No comments: