sudo ufw --dry-run allow 8080/tcp

Category: VPS Management

sudo ufw --dry-run allow 8080/tcp

Preview a firewall rule without applying it

ufw --dry-run prints exactly what the rule would do — the underlying iptables commands — without changing anything, so you can sanity-check syntax before touching the live firewall. The same flag works with delete, insert, and enable. Run it as a rehearsal, then repeat without the flag.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.