Disable the iptables firewall in centos Linux (iptables in Linux)

Source: Internet
Author: User

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.


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.