In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Editor to share with you the methods of linux to turn off the firewall, I hope you will gain a lot after reading this article, let's discuss it together!
Linux Firewall (Iptables) is an IP packet filtering system integrated by the Linux kernel. If the Linux system connects to the Internet or LAN, the server or the proxy server that connects LAN and the Internet, the system is conducive to better control of IP packet filtering and firewall configuration on the Linux. The following article will introduce to you how to turn off and turn on the linux firewall. I hope it will be helpful to you.
Method 1: chkconfig command
The chkconfig command can permanently turn off the firewall and take effect after a restart.
Turn off the firewall:
Chkconfig iptables off
Turn on the firewall:
Chkconfig iptables on
Method 2. Service command
The service command can only temporarily shut down the firewall, which takes effect immediately and expires after restart.
Turn off the firewall:
Service iptables stop
Turn on the firewall:
Service iptables start
It is important to note that you can use the above command to enable and close other services under Linux.
When Linux Firewall (Iptables) is turned on, make the following settings, open ports 25 and 110, modify the / etc/sysconfig/iptables file, and add the following:
-A RH-Firewall-1-INPUT-m state-- state NEW-p tcp-m tcp-- dport 25-- syn-j ACCEPT-A RH-Firewall-1-INPUT-m state-- state NEW-p tcp-m tcp-- dport 110-- syn-j ACCEPT after reading this article, I believe you have some knowledge of linux firewall shutdown methods, want to know more related knowledge, welcome to follow the industry information channel, thank you for reading!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.