In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article shows you how to check the status of iptables in Linux. The content is concise and easy to understand, which will definitely brighten your eyes. I hope you can get something through the detailed introduction of this article.
When iptables, the default firewall in Linux system is the firewall service component under Linux, which can realize NAT conversion and can be used as Internet proxy.
Check to see if iptables is installed
Firewall iptables under Linux is generally a component of system integration. Check whether it can be installed.
Query through rpm-qa
If the groupware is not installed, it can be installed through yum install iptables (must be networked)
Check whether the linux firewall is turned on
Query whether the iptables service is running if iptables is already installed
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.
List iptables rules
If you want to view specific iptables rules, you can also list the rules by typing iptables-L
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)
If prompted without any information, the iptables service (process) is not enabled on the current system
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.
The above is how to check the status of iptables in Linux. Have you learned any knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, 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.