Get the App
SLTechnology News&Howtos  ›  Servers  › 

The method of shutting down Firewall by linux

Shulou Source: shulou.com Published: 2022-06-03 03:34:22 09月22日 Update

Firewall technology is a technology that helps computer networks build a relatively isolated protection barrier between their internal and external networks by organically combining all kinds of software and hardware equipment used for security management and screening, in order to protect the security of user data and information.

The main function of firewall technology is to find and deal with the security risks and data transmission problems that may exist in the operation of computer network in time, including isolation and protection. At the same time, various operations in computer network security can be recorded and detected to ensure the security of computer network operation and the integrity of user data and information. Provide users with a better and more secure computer network experience.

Let's take a look at how linux closes the protective wall:

1. Permanent validity

Enable: chkconfig iptables on

Turn off: chkconfig iptables off

2. Effective immediately

Enable: service iptables start

Turn off: service iptables stop

3. Open some ports

Vim / etc/sysconfig/iptables

Add the relevant ports you want to open

-An INPUT-m state-- state NEW-m tcp-p tcp-- dport 6379-j ACCEPT

-An INPUT-m state-- state NEW-m tcp-p tcp-- dport 8080-j ACCEPT

-An INPUT-m state-- state NEW-m tcp-p tcp-- dport 8081-j ACCEPT

-An INPUT-m state-- state NEW-m tcp-p tcp-- dport 8082-j ACCEPT

-An INPUT-m state-- state NEW-m tcp-p tcp-- dport 3306-j ACCEPT

Service iptables restart

4. Check the fire prevention status

Systemctl status firewalld

Service iptables status

These are the details of how linux shuts down the firewall, please pay attention to other related articles!

Tags: Security fire prevention computer network firewall technology user protection information security user data port data processing operation method effective together between content function Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB NVidia Docker macOS MySQL