ufw allow

Open a firewall port (ufw)

high risk

interactive breakdown — edit the command and press Explain
$ 
⚠ Risks & cautions
Safer / dry-run alternatives
ufw allow from <cidr> to any port <port>Restrict by source
What it does

Adds an allow rule. See the flags and examples below, and run `man ufw` for the full reference.

Examples
ufw allow from 10.0.0.0/8 to any port 22Restrict by source · explain & risk-check →
ufw status numberedRules · explain & risk-check →
Related
ufw
Open the full explainer →More in Users, Permissions & Security

Reference text is hand-written and may be incomplete — check man ufw for your version. Test destructive commands on a non-production system first.