Most engineers think…
Most people open a SonicWall and go straight for 'the firewall rules', expecting to type source and destination IPs like an old ACL. That habit makes the box confusing and your rules brittle.
SonicWall is zone-based and object-driven. You write rules between zones, not between IPs. An interface (a physical port, a VLAN sub-interface, a PortShield group) lives in exactly one zone; objects name the hosts and services a rule points at; and routing decides the path out. Get those four layers straight and your access rules and NAT policies fall into place — miss one (say, a new VLAN left out of its zone) and traffic dies with no obvious error.
① Zones — the trust groups your rules live between
The first idea to internalise: on a SonicWall you do not write rules between IP addresses, you write them between zones. A zone is a trust group, and SonicOS 7 ships with seven defaults: LAN, WAN, DMZ, VPN, SSLVPN, WLAN and MULTICAST. You can add your own custom zones too.
Every zone carries a security type that sets its baseline trust: Trusted (your LAN), Public (the WAN / internet-facing), Wireless (WLAN) and Encrypted (VPN / SSLVPN). The security type is what tells the firewall how suspicious to be about traffic arriving on that zone.
Intra-zone vs inter-zone
The behaviour that trips up newcomers: traffic within the same zone (intra-zone) is allowed by default, while traffic between zones (inter-zone) is governed by access rules. So two hosts in LAN can talk freely, but LAN-to-WAN, LAN-to-DMZ and DMZ-to-LAN are each a rule you control. That single design choice is why zone placement matters so much.
When asked how SonicWall rules work, lead with: rules are written between zones, intra-zone is allowed by default and inter-zone is controlled. Then name the security types — Trusted, Public, Wireless, Encrypted. That framing alone signals you understand the box.
On a SonicWall, access rules are written between…
② Interfaces — the ports that sit inside a zone
An interface is the thing that actually carries traffic, and on SonicWall every interface lives in exactly one zone. The simplest is a physical port assigned to a zone (X0 to LAN, X1 to WAN, and so on). From there you can carve more:
The interface types to name in an interview
- VLAN sub-interface — a virtual 802.1Q-tagged interface on a physical port, one per VLAN, each placed in its own zone.
- PortShield — group several physical switch ports into one zone/interface so they act as a single segment; very common on the TZ series.
- LAG / port aggregation — bond ports together for more bandwidth or redundancy.
- Transparent and Wire / Tap mode — drop the firewall inline at Layer 2 (Wire) or inspect a SPAN/mirror copy (Tap) without re-IP'ing the segment.
On the edge you usually have multiple WAN interfaces with failover & load balancing. Each interface also carries its own per-interface settings — DHCP server, DNS, MTU and more.
A trust group of interfaces. Access rules are written between zones; same-zone traffic is allowed by default, between-zone is gated by rules.
Groups several physical switch ports into one zone/interface so they act as a single segment — common on the TZ series.
A named host, range, network or FQDN that access rules and NAT policies reference instead of a raw IP — build once, reuse everywhere.
Routes on source/service/app, not just destination, with route probes and metrics so you can steer traffic or fail over to a second WAN.
Creating a VLAN sub-interface or a new physical interface does not place it in a zone automatically — it starts Unassigned. Until you set its zone, no access rule matches it and traffic dies with no obvious error. Always set the zone right after creating the interface.
Which feature groups several physical switch ports into one zone/interface, common on TZ models?
③ Objects — the named things rules point at
SonicOS 7 is object-driven: you almost never type a raw IP or port number into a rule. Instead you build an object once and reference it everywhere. The two you use constantly are Address Objects (a host, an IP range, a network, or an FQDN) and Service Objects (a port/protocol, e.g. HTTPS = TCP/443).
Both can be bundled into Groups — an Address Group of all your servers, a Service Group of all the ports an app needs — so one line in a rule can stand for many things. Alongside them sit Zone objects and Schedule objects (so a rule can apply only during business hours).
Why this matters
Access rules and NAT policies reference these objects. Build the object once and every rule that uses it updates when you edit it — readable configs, one place to change, far fewer mistakes than re-typing addresses into ten rules.
▶ Watch a scanner on a PortShield LAN reach the internet
How one packet is checked end-to-end on a SonicWall. Press Play for the healthy path, then Break it to see the classic failure.
You must allow access to one server on three ports across many rules. The cleanest SonicOS 7 way is…
④ Routing & design sanity — picking the path out
Zones and objects decide whether traffic is allowed; routing decides where it goes. SonicWall gives you three tiers. Static routes are manual next-hop entries for known destinations. Policy-Based Routing (PBR) routes on more than the destination — source, service or app — and adds route probes (liveness checks) plus metrics so you can steer traffic or fail it over to a second WAN. For larger networks there is dynamic routing: OSPF, RIP and BGP.
When several routes match the same destination, route precedence (most-specific prefix first, then metric) decides the winner. A probe that goes down can pull a route out so traffic re-homes automatically.
Design sanity check
Put it together: a host's interface is in a zone, the zone-to-zone access rule allows it, an object names the destination, and a route sends it out the right WAN. If any one layer is wrong — most often an interface left out of its zone — the rule never matches and the packet is dropped silently. Always check zone assignment first.
Priya at Sundar Logistics in Kochi faces this
She adds VLAN 30 for the warehouse scanners and writes a LAN-to-WAN access rule, but the scanners get no internet — pings to 8.8.8.8 just time out.
The VLAN 30 sub-interface was created but left on 'Unassigned' — it is not in the LAN zone the access rule was written for.
On the interfaces page the VLAN 30 sub-interface shows Zone = Unassigned, so the LAN-to-WAN rule never matches it and there is no NAT/route for an unzoned segment.
Network ▸ System ▸ Interfaces ▸ VLAN 30 sub-interfaceEdit the VLAN 30 sub-interface, set Zone = LAN so it inherits the LAN-to-WAN access rule and the WAN NAT policy, give it an IP and DHCP scope, and save.
Re-test from a scanner — DNS resolves and 8.8.8.8 replies; the LAN-to-WAN access rule hit-counter increments, confirming the rule now matches.
Don't assume a rule is matching. SonicOS shows a hit-count per access rule — generate the traffic and watch the counter rise. If it stays at zero, the traffic never reached that rule, which usually means a zone or routing problem, not the rule itself.
A newly added VLAN has a LAN-to-WAN rule but still gets no internet. The most likely cause is…
🤖 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.
🧠 In your own words
Type one line: why does a SonicWall write rules between zones and reference objects, instead of just using IP addresses? Then compare with the expert version.
🗣 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
- Zone
- A logical trust group that interfaces are placed into; the unit access rules are written between. Defaults: LAN, WAN, DMZ, VPN, SSLVPN, WLAN, MULTICAST.
- Security type
- A zone property — Trusted, Public, Wireless or Encrypted — that sets the baseline trust for traffic arriving on that zone.
- Intra-zone / inter-zone
- Traffic within one zone (allowed by default) versus traffic between zones (governed by access rules).
- Interface
- A physical port, VLAN sub-interface, PortShield group or LAG that carries traffic and lives in exactly one zone.
- VLAN sub-interface
- A virtual 802.1Q-tagged interface on a physical port, one per VLAN, each assigned to its own zone.
- PortShield
- Grouping several physical switch ports into one zone/interface so they act as a single segment — common on TZ models.
- Address / Service object
- Named hosts, ranges, networks or FQDNs (address) and ports/protocols (service) that access rules and NAT policies reference.
- Policy-Based Routing (PBR)
- Routing on source/service/app, with route probes and metrics, so traffic can be steered out a chosen path and failed over.
- Route precedence
- The logic — most-specific prefix first, then metric — that decides which matching route wins when several apply.
📚 Sources
- SonicWall — SonicOS 7 Administration Guide: Network — System (Interfaces & Zones). sonicwall.com/support
- SonicWall — SonicOS 7 Network Settings: PortShield and 802.1Q VLAN sub-interfaces. sonicwall.com/support
- SonicWall — SonicOS 7 Policies: Objects — Address Objects/Groups & Service Objects/Groups. sonicwall.com/support
- SonicWall — SonicOS 7 Routing: Static Routes, Policy-Based Routing & route probes. sonicwall.com/support
- SonicWall — SonicOS 7 Dynamic Routing: OSPF, RIP and BGP. sonicwall.com/support
- SonicWall — SonicOS 7 Network: Failover & Load Balancing (multiple WAN). sonicwall.com/support
What's next?
Got the building blocks? Next, put them to work: how SonicWall access rules and NAT policies are actually written between zones using these objects — rule order, the implicit deny, source/destination/service, and the NAT policy that rewrites the address on the way out.