Home  >  Article  >  Operation and Maintenance  >  How to permanently turn off the firewall in linux

How to permanently turn off the firewall in linux

WBOY
WBOYOriginal
2022-01-06 11:27:4336786browse

In Linux, you can use the chkconfig command to permanently turn off the firewall. This command is used to check and set various services of the system. When the setting parameter is "off", it means that the specified service will not start after restarting. Syntax for "chkconfig iptables off".

How to permanently turn off the firewall in linux

#The operating environment of this tutorial: linux7.3 system, Dell G3 computer.

How to permanently turn off the firewall in Linux

Linux chkconfig command is used to check and set various services of the system.

This is a program developed by Red Hat in compliance with GPL rules. It can query what system services the operating system will execute in each execution level, including various resident services.

Syntax

chkconfig [--add][--del][--list][系统服务] 或 chkconfig [--level <等级代号>][系统服务][on/off/reset]

Parameters:

  • --add Add the specified system service so that the chkconfig command can manage it and start it in the system at the same time Add relevant data to the narrative file.

  • --del Delete the specified system service, which is no longer managed by the chkconfig command, and delete related data in the system startup narrative file.

  • --level Specifies the execution level in which the reading system service should be turned on or off.

It takes effect permanently and will not be restored after restarting

  • Turn on: chkconfig iptables on

  • Close: chkconfig iptables off

The example is as follows:

How to permanently turn off the firewall in linux

Related recommendations: "Linux Video Tutorial"

The above is the detailed content of How to permanently turn off the firewall in linux. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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