How to turn off the firewall in linux?

青灯夜游
Release: 2019-06-12 17:44:49
Original
42251 people have browsed it

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?

How to turn off the firewall in Linux:

1. Use the chkconfig command to make it permanent

Turn off the firewall :

chkconfig iptables off
Copy after login

Turn on the firewall:

chkconfig iptables on
Copy after login

2. Use the service command; it will take effect immediately and will be invalid after restarting

Turn off the firewall:

service iptables stop
Copy after login

Turn on the firewall:

service iptables start
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template