Linux Commands Helper
💬 Your AI-powered Linux assistant
ufw Command - Uncomplicated Firewall
The ufw (Uncomplicated Firewall) command is a user-friendly frontend for managing a netfilter firewall. It is designed to make managing a Linux firewall easier.
Syntax
ufw [options] [command]
Examples
ufw enable
Enable the firewall.
ufw allow 22
Allow incoming SSH connections (port 22).
ufw status
Show the current firewall status and rules.
Notes
- ufw is a frontend for iptables and nftables, simplifying firewall management.
- Requires root privileges to modify firewall rules.
- For advanced configurations, use
iptables
ornft
directly.