Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The method of shutting down Firewall by linux

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report