Use it when configuring, checking or troubleshooting UFW in Linux Security.
UFW
Uncomplicated Firewall is an Ubuntu-oriented frontend that generates and manages host-firewall policy over Netfilter, simplifying common IPv4/IPv6 rules while still requiring verification of enablement, generated state and interactions with other managers.
1. UFW is Ubuntu's simple firewall frontend.
2. Default deny incoming.
3. Allow SSH before enabling.
4. Rules by port/app/source.
5. Logs to syslog.
packet → ufw rules → allow/deny
Context & applicabilityCommon mistakes · platform/version boundaries
A UFW rule shows frontend policy intent, but it does not show exclusive ruleset ownership, live match or end-to-end service health.
Suspicious evidence: disabled UFW, IPv6 disabled, Docker/container insertion, direct nft/iptables conflict, remote lockout, application profile stale, logging gap or status hides backend state.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification path Verify boundary
UFW configuration/profile → enable/reload generation → Netfilter backend rules/order → packet match/verdict → log/endpoint → persistence
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- UFW installed ≠ UFW enabled or enforcing.
- UFW status ≠ complete view of every backend rule inserted by other software.
- Configuration file present ≠ parsed, loaded and effective runtime state.
- One allow/deny result ≠ complete DAC, privilege, LSM, firewall and application outcome.
ufw status verbose— rules and defaultsufw app list— app profilesufw logging on— enable logging
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
A UFW rule shows frontend policy intent, but it does not show exclusive ruleset ownership, live match or end-to-end service health.
In depth
UFW (Uncomplicated Firewall) is a simple front-end for nftables/iptables on Ubuntu and Debian-based systems. It makes host firewall rules easy to write and read, which encourages actually enabling a firewall on every server.
ufw default deny incoming
ufw default allow outgoing
ufw allow from 10.0.10.0/24 to any port 22 proto tcp comment 'SSH from management'
ufw allow 443/tcp comment 'HTTPS'
ufw limit 22/tcp # rate-limit SSH attempts
ufw enable
ufw status numbered
Add the SSH allow rule before enabling the firewall on remote systems. Be aware that Docker inserts its own rules that bypass UFW for published container ports — bind containers to specific interfaces or use the DOCKER-USER chain.
ReferenceConfiguration & state1 section · depth on demand
Commands
ufw default deny incoming
ufw default allow outgoing
ufw allow from 10.99.0.0/24 to any port 22 proto tcp
ufw allow 443/tcp
ufw enable
ufw status numbered
Documented example, not captured output. Allow SSH before ufw enable on remote machines. Docker publishes ports through its own iptables rules and can bypass UFW; restrict with DOCKER-USER chain rules.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Linux Security → UFW. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://docs.kernel.org/security/ · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Linux Security → UFW proof map
Fast scope, effective-state, runtime-evidence and closure boundaries for Linux Security → UFW.
| Boundary | Establish | Does not establish |
|---|---|---|
| Scope | Exact host, role, build/kernel, identity, workload and expected control | Does not prove policy receipt or effective runtime state |
| Effective state | Resultant/loaded policy, precedence, mode, labels/rules/keys and active services/kernel controls | Configuration presence does not prove enforcement |
| Runtime evidence | Correlated events/audit, process/token/credential, packet/syscall and workload result | One event, clean status or allow/deny does not prove complete security |
| Closure | Original allowed/denied workload works, unsafe state is removed and recovery/regression pass | Commit, restart, block or compliance result alone is not closure |