How to disable Firewalld in CentOS 7 and use iptables

You can disable Firewalld service in CnetOS 7 if you do not have command on this and instead of this you can use old firewall which is iptables in CentOS 7. Below the the steps to the same.

Steps to disable Firewalld in CentOS 7
systemctl disable firewalld
systemctl mask firewalld
systemctl stop firewalld
systemctl status firewalld

Install iptables-services in CnetOS 7
yum install iptables-services -y
systemctl enable iptables
systemctl start iptables
systemctl status iptables

Flush Iptables existing rule 
iptables -F
service iptables save
systemctl restart iptables
Share on Google Plus

About Penguin Technology

I am a passionate cloud and DevOps professional specializing in Linux and open-source solutions. Through this blog, I share my knowledge and experience with the community, offering tips and insights on cloud technologies and DevOps practices.
    Blogger Comment

0 comments:

Post a Comment