Configure UFW, firewalld, nftables & iptables Without Lockouts
Detect active firewall ownership across four engines, resolve conflicts, and rely on active-SSH anti-lockout guards.
What you will accomplish
- Distinguish high-level firewall managers (UFW, firewalld) from kernel engines (nftables, iptables).
- Resolve two-active-manager conflicts safely without dropping your SSH session.
- Manage port rules protected by active-SSH anti-lockout verification.
Blocked deleting or denying 22/tcp because your current management session is connected on port 22.
Prerequisites
- Active 14-day Pro trial or Pro subscription.
- Root or sudo privilege capability on the selected server.
How Hmpify handles this workflow
| Concept | Behavior | Where in App |
|---|---|---|
| Managers vs Engines | UFW and firewalld generate kernel rules on nftables/iptables; owned engines show as Read-Only Mirrors. | 4 Engine Tabs |
| Deterministic Detection | Re-runs ownership checks before every mutation so external server edits never cause stale writes. | Security → Firewall |
| Isolated Chains | Kernel-engine rules stay in dedicated Hmpify chains so Docker or existing system rules stay untouched. | nftables / iptables |
Identify which firewall layer owns packet filtering
Opening Security → Firewall probes binaries, systemd services, and live rulesets in one privileged call.
- Check each tab’s status: Writable indicates the active firewall owner; Read-Only Mirror indicates an engine managed by UFW or firewalld.
- Install UFW (recommended on Ubuntu/Debian) or firewalld (recommended on AlmaLinux/Rocky) if no manager is installed.
Resolve two-active-manager conflicts cleanly
If both UFW and firewalld are running simultaneously, rule writes are blocked until one owner is chosen.
- Pick the manager you want to keep in the conflict resolution bar.
- Hmpify protects your active SSH port in the chosen manager, enables it, and cleanly disables the conflicting service.
Add or edit rules with active-SSH protection
Allow application ports without worrying about cutting off management access.
- Add Allow rules for HTTP (80/tcp), HTTPS (443/tcp), or WireGuard UDP ports.
- Before enabling a default drop policy, Hmpify ensures an explicit allow rule exists for your active SSH port.
Attempting to deny, reject, or delete your active SSH port rule is refused before any command leaves Hmpify.
Troubleshooting
nftables or iptables tab disables rule creation.
An active manager (UFW or firewalld) owns the kernel table; add your rules on that manager tab instead.
Run this guarded workflow in Hmpify
Every copy includes a built-in 14-day Pro trial covering all 19 Linux administration modules — flat $5/mo or $50/yr across unlimited hosts.