Thursday, 17 September 2015

[Linux] Check Firewall on CentOS

Check firewall on CentOS

$ su -
Password:
# iptables -L
--OR--
# service iptables status
# service iptables stop
# service iptables start

Check firewall on CentOS 7

Disable Firewalld
To disable firewalld, run the following command as root:
# systemctl disable firewalld

Stop Firewalld
To stop firewalld, run the following command as root:
# systemctl stop firewalld

Check the Status of Firewalld
And finally, to check the status of firewalld, run the following command as root:
# systemctl status firewalld

No comments:

Post a Comment