In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-11 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
In this issue, the editor will bring you about how to check the iptables status in the Linux system. 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.
The firewall of linux is composed of netfilter and iptables. Iptables is a tool to isolate the host and the network. It detects and processes data packets through self-set rules and processing actions.
1 make sure that iptables is installed and whether the iptables service is running
You can use service iptables status as shown in the figure (firewall rules will also be called if there are other components such as fail2ban), followed by a rule chain.
two
List iptables rules
If you want to view specific iptables rules, you can also list the rules by typing iptables-L
three
Judge by service
In addition to the methods described above, you can also judge by stopping the iptables service (as shown in the figure to determine that xxx indicates that iptables is currently enabled)
four
If prompted without any information, the iptables service (process) is not enabled on the current system
END
Turn off iptables Firewall / Delete rules
Iptables booting starts automatically
If you want to shut down the iptables service, you also need to check to see if there are iptables services in the chkconfig list.
Shutdown step: first stop the chkconfig iptables off boot project, then remove it, and finally check it again
Clear iptables rules
If you only need to delete iptables firewall rules, you can clear the list rules through iptables-F (iptables- L lists the current iptables rules)
Delete an iptables rule, select iptables-d xxxx, and start the iptables service as shown in the figure.
At present, centos7 has adopted iptables instead of firewall
What is Linux system Linux is a free-to-use and free-spread UNIX-like operating system, is a POSIX-based multi-user, multi-task, multi-threaded and multi-CPU operating system, using Linux can run major Unix tools, applications and network protocols.
This is how to check the iptables status in the Linux system shared by the editor. 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.
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.