Pcornel
Browse topics
Options
Recent
Favorites
Evidence · observation

NAT Linux firewall evidence

Linux · NAT

Expected observation

Healthy evidence: fresh-flow conntrack and captures show the intended pre/post translation, filtering and routing succeed in both directions, and the application sees the expected peer/endpoint behavior. Suspicious evidence: stale conntrack retains an old mapping, NAT is mistaken for permission, translation occurs on the wrong hook/interface, hairpin path differs, or return translation/routing fails.

Intended proof boundary

Correlated Linux firewall evidence can establish this proof path: original tuple → NAT hook match on new flow → conntrack mapping → route/filter using stage-appropriate tuple → postrouting translation → remote endpoint → reverse conntrack translation → workload

Does not prove

It does not independently prove behavior outside the captured namespace, family, five-tuple, interface/direction, manager/backend, ruleset generation, conntrack/NAT state, time window or application scope. NAT is proven only when a fresh original flow receives the intended mapping, filtering/routing for the translated tuple succeeds in both directions, and the application completes; a configured rewrite or one translated packet is insufficient.

Next discriminating check

For Firewall → NAT, continue with the first unproven Topic check: Capture the exact original tuple and expected translated tuple, interfaces, namespace and whether traffic is local, forwarded or hairpin. If that boundary is healthy, advance to the adjacent check: Inspect NAT base chains/hooks/priorities and the filter rules that see pre/post-translation identities at their respective stages. Preserve the same host/time/identity scope and rerun the original workload before accepting recovery.

1ObservationExpected observation; record actual output separately.
→
2Inference boundaryOnly what the observation directly supports.
→
3Non-proof boundaryWhat still remains unproven.
→
4Next checkThe next discriminating observation.
Documentation structureReference completenessexpected observation documented · intended proof boundary documented · non-proof boundary documented · next check documented · source reference supplied
Source referencePcornel evidence-first Linux firewall modelSource presence does not itself prove technical correctness.
Verification closure

Use this Evidence to decide the next boundary, not to skip the original test

Observation → proof/non-proof boundary → next discriminating check → minimum controlled change → repeat the original workload/test → adjacent/return-path regression check where relevant.

Capture / filter

Firewall → NAT + exact time/host/boot/namespace + affected object/identity + verification chain: original tuple → NAT hook match on new flow → conntrack mapping → route/filter using stage-appropriate tuple → postrouting translation → remote endpoint → reverse conntrack translation → workload + discriminator: Capture the exact original tuple and expected translated tuple, interfaces, namespace and whether traffic is local, forwarded or hairpin. + requested/observed/effective state + original workload/result
Reference statusEvidence reference · unreviewed · Source reference
Reference completenessEvidence reference · 100/100
Freshnessunreviewed
ProvenanceSource reference
Collection costLow

Evidence reference. Completeness measures filled reference fields, not a captured result, source correctness or confidence in live operation. Review freshness is shown separately. Record actual output, target, scope and time before drawing an operational conclusion.

Confirmation

Confirm action

Continue?