Home > Article > Operation and Maintenance > How to permanently turn off the firewall in linux
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".
#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
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:
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!