For the UFW firewall of Ubuntu system, many people still don't know how to set it up. They only know how to turn it on and off. The following is a brief introduction to Ubuntu's simple way to set up UFW firewall. Friends who don't set up Ubuntu firewall can learn.
Installation
sudo apt-get install ufw
Of course, this is a graphical interface (relatively simple), Synaptic again in search gufw Try ……
How to use
1. Enable
sudo ufw enable
sudo ufw default deny
Function: On The firewall is started with the system and all external access to the machine is turned off (the local access is normal).
2, close
sudo ufw disable
3, check the firewall status
sudo ufw status
4, open /disable the corresponding Port or service example
sudo ufw allow 80 Allow external access to port 80
sudo ufw delete allow 80 Disable external access to port 80
sudo ufw allow from 192.168.1.1 Allow this IP access to all native ports
sudo ufw deny smtp prohibit external access to smtp services
sudo ufw delete allow smtp delete one of the rules established above
ufw deny proto tcp From 10.0.0.0/8 to 192.168.0.1 port To reject all traffic from TCP 10.0.0.0/8 to port 22 address 192.168.0.1
Allow all RFC1918 networks (LAN/WLAN) Access to this host (/8, /16, /12 is a network rating):
sudo ufw allow from 10.0.0.0/8
sudo ufw allow from 172.16.0.0/12< Br>
sudo ufw allow from 192.168.0.0/16
Recommended settings
sudo apt-get Install ufw
sudo ufw enable
sudo ufw default deny
This setting is very safe. If you have special needs, you can use sudo ufw allow to start the service.
The above is the introduction of Ubuntu UFW firewall method. This article only introduces the simple setting of UFW firewall, but it is basically enough for general users.
mono is a cross-platform ·NET runtime environment developed by Novell. It ca
I chatted with friends before, knowing that I can use PXE to install virtual machin
Many users who like to use the chmod command are still not very clear about the mea
Through the introduction, we know that VSFTP is an FTP server software. When you start the VSFTP ser
How to edit the start menu under Ubuntu?
Detailed examples of Linux dynamic library generation
Linux system smbclient command usage
Linux upgrade Mysql error conflict with file how to do?
What is the use of the pwd command in Linux?
What should I do if the Java process under Linux system disappears without cause?
How to install and upgrade VMware Tools in Fedora
How to install and set up Samba service
What should I do if the Linux boot file rc.local cannot be executed?
How to use the write verification function of SureSCSI 212 disk array
Microsoft re-launched Win7 patch KB3097877, solved the mail program and login problem
Practical DOS commands let you know what is a simple "hacking"
Win7 computer does not show how to minimize the window
Microsoft: Win10 Preview 10122 does not have a slow update push
What if WinXP fails to create a video preview?
Win8 Metro Edition IE webpage can't open how to solve
Win10 use bat command to travel safe mode method
Win9 Technology Preview Release will have no live video
Thirty-three coups to deal with malicious modification IE phenomenon