


To do this with UFW, you’d run a command like: sudo ufw allow 22 Say, for example, you want to allow traffic on port 22 (SSH). Simple syntax: Specifies a port and (optionally) the protocolįull syntax: Specifies source, destination, port, and (optionally) the protocol Instead, you will see the results of your changes in the output.Īs for working with the command, UFW can be used in two ways: UFW includes the ability to include this argument which informs the command to not make any changes. The fundamental UFW command structure looks like this: ufw On top of that, if you’d rather not deal with the command line, UFW has a few GUI tools that make working with the system incredibly simple.īut, before we find out what GUI tools are available, it’s best to understand how the UFW command-line system works. UFW provides a much more user-friendly framework for managing netfilter and a command-line interface for working with the firewall. That front end is Uncomplicated Firewall (UFW). Thankfully, a much simpler front end for iptables is ready to help get your system as secure as you need. To truly make the most out of that system, it may take weeks or months to get up to speed.

Although incredibly powerful, iptables is complicated-especially for newer users. For the longest time, the security of Linux was in the hands of iptables (which works with the underlying netfilter system). From the desktop to the server, you’ll find every tool you need to keep those machines locked down as tightly as possible. One of the many heralded aspects of Linux is its security.
