Linux · Ferramentas do Sistema
ufw
UFW (Uncomplicated Firewall) is a command-line tool for managing Linux firewall rules using iptables.
- Licença
- GPL-3.0
- Versão mais recente
- 0.36.2
O que é o ufw?
UFW simplifies firewall configuration on Linux by providing an easy-to-use interface over iptables. It has been included in Ubuntu by default since 2008 and is now packaged in most major distributions, including Debian, Fedora, Arch, and openSUSE. Its long presence and integration into default installations reflect its stability and reliability.
It's best for users who want straightforward firewall control without dealing with the complexity of raw iptables commands. This includes beginners to Linux system administration and intermediate users who prefer clarity over granular control. It’s not aimed at network engineers managing complex rule sets.
Compared to Windows Defender Firewall, UFW feels more minimal and terminal-based. There’s no system tray icon or real-time traffic monitoring. You define rules by command, not by app permissions. It’s less visual and interactive but faster for scripted or remote administration.
Ideal para: Users who want a simple, reliable firewall without complexity.
Principais recursos do ufw
- Simple command-line syntax for adding and removing rules
- Supports IPv4 and IPv6
- Can enable or disable the firewall with one command
- Logging options for tracking blocked traffic
- Integration with GUI tools like gufw
- Default policies for incoming and outgoing traffic
- Application profiles via /etc/ufw/applications.d/
Prós
- Easy to learn for basic firewall tasks
- Pre-installed on Ubuntu and available in most repos
- Well-documented with clear man pages
- Lightweight and low overhead
- Scriptable for automation
Contras
- Limited without third-party tools for GUI or monitoring
- Less intuitive for users unfamiliar with the terminal
- Not suitable for complex firewall setups
Programas do Windows que o ufw substitui
Como instalar o ufw no Linux
sudo apt install ufwsudo apt install ufwsudo dnf install ufwsudo pacman -S ufwsudo zypper install ufwDicas para quem vem do Windows
Coming from Windows Defender Firewall, expect a shift: rules are defined by port and protocol, not per-application. There's no automatic alert when a program tries to access the network. Use 'ufw allow 80' instead of clicking through dialogs. You’ll manage everything via terminal commands. Consider installing gufw if you prefer a graphical interface.
ufw: perguntas frequentes
Is UFW enabled by default on Ubuntu?
No, UFW is installed by default on Ubuntu but disabled. You must enable it manually with 'sudo ufw enable'.
How do I check if UFW is running?
Run 'sudo ufw status' to see if the firewall is active and list current rules.
Can UFW block specific applications?
Not directly by process name. UFW works with ports and services. You can create application profiles in /etc/ufw/applications.d/ to simplify this.
Does UFW support GUI?
Yes, gufw is the official GUI front-end for UFW, available in most package managers.
Atualizado em