Linux

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

The same reference, with no signal at all

Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.

Get it free on the App Store