In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces linux how to check whether the firewall is open and clear firewall rules, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
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.
Check whether iptables is installed
1. Firewall iptables under Linux is generally a component of system integration. Check whether it can be installed.
Query through rpm-qa
2. If the groupware is not installed, it can be installed through yum install iptables (must be connected to the network)
Second, check whether the linux firewall is enabled
1. If iptables has been installed, 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.
2. List iptables rules
If you want to view specific iptables rules, you can also list the rules by typing iptables-L
3. 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)
4. If prompted without any information, the iptables service (process) is not enabled on the current system.
Turn off iptables Firewall / delete rules
1. Iptables starts automatically when booting
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.
2. Shutdown step: first stop the chkconfig iptables off boot project, then remove it, and finally check it again.
3. 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)
4. Delete an iptables rule, select iptables-d xxxx, and start the iptables service as shown in the figure
Note:
Note the iptables service, and there is also an ip6tables for the firewall under ipv6
Thank you for reading this article carefully. I hope the article "linux how to check whether the firewall is turned on and cleared" shared by the editor will be helpful to everyone. At the same time, I also hope you can support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
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: 230
*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.