ufw
CautionUncomplicated Firewall
ufw status verbose
Ubuntu's friendly firewall with allow/deny syntax. Always allow SSH before enabling.
Examples
ufw allow 22/tcp && ufw enableAllow SSH, then enable
Syntax
ufw [allow|deny|status|enable]
Before you run it
Enabling before allowing SSH locks you out.
Related commands
- iptablesManage iptables firewall
- firewall-cmdManage firewalld (RHEL)
The same reference, with no signal at all
Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).
Get it free on the App Store