Lorem ipsum dolor sit amet, consectetur adipiscing elit. Test link

Search Suggest

Bài đăng

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

Đăng nhận xét