TTechclick ⚡ XP 0% All lessons
SonicWall · Next-Gen Firewall · Access Rules & NATInteractive · L1 / L2 / L3

SonicWall Access Rules & NAT Policies — the Gate and the Translator, Together

On a SonicWall, two separate tables decide a packet's fate: Access Rules decide whether traffic is allowed between two zones, and NAT Policies decide how its addresses are rewritten. This lesson keeps them straight, walks the NAT types, and shows exactly why publishing a server needs both — and what breaks when you forget the access rule.

📅 2026-06-19 · ⏱ 16 min · 5 infographics · live packet demo · 🏷 10-Q assessment + AI Tutor inline

⚡ Quick Answer

A clear, interactive guide to SonicWall (SonicOS 7 / Gen 7) Access Rules and NAT Policies: how the per-zone-pair access rule table allows or denies traffic top-down first-match-wins, how the separate NAT policy table rewrites Original to Translated addresses, the NAT types (outbound PAT, one-to-one, inbound publish, loopback), and why publishing a server needs BOTH a NAT policy and a matching access rule.

🎯 By the end you will be able to

Read as:

Pick where you want to start

1

Access Rules

Zone pairs, top-down first-match, allow or deny.

2

NAT Policies

A separate table — Original vs Translated.

3

The NAT types

Outbound PAT, one-to-one, inbound, loopback.

4

Publish a server

NAT plus access rule, the Wizard, the trap.

🧠 Warm-up — 3 questions, no score

Just notice which ones make you pause. We answer all three inside the lesson.

1. Do access rules and NAT policies live in the same table?

Answered in Access Rules.

2. What does a NAT policy actually do to a packet?

Answered in NAT Policies.

3. To publish a server to the internet you need…

Answered in Publish a server.

Most engineers think…

Most people set up a 'port forward' on a SonicWall, create the NAT policy, and assume traffic will flow. Then nothing reaches the server and they blame the ISP or the cable.

On a SonicWall, two separate tables decide a packet's fate. Access Rules decide whether traffic is allowed between two zones — top-down, first match wins. NAT Policies decide how the addresses are rewritten — Original to Translated. They are matched independently. Publishing a server needs both: an inbound NAT policy to translate the public IP, and a matching access rule to permit it. Miss the rule and the perfectly good NAT translation is dropped at the gate.

① Access Rules — the gate that decides whether traffic passes

Access Rules are SonicWall's gate. They decide whether traffic is allowed between two security zones, always written for a zone pair such as LAN→WAN or WAN→DMZ. You pick a source zone and a destination zone, and SonicOS shows just the rules for that pair.

Within a zone pair the rules are evaluated top-down, first match wins: the first rule that matches sets the action and the firewall stops looking — which is why ordering matters. Each rule carries a source and destination address object, a service (port/protocol), an optional schedule and users, and an action: Allow permits, Deny politely refuses with a reset, Discard drops silently. You can also enable security services like DPI and logging on the rule itself.

Default rules ship per zone pair. Trusted-to-untrusted (LAN→WAN) is allowed by default; untrusted-to-trusted (WAN→LAN) is denied by default. You add your own rules above the defaults to change behaviour.

Figure 1 — How an access rule is matched
Access rules are read top-down within a zone pair; the first match sets the action and the firewall stops.How an access rule is matchedPick zone paire.g. WAN to DMZRead top-downrule 1, 2, 3...First matchstop looking hereApply actionallow / deny / discard
Access rules are read top-down within a zone pair; the first match sets the action and the firewall stops.
Always name the zone pair first

When you talk about an access rule, lead with the zone pair — 'a WAN to DMZ Allow rule', not just 'an allow rule'. Rules only exist within a source-to-destination zone context, and ordering inside that pair is what decides the first match.

Quick check · Q1 of 10 · Understand

How are SonicWall access rules evaluated within a zone pair?

Correct: b. Access rules are read top-down and the first rule that matches sets the action — the firewall then stops looking. That is why rule ordering matters.
👉 So far: Access rules are the gate: written per zone pair, evaluated top-down first-match-wins, with action Allow / Deny / Discard and default rules per pair.

② NAT Policies — the separate table that rewrites addresses

