In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
The editor will share with you how to turn on and off ubuntu Firewall. I hope you will get something after reading this article. Let's discuss it together.
Preface
Firewall (Firewall), also known as protective wall. It is a network security system located between the internal network and the external network. An information security protection system that allows or restricts the passage of transmitted data in accordance with specific rules.
The importance of firewalls to our network security is self-evident, but in the actual development process, we may
Need to turn on and off the firewall, so how to manage the firewall in Ubuntu. Let's take a look at it.
Installation method
Sudo apt-get install ufw
Of course, there is a graphical interface (relatively crude). Search gufw in Synaptic.
Usage
1 enable
Sudo ufw enable sudo ufw default deny
Function: turn on the firewall and turn off all external access to the machine at the same time as the system starts (local access is external normal).
2 off
Sudo ufw disable
2 View firewall status
Sudo ufw status
3 enable / disable the corresponding port or service example
Sudo ufw allow 80 allows external access to port 80
Sudo ufw delete allow 80 prohibits external access to port 80
Sudo ufw allow from 192.168.1.1 allows this IP to access all native ports
Sudo ufw deny smtp prohibits external access to smtp services
Sudo ufw delete allow smtp deletes one of the rules established above
Sudo ufw deny proto tcp from 10.0.0.0Charger 8 to 192.168.0.1 port 22 to deny all TCP traffic from 10.0.0.0Charger 8 to port 22 of the 192.168.0.1 address
All RFC1918 networks (Lans / WLANs) can be allowed to access this host (/ 8, 16 and 12 is a network rating):
Sudo ufw allow from 10.0.0.0/8sudo ufw allow from 172.16.0.0/12sudo ufw allow from 192.168.0.0/16
Recommended settin
Sudo apt-get install ufw sudo ufw enable sudo ufw default deny
This setting is already very secure, and if you have special needs, you can use sudo ufw allow to turn on the service.
After reading this article, I believe you have a certain understanding of "how to turn on and off ubuntu Firewall". If you want to know more about it, you are 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.