sudo ufw allow|deny|status|enable
sudo ufw allow|deny|status|enable
Risk: Careful
What it does
Debian's easy firewall: the guard's list of who may come in.
When to use it
To open one port, and keep every other door shut.
Example
$ sudo ufw allow OpenSSHLet SSH in. Always before you enable the guard.
$ sudo ufw allow 80/tcpLet web callers in.
$ sudo ufw enableSwitch the guard on. Over SSH, allow SSH first!
$ sudo ufw status verboseThe list, with the default rules.
Learn it in: Firewalls: ufw and nftables · Official docs