Following the previous article http://www.cnblogs.com/EasonJim/p/6851241.html explained the UFW firewall is no interface, below will introduce the GUI configuration function in GUFW.
Ubuntu simplifies the iptables firewall and can install UFW, which is the uncomplicated Firewall (simple firewall). UFW is the front-end of iptables, while GUFW is the front-end of UFW's graphical interface. GUFW claims to be the simplest firewall in the world.
Ubuntu does not turn on the firewall by default.
1. Installation
sudo apt-get install GUFW
2. Start
3. Operation
GUFW provides 3 firewall profiles by default: Office, Home (home), public.
For home computers, the most basic firewall configuration is to deny all incoming traffic, while allowing outgoing traffic. That is, other computers may not be able to access your computer and can access other computers, including the Internet. Just select the Home (home) profile and switch the status to ON.
To add your own firewall rules, you first need to switch the status to ON, click the Rules tab, and then click the Plus button.
You can then add rules for an application, such as 0 A.D, or for a network protocol, such as SSH.
If you need to prevent other computers from SSH to the Ubuntu 16.04 system, while the Ubuntu 16.04 system SSH login to other remote computers, then you need to set the policy to deny, direction to enter, category selection network, services, application selection ssh, Finally click the Add button.
The newly added firewall rule is visible in the Rules tab.
You can enter the following command in the terminal to view the status of the UFW firewall.
sudo UFW status
The status is active, indicating that the UFW firewall is working, and additional firewall rules can be seen.
If you want the UFW firewall to activate automatically when it is powered on, enter the following command.
sudo UFW enable
The difference between denial and rejection, GUFW Firewall has 4 kinds of policies: Allow, deny, deny, limit.
- Allow: will allow access
- Deny: Will deny access
- Deny: Will deny access and notify the other computer that it has been rejected
- Limit: If a specific IP tries several connections, then denies access to the
If you need to add more profiles, click Edit, Preferences, and then click the Plus button.
Does the Ubuntu 16.04 system require a GUFW firewall?
If you use Ubuntu 16.04 at home and connect to the Internet via a router, then the GUFW firewall is not needed because a firewall is built into the router. If your home computer is connected directly to a modem dial-up Internet connection, the Ubuntu 16.04 system needs to have a GUFW firewall installed. It is absolutely necessary to install a firewall in public places such as offices, hotels, guesthouses and restaurants.
Reference:
Http://www.linuxdiyf.com/linux/22173.html (the above content is transferred from this article)
Ubuntu 16.04 Install GUFW Firewall (GO)