AP Networking • NAT • Routing & Translation

NAT Troubleshooting Basics

Follow the packet through inside routing, NAT rule matching, PAT/state creation, outside forwarding, return routing, firewall policy, and reverse translation so you can identify exactly where a translated flow fails.

Independent AP Networking resource • Updated 2026-09-11 • Includes 24 free digital flashcards
NAT rule: translation only helps after the packet reaches the NAT boundary—and the reply still has to return through a usable translation path.
Practice with Flashcards
Core model

NAT is one stage in a forwarding path—not a substitute for routing

Network Address Translation changes addressing information as traffic crosses a translation boundary. A client still needs to reach the NAT device, the NAT device still needs a route toward the destination, the translation policy must match, and the reply must return through a path where the translation can be reversed. Troubleshooting gets much easier when those dependencies are tested in order instead of treating “NAT” as one mysterious feature.

NAT reasoning chain: Inside Host → Inside Route → NAT Rule Match → Translation State → Outside Route → Remote Service → Return Path → Reverse Translation → Inside Delivery.
NAT terminology

Separate original inside addressing from translated public addressing

Inside local

The address used by the internal host before translation, usually a private IPv4 address.

Inside global

The address representing that host or flow after translation on the outside.

PAT

Many private flows share one public address by using translated source ports.

You do not need to memorize every vendor label to troubleshoot effectively. The key is to track what the packet looked like before translation and what it should look like afterward.

Inside routing first

If the private client cannot reach the NAT boundary, translation has not entered the path yet

Start with the inside host. Confirm the source IP, subnet mask or prefix, and default gateway. Then test the local inside interface of the router or firewall performing NAT. If the client cannot reach that interface, investigate LAN addressing, VLAN placement, switch forwarding, or the gateway itself.

Client: 10.10.20.25/24 Gateway: 10.10.20.1 Test: Client → 10.10.20.1 If this fails: Fix LAN/VLAN/gateway path first. Do not edit NAT rules yet.
Outside routing

Translation can be correct while the NAT device still lacks a usable upstream route

After translation, the edge device must forward the packet toward the remote network. A valid mapping does not create a default route or repair an upstream next hop. If the NAT table shows a translation but the packet cannot leave the expected outside interface, inspect routing before changing the translation rule.

Evidence boundary: “translation exists” proves the NAT policy matched. It does not prove outside forwarding succeeds.
Source rule matching

A new subnet can route to the edge but still fail because the NAT rule never includes it

This is a common real-world failure. A network adds VLAN 30 using 10.10.30.0/24. Inter-VLAN routing works. Clients can ping the inside firewall interface. But the outbound NAT policy still matches only 10.10.10.0/24 and 10.10.20.0/24.

Existing NAT sources: 10.10.10.0/24 ✓ 10.10.20.0/24 ✓ 10.10.30.0/24 ✕ missing Result: VLAN 30 reaches edge but no translation state is created.

The strongest fix is to update the translation source definition deliberately, then test a fresh connection.

Direction and zones

The same addresses can behave differently depending on which interfaces or security zones the packet crosses

Many firewalls and routers attach NAT policy to inside/outside roles, source and destination zones, or specific interfaces. A rule can contain the correct subnet but still fail if traffic enters or leaves through a different interface than expected.

Always verify the actual ingress interface, egress route, and the NAT rule's direction or zone match conditions.

PAT mechanics

Port Address Translation tracks many simultaneous flows behind one public IPv4 address

With PAT, two clients can both open TCP connections from source port 51000 because the NAT device can assign different translated public-side ports.

Inside: 10.10.20.25:51000 10.10.20.40:51000 Public translations: 198.51.100.20:62001 198.51.100.20:62002 One public IP Two separate translation states

This is why the translation table often includes protocol and port numbers rather than only address-to-address mappings.

State-table exhaustion

New sessions can fail even while older translated sessions continue

Translation platforms have finite state capacity and finite usable port space. If the table or port pool is exhausted, existing sessions may still work while new sessions fail. That pattern is especially important because it can look like a random application problem.

Scope clue: “old connections work, new connections fail” should push you toward state capacity, session tables, or allocation limits rather than a universal route outage.
Read the translation table

A useful NAT table should connect original flow identity to translated flow identity

Proto Inside Local Inside Global TCP 10.10.20.25:51544 198.51.100.20:62001 TCP 10.10.20.40:51545 198.51.100.20:62002

For troubleshooting, ask three questions: did a mapping appear, did the mapping use the expected public address or pool, and did it correspond to the new test flow you just generated?

Fresh-flow testing

After a rule change, create a new connection instead of trusting an old translated session

Existing NAT state may continue to use the old decision until it expires. If you fix a source object or translation rule, a brand-new flow gives much stronger evidence that the revised policy is being used.

1. Record current translation 2. Change confirmed faulty rule 3. Start new connection 4. Verify new mapping appears 5. Confirm translated packet exits 6. Confirm reply returns 7. Confirm inside delivery
Return path

