PetaGuard gives you a clean, unified interface for managing iptables, nftables and ufw — with rule history, rollback, dry-run mode and instant alerts when rules change. Stop memorizing iptables syntax.
Linux has three major firewall backends — iptables, nftables and ufw — each with its own syntax, quirks and learning curve. PetaGuard sits on top of all three and gives you a single, consistent interface regardless of which distro or backend you are on.
Every rule change is written to a version-controlled log. You can diff any two snapshots, roll back to any previous state and preview what a rule change would do before applying it.
localhost:7477localhost:7477. See your full ruleset at a glance.| Command | Description |
|---|---|
| petaguard list | Show all active firewall rules |
| petaguard allow --port N | Allow incoming traffic on port N |
| petaguard deny --port N | Block incoming traffic on port N |
| petaguard snapshot | Save current rules as a named version |
| petaguard diff v1 v2 | Show diff between two rule snapshots |
| petaguard rollback --to N | Restore rules to version N instantly |
| petaguard apply --dry-run | Preview all pending changes |
| petaguard web | Open web rule editor on port 7477 |
Every change is versioned. Every change is reversible. Install PetaGuard in 60 seconds.