Home>Article>Operation and Maintenance> How to turn off the firewall in linux?
The so-called firewall refers to a protective barrier composed of software and hardware devices and constructed on the interface between the internal network and the external network, and between the private network and the public network. It is a method of obtaining security. To put it figuratively, it is a combination of computer hardware and software that establishes a secure gateway between the Internet and the Intranet. So how to turn off the firewall under linux? This article will introduce it below.
How to turn off the firewall in Linux:
1. Use the chkconfig command to make it permanent
Turn off the firewall :
chkconfig iptables off
Turn on the firewall:
chkconfig iptables on
2. Use the service command; it will take effect immediately and will be invalid after restarting
Turn off the firewall:
service iptables stop
Turn on the firewall:
service iptables start
It should be noted that the above commands can be used to open and close other services under Linux
The above is the detailed content of How to turn off the firewall in linux?. For more information, please follow other related articles on the PHP Chinese website!