NAT Policies are a completely separate table from access rules. A NAT policy does not allow or deny anything — it translates. Each policy maps an Original source, destination and service to a Translated source, destination and service, scoped by inbound and outbound interface.

The mental model: the access rule is the gate (whether), the NAT policy is the translator (how). They are matched independently for the same packet. A packet can sail through the gate and then have its destination rewritten by a NAT policy, or be translated and still hit a closed gate — the two tables do not know about each other.

The most common NAT policy is already there: the default outbound PAT. It maps your whole LAN subnet (Original source) to the firewall's WAN interface IP (Translated source), so many internal hosts share one public address on the way out.

Figure 2 — Access Rule vs NAT Policy
Two separate tables, matched independently: one decides whether, the other decides how.Access Rule vs NAT PolicyAccess Rule (the gate)Per zone pair (LAN to WAN, WAN toTop-down, first match winsAction: Allow / Deny / DiscardDecides WHETHER traffic passesNAT Policy (the translator)A separate table, by interfaceOriginal source/dest/serviceTranslated source/dest/serviceDecides HOW addresses are
Two separate tables, matched independently: one decides whether, the other decides how.
🚪
Access Rule
tap to flip

The gate. Per zone pair, top-down first-match-wins, action Allow/Deny/Discard. Decides WHETHER traffic passes.

🔁
NAT Policy
tap to flip

The translator. A separate table mapping Original source/dest/service to Translated. Decides HOW addresses are rewritten — never whether.

📥
Inbound NAT
tap to flip

Translates a public IP/port to an internal server's private IP/port so the internet can reach an internal service.

🔄
Loopback NAT
tap to flip

Reflexive NAT so internal users reach a published server by its public IP, exactly like external users do.

Quick check · Q2 of 10 · Remember

What does a NAT policy actually do to a packet?

Correct: a. A NAT policy translates Original source/destination/service to Translated — it rewrites addresses and ports. Allowing or denying is the access rule's job in a separate table.
👉 So far: NAT policies are a separate table that only translates — mapping Original source/dest/service to Translated. The default outbound PAT hides the LAN behind the WAN IP.

③ The NAT types — outbound, one-to-one, inbound and loopback

Once you see NAT as 'Original to Translated', the types are just different mappings. Many-to-one PAT (outbound masquerade) is the default: many LAN IPs hidden behind the single WAN IP using ports. One-to-one NAT maps a single internal host to a single dedicated public IP in both directions. One-to-many spreads one internal resource across several public IPs.

The two that matter for publishing a service: inbound NAT translates a public IP/port to an internal server's private IP/port, so the internet can reach an internal service. Loopback (reflexive) NAT lets internal users reach that same published server by its public IP — so staff and outsiders use one address instead of two.

The line to remember

NAT only ever rewrites addresses. None of these types decides whether the traffic is permitted — that is always the access rule's job. Keep that split clean and the rest is just choosing the right mapping.

Figure 3 — The NAT types, top to bottom
Every type is just a different Original-to-Translated mapping; none of them allow or deny.The NAT types, top to bottomOutbound PATmany LAN IPs behind one WAN IPOne-to-one NATone internal host to one public IPInbound NATpublic IP/port to internal serverLoopback NATinternal users reach the public IP
Every type is just a different Original-to-Translated mapping; none of them allow or deny.
'NAT allows the traffic' is wrong

A NAT policy never permits or denies — it only rewrites addresses. If you say NAT 'opens' a port in an interview, you have merged the two tables in your head. NAT translates; the access rule is the only thing that allows.

Quick check · Q3 of 10 · Apply

You want internal staff to reach a published server using its public IP, just like external users. Which NAT type?

Correct: d. Loopback (reflexive) NAT serves the public IP to inside users too, so internal and external users use the same address. Inbound NAT alone only handles traffic arriving from the WAN.
👉 So far: NAT types are just mappings: outbound PAT, one-to-one, inbound (publish a server) and loopback (internal users reach the public IP). None of them allow or deny.

④ Publishing a server — NAT policy and access rule, together

Here is the whole lesson in one rule: to publish an internal server you need both an inbound NAT policy (public→private translation) and a matching access rule (e.g. WAN→DMZ Allow for the service). One without the other fails. NAT alone rewrites the destination but the gate still denies it; an access rule alone permits traffic that never gets steered to the right host.

The safe way is the Public Server Wizard. It asks what you are publishing and then builds all three pieces together: the address objects, the inbound NAT policy, and the matching access rule — so you cannot forget either half.

The classic failure

The number-one SonicWall ticket: someone hand-builds the NAT policy, skips the WAN→DMZ access rule, and external users time out. SonicOS dutifully translates the public IP to the internal server, then the default WAN→DMZ deny drops it before delivery. The fix is always the same — add the matching access rule (or re-run the Wizard).

Figure 4 — Publishing a server needs both halves
A published server depends on a NAT policy and an access rule plus their objects — the Wizard builds all of them.Publishing a server needs both halvesPublished serverreachable from WANInbound NAT policyWAN to DMZ access ruleServer address objectPublic address objectService objectPublic Server Wizard
A published server depends on a NAT policy and an access rule plus their objects — the Wizard builds all of them.
Figure 5 — Inbound request to a published web server
The access rule permits and the NAT policy translates — both happen, independently, for the same packet.Inbound request to a published web serverHit public IPrequest from internetAccess ruleWAN to DMZ allowNAT policypublic to private IPReach serverdelivered to10.10.20.15Reply outoutbound NAT back
The access rule permits and the NAT policy translates — both happen, independently, for the same packet.

Priya at Lotus Logistics in Pune faces this

She published the internal web server (DMZ, 10.10.20.15) to the public IP and hand-built the inbound NAT policy, but partners on the internet still get connection timeouts.

Likely cause

Only the NAT policy was created; no matching WAN to DMZ access rule was added, so the default deny blocks the translated traffic.

Diagnosis

Open Policy ▸ Rules and Policies ▸ Access Rules, select the WAN to DMZ zone pair — there is no Allow rule for HTTPS to the server, and the connection log shows the packet dropped by the default deny.

Policy ▸ Rules and Policies ▸ Access Rules (WAN to DMZ) + NAT Policies
Fix

Either re-run the Public Server Wizard (which builds objects + NAT + rule), or add a WAN to DMZ Allow rule for the HTTPS service to the server address object alongside the existing NAT policy.

Verify

Re-test from outside — the partner reaches the site; the access rule hit counter and the NAT policy usage both increment for the same flow.

Prove it from both tables

When a publish works, check that both halves fired: the NAT policy usage counter and the WAN to DMZ access rule hit counter should both increment for the test connection. If only one moves, you are missing the other half.

▶ Watch a request reach a published web server — and then break it

How an inbound connection is permitted and translated end-to-end. Press Play for the healthy path, then Break it to see the classic failure.

① Hit public IPA partner on the internet opens https to the company's public IP, which fronts the DMZ web server.
② Access ruleThe WAN to DMZ access rule matches HTTPS to the server and Allows it — the gate is open.
③ NAT translateThe inbound NAT policy rewrites the destination from the public IP to the internal server 10.10.20.15.
④ Deliver + replyThe packet reaches the server; the reply leaves via outbound NAT back to the partner.
Press Play to step through the healthy publish path. Then press Break it.
Quick check · Q4 of 10 · Analyze

You created an inbound NAT policy for a server but external users still time out. The most likely cause?

Correct: b. NAT translated the public IP correctly, but with no matching access rule the default WAN to DMZ deny drops the packet before delivery. Add the access rule (or use the Public Server Wizard).
👉 So far: Publishing a server needs BOTH an inbound NAT policy and a matching access rule. The Public Server Wizard builds both plus the objects; forgetting the rule is the classic timeout.

🤖 Ask the AI Tutor

Tap any question — instant, scoped to this lesson. No login, no waiting.

Pre-curated from vendor docs + community Q&A, scoped to this lesson. For a live prod issue, paste your export into chat.techclick.in.

📝 Wrap-up assessment — six more

You've answered 4 inline. Six left. 70% (7 of 10) marks the lesson complete on your profile. Tap Submit all answers at the end.

Q5 · Remember

SonicWall access rules are organised and evaluated by what?

Correct: b. Access rules exist within a source-to-destination zone pair and are read top-down; the first matching rule sets the action. The other options are not how SonicOS orders rules.
Q6 · Understand

Which statement best describes a NAT policy?

Correct: c. NAT policies are a separate table that only rewrites Original source/destination/service to Translated. Allowing or denying is the access rule's job; the two tables are matched independently.
Q7 · Apply

You must publish an internal DMZ server to the internet. What is the minimum you need?

Correct: c. Publishing needs both halves: the NAT policy translates public to private, and the access rule permits the flow. Either one alone fails — NAT without a rule is dropped, a rule without NAT never reaches the right host.
Q8 · Analyze

What is the default LAN to WAN NAT behaviour on a SonicWall?

Correct: d. Outbound traffic uses many-to-one PAT by default: many internal hosts share the firewall's single WAN interface IP via port translation. The other types are not the built-in outbound default.
Q9 · Evaluate

An admin built a NAT policy to publish a server but external users time out. Best first move?

Correct: a. The NAT translated correctly but with no matching access rule the default deny drops it. Checking and adding the WAN to DMZ Allow rule (or re-running the Public Server Wizard) is the right first move.
Q10 · Evaluate

Why is it correct to say access rules and NAT policies are independent?

Correct: b. They are distinct tables evaluated independently for the same packet: the access rule only permits or denies, the NAT policy only translates. Neither overrides the other, which is exactly why publishing needs both.
Lesson complete — saved to your profile.
Almost! You need 70% (7 of 10) — re-read the path that tripped you up and tap "Try again".

🧠 In your own words

Type one line: why does publishing a SonicWall server need both a NAT policy and an access rule? Then compare with the expert version.

Expert version: Because the two tables do different jobs and are matched independently. The inbound NAT policy rewrites the destination from the public IP to the internal server, but it does not permit anything; the access rule is the only thing that allows the traffic through the WAN to DMZ gate. With NAT but no rule, the translated packet hits the default deny and is dropped; with a rule but no NAT, the permitted packet never gets steered to the right internal host. You need both halves working together, which is exactly why the Public Server Wizard builds the objects, the NAT policy and the access rule in one pass.

🗣 Teach a friend

Best way to lock it in — explain it in one line to a teammate. Tap to generate a paste-ready summary.

📖 Glossary

Access Rule
A SonicOS policy that permits or denies traffic between a source and destination zone, evaluated top-down with first match wins.
NAT Policy
A separate SonicOS table entry that rewrites a packet's source/destination address and port — Original to Translated. It never allows or denies.
Security zone
A named trust boundary (LAN, WAN, DMZ, VPN) that access rules are written between.
Zone pair
The source-zone to destination-zone combination an access rule applies to, e.g. WAN to DMZ.
PAT (outbound)
Many-to-one Port Address Translation hiding many internal hosts behind one public IP — the default outbound NAT.
Inbound NAT
A NAT policy translating a public IP/port to an internal private host to publish a server to the internet.
Loopback NAT
Reflexive NAT that lets internal users reach a published server by its public IP, like external users do.
Public Server Wizard
A SonicOS wizard that auto-creates the address objects, the NAT policy and the access rule needed to publish a server.
Address object
A named host, range or network referenced by both access rules and NAT policies.

📚 Sources

  1. SonicWall — SonicOS 7 Policy: Rules and Policies (Access Rules) administration guide. sonicwall.com
  2. SonicWall — SonicOS 7 NAT Policies administration guide (Original vs Translated, inbound/outbound). sonicwall.com
  3. SonicWall Support — How to configure NAT policies and access rules to publish an internal server. sonicwall.com
  4. SonicWall Support — Using the Public Server Wizard to publish a server (objects + NAT + rule). sonicwall.com
  5. SonicWall Support — Loopback (reflexive) NAT so internal users reach a public IP. sonicwall.com
  6. SonicWall — SonicOS 7 Network: Address Objects and Service Objects. sonicwall.com

What's next?

Got the gate and the translator straight? Next, go deep on Capture ATP — SonicWall's cloud sandbox — and the RTDMI engine that catches unknown, zero-day malware in memory before it ever reaches your network.