Replies must come back to a device that can reverse the translation

Stateful NAT works because the device remembers how the inside flow was translated. When the reply returns, it reverses that mapping and delivers the packet to the original private client. If asymmetric routing bypasses the NAT device on the return path, the response may never be translated back.

Outbound: 10.10.20.25 → NAT device → 198.51.100.20 → Internet Return should be: Internet → 198.51.100.20 → same NAT state → 10.10.20.25
Public return routing

The translated public address must be reachable back through the correct edge

If a firewall translates traffic to 198.51.100.20 but the upstream network routes replies for that address somewhere else, outbound packets can leave successfully while return traffic never arrives. This is especially important when multiple public blocks, redundant edges, or provider changes are involved.

“I can see the packet leave” therefore does not prove the session can complete.

NAT vs. firewall

Translation and permission are different decisions even when one appliance performs both

A firewall can translate an address and still deny the flow. It can also permit a flow that fails because no valid translation exists. Troubleshooting should keep these functions separate.

ObservationTranslation statusPolicy status
Mapping exists, flow deniedNAT matchedFirewall blocked
No mapping, policy allowsNAT missing/failedFirewall permission exists
Mapping exists, flow succeedsNAT matchedPolicy allowed

Swipe horizontally to see the NAT/firewall comparison.

Processing order

Read platform logs carefully because NAT and firewall checks may occur in different orders

Some platforms evaluate translation before security policy; others represent addresses in logs after translation or before translation depending on the stage. That can make source and destination fields look unfamiliar.

Rather than memorizing one universal order, identify what the platform log is showing: pre-NAT address, post-NAT address, ingress zone, egress zone, rule name, and final action.

Inbound NAT

Publishing a service requires both a translation and a secured path to the internal server

An inbound port forward or static NAT maps a public address or public port to an internal server. The mapping alone is not enough. The edge firewall must allow the traffic, the server must listen on the target port, the server's return path must point back appropriately, and public routing must deliver the connection to the translating edge.

★ Routing Practice • NAT Troubleshooting Basics

A five-minute warm-up for NAT Troubleshooting Basics

Tomorrow’s opening question can pick up where this page leaves off: have students explain where the addresses come from and what they would check when a device cannot connect. The 300 Bell Ringers give you short questions and teacher answers you can use without preparing a new starter each morning.

300 AP Networking Bell Ringers
$74.99
BUY TEACHER PACK → See what is included in the 300 Bell Ringers →
Instant Access • Full-Year Teacher Resource
Internet client → 198.51.100.20:8443 → inbound NAT → 10.10.40.80:443 → server listener Return: 10.10.40.80 → gateway/NAT → original Internet client
Port-forward troubleshooting

A server working internally does not prove the public mapping works

If staff can open https://10.10.40.80 internally but the public service fails, the internal server and application are at least partly proven. Now inspect public DNS/address, inbound NAT mapping, edge firewall, upstream routing, public-address ownership, and return path.

High-value comparison: internal success narrows the problem away from the server application and toward the public-facing path.
Hairpin NAT

Internal users can fail to reach a public server name even while external users succeed

Some networks use the same public hostname both inside and outside. If internal DNS returns the public address, the internal client may need hairpin NAT so traffic can enter the NAT device and be translated back toward the internal server.

Premium Troubleshooting Lab • 120 Missions

Let students try NAT Troubleshooting Basics for themselves

Reading the explanation is a start. In the browser simulator, students work through a broken network, choose what to test and see whether their fix worked. It gives them another chance to use what they learned about NAT Troubleshooting Basics.

AP Networking Browser Troubleshooting Simulator
$29.99
120 Missions • 60 Failure Patterns • Offline Copy
GET THE SIMULATOR → See all 120 missions & features

If external users succeed but internal users fail only when using the public name, compare internal DNS behavior and whether hairpin NAT is supported or configured.

Double NAT

Two translation layers can complicate inbound services and troubleshooting

A common SOHO design places a personal router behind an ISP gateway that also performs NAT. Outbound browsing may work normally, but inbound port forwarding may fail unless both translation layers are considered or the upstream device is bridged or otherwise configured appropriately.

Internet → ISP gateway NAT → 192.168.0.2 (customer router WAN) → customer router NAT → 10.10.40.80 server

One correct port forward on the inner router does not automatically create the necessary mapping on the ISP gateway.

Routing Exam Practice • NAT Troubleshooting Basics

Check whether NAT Troubleshooting Basics has really stuck

Once students have worked through this topic, give them questions mixed in with the rest of the course. The Exam Prep Vault includes practice exams, multiple-choice questions and artifact labs so they cannot rely on a chapter heading to tell them what to do.

AP Networking Complete Exam Prep Vault
$39.99
GET THE EXAM PREP VAULT → See the Exam Prep Vault contents →
4 Practice Exams • 320 MCQs • 60 Artifact Labs
CGNAT boundary

