How to turn off the system firewall in CentOS 7
View firewall status command.
systemctl status firewalld.service
After execution, you will see "active (running)" in green, indicating that the firewall is on.
Turn off the firewall command.
systemctl stop firewalld.service
After shutdown, use systemctl status firewalld.service to check the firewall status. You can see the word "disavtive" (dead), which means the firewall is shutdown.
In the previous method, the firewall is automatically turned on once the operating system is restarted, how do I set it up to turn off the firewall permanently? Enter the following command to disable the firewall on boot
systemctl disable firewalld.service