Get the App
SLTechnology News&Howtos  ›  Development  › 

How to turn off the firewall in Linux system

Shulou Source: shulou.com Published: 2022-06-01 22:38:40 10月01日 Update

In this issue, the editor will bring you about how the Linux system turns off the firewall. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.

How does the Linux system turn off the firewall? What is the command for the Linux system to turn off the firewall?

1. Turn off the firewall:

Systemctl stop firewalld.service

Turn on the firewall:

Systemctl start firewalld.service

Turn it off and boot:

Systemctl disable firewalld.service

Turn on the boot boot:

Systemctl enable firewalld.service

There are two ways to centos6:

I. service mode

View firewall status:

[root@centos6 ~] # service iptables status

Iptables: the firewall is not running. Turn on the firewall:

Turn off the firewall:

[root@centos6] # service iptables stop II, iptables mode

Enter the init.d directory first, and use the following command:

[root@centos6 ~] # cd / etc/init.d/

[root@centos6 init.d] # and then

View firewall status:

[root@centos6 init.d] # / etc/init.d/iptables status temporarily disable the firewall:

[root@centos6 init.d] # / etc/init.d/iptables stop

Restart iptables:

[root@centos6 init.d] # / etc/init.d/iptables restart

The above is the Linux system that Xiaobian shared with you how to turn off the firewall. If you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.

Tags: Firewalls fire prevention systems methods content commands status analysis professional small and medium rich in content that is articles more catalogs knowledge articles industry perspective information Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia vpn MySQL Huawei Redmi