Carrier-grade NAT can explain why inbound publishing fails even when the local router is configured correctly

If the router's WAN address is itself private or shared-provider space and does not match the public address seen on the Internet, the ISP may be performing upstream translation. Outbound access can still work, but unsolicited inbound connections may not be deliverable to the customer's router.

Evidence boundary: a local port forward cannot override an upstream provider translation layer that does not forward the connection.
Worked case 1

New VLAN reaches firewall but has no Internet

VLAN 30 clients can ping the firewall's inside interface. VLANs 10 and 20 have Internet. The NAT table never shows VLAN 30 translations.

Inference: inside routing is working; the missing translation points strongly toward the NAT source object, rule match, interface/zone direction, or policy order for VLAN 30.

Worked case 2

Translation appears and packet exits, but no reply returns

A new session creates a correct mapping from 10.10.20.25 to 198.51.100.20. Packet capture shows the translated flow leaving the WAN interface, but no return packet appears.

Premium Evidence-Grading Copilot

Spend less time marking explanations about NAT Troubleshooting Basics

When students explain their answer, it takes more than a right-or-wrong check to see what they understand. The Grading Copilot helps you review how they used the clues, where their explanation falls short and what feedback to give next. You make the final grading decision.

AP Networking Artifact Analysis Grading Copilot
$49.99
8 Criteria • 5 Task Modes • Offline Premium Copy
GET THE GRADING COPILOT → See the free Copilot preview

Inference: investigate upstream routing, remote service behavior, public return routing, provider filtering, or whether the public address is actually routed to this edge.

Worked case 3

Reply reaches the NAT device but never reaches the client

The public-side capture sees the reply return to 198.51.100.20, but the inside capture never shows the corresponding packet toward 10.10.20.25.

Inference: inspect translation state, reverse-translation handling, firewall policy, or whether the state entry expired or mismatched.

Worked case 4

Internal server works locally but public port forward fails

Users on the LAN can open 10.10.40.80:443, but outside users cannot reach 198.51.100.20:8443.

NEW • COMPLETE 180-DAY TEACHER CURRICULUM

Teach NAT Troubleshooting Basics as part of a planned school year

This page gives you one topic. The 180-Day Teacher Curriculum puts it into a full course plan, with daily teaching notes, student activities and checks for understanding. Use it when you need to know what comes before this lesson and what to teach next.

AP Networking Complete 180-Day Teacher Curriculum
$199.99
180 Lessons • 180 Daily Simulators • 36 Teaching Weeks
GET THE 180-DAY CURRICULUM → See 3 free curriculum examples

Inference: preserve the internal server path as known-good. Focus on public DNS/address, inbound NAT mapping, edge firewall, public routing, upstream NAT, and return path.

Worked case 5

Old sessions work but new sessions fail during heavy load

Existing long-lived connections continue. New outbound connections intermittently fail and the translation table is near its platform limit.

Inference: state or PAT resource exhaustion becomes much stronger than a universal route failure.

Evidence matrix

Each NAT artifact narrows a different part of the path

EvidenceSupportsDoes not prove
Client reaches inside NAT interfaceInside path worksTranslation will occur
Translation entry appearsNAT rule matchedFirewall or outside routing works
Translated packet leaves WANNAT + outside egress occurredReply will return
Reply reaches public addressReturn routing reaches edgeReverse translation succeeds
Inside packet deliveredReverse translation workedApplication itself is healthy

Swipe horizontally to see the evidence matrix.

Troubleshooting decision tree

Follow the packet stage by stage instead of changing NAT blindly

Inside host reaches NAT boundary? | +-- No → LAN / VLAN / gateway / inside routing | +-- Yes | +-- Translation created? | +-- No → NAT source/direction/rule match | +-- Translated packet leaves outside? | +-- No → outside route / firewall / interface | +-- Reply returns? | +-- No → upstream route / remote / public address | +-- Reverse translation happens? +-- No → state / NAT / firewall +-- Yes → inside delivery / application
Common exam traps

Keep these distinctions separate

Verification

Test a fresh flow and verify every stage after the repair

After correcting the confirmed issue, start a new connection from the intended inside client. Verify that the mapping is created with the expected translated address and port, confirm the packet exits the correct outside interface, confirm the reply returns, and confirm reverse translation delivers it to the original client.

Positive: intended outbound or inbound service works.

State: expected translation appears.

Return: reply traverses the NAT device.

Regression: existing unrelated translated services still work.

Free digital flashcards

24 NAT Troubleshooting digital flashcards

Practice NAT vs. routing, inside/outside addressing, PAT, source-rule matching, translation state, return paths, firewall distinctions, inbound NAT, hairpin NAT, double NAT, and evidence boundaries.

All NAT cards
Click or press Enter/Space to reveal.
State the packet stage and what the evidence proves.
0 seen•24 cards
Continue studying

Connect NAT troubleshooting to routing, firewall policy, port forwarding, and CLI evidence