Disable the iptables firewall in centos Linux (iptables in Linux)
On a linux server, the firewall is an iptables component. When some software is installed, the iptables firewall will block some necessary connections.
View iptables status: service iptables status
Iptables automatic start upon startup: Enable: chkconfig iptables on Disable: chkconfig iptables offiptables disable service: Enable: service iptables start Disable: service iptables stop
Restart the Firewall service: service iptables restart
Temporarily disable Firewall
First, temporarily disable the firewall. Before this operation, we need to enter the root permission to perform the following operations. If you do not use the root permission, an error will be prompted.
The firewall must be disabled with the root permission.
If not, enter the su command First, press enter, enter the root password, log on to the interface under the root permission, and enter service iptables stop
Before closing the firewall, we need to check whether the firewall is enabled for related operations. The command is similar to the command to close the firewall, except that the stop command is changed to the status: service iptables status.
Permanently disable the Firewall
The above operations only temporarily shut down the firewall. When your computer restarts, it will be turned on again. If you want to permanently shut down the firewall, you can try the following methods.
Open the terminal and enter chkconfig iptables off under the root permission to permanently disable the firewall. Of course, you need to restart the firewall to make it take effect.