Before adding a server
How UFW onboarding works
Nothing touches the remote firewall until you explicitly confirm the protected Apply step.
sudo -n for UFW checks.- 1Local onlyRegister endpoint
Store name, hostname, SSH port, user, and private-key reference. Version 1 is created from your saved default template.
No SSH connection and no firewall change - 2Local onlyReview the draft
Inspect management CIDRs, Cloudflare access, defaults, and disabled legacy rules. Adjust the server-specific policy.
Saved only when you choose Save version - 3Read-only SSHRun verified preview
Resolve the host, connect over SSH, detect the controller source, confirm the SSH listener and UFW status, then show exact commands.
Reads status only; no UFW write - 4Remote writeApply with protection
Create local and remote snapshots, schedule a two-minute rollback, reset UFW, and apply the verified command sequence.
Requires a separate explicit confirmation - 5AutomaticVerify or recover
Open a fresh SSH connection and verify UFW. Success cancels rollback; failure leaves the timer to restore the previous files.
Result is versioned and audited