UniFi · Zone-Based Firewall
UniFi Zone-Based Firewall migration broke your rules: the post-migration audit
Migration does not only break things by blocking. The dangerous failure is the opposite: traffic that used to be blocked is now allowed, and nobody notices.
The fast answer
Do not recreate legacy rules from memory, and do not delete policies to “unblock” things. Migration is an audit job: open the zone matrix, list every custom policy, and verify four things in order — duplicates (the same policy created several times), zone assignments (each network in the zone you intended), missing policies (rules that did not survive the move, especially on restore paths), and default flips (traffic inside one zone that used to be denied and is now allowed). Only then test each traffic path that matters to the business.
What you are looking at, in plain words
The Zone-Based Firewall (ZBF), part of UniFi Network 9.0.108’s official release, groups network interfaces — VLANs, WANs, VPNs — into zones (External, Internal, Gateway, VPN, Hotspot, DMZ, plus custom zones up to a maximum of 30), and policies control traffic between zones. The zone matrix shows each pair: Allow All, Block All, Allow Return Traffic, or Policies. Two matrix facts explain most post-migration surprises. First, traffic is filtered in both directions, and filtering also applies within a single zone — so putting two networks in the same zone is itself a security decision. Second, custom rules take precedence over built-in rules but follow other custom rules, so rule order after migration matters as much as rule content. Network 11 then migrates every site to this model automatically, which is why this audit is mandatory, not optional — see the companion guide: Upgrading to UniFi Network 11: what breaks.
Step 0 — Prove which part is failing
- Write down the traffic paths that must work and must not work, before touching policies. For a small business, the minimum list is: staff to internet, staff to server/printer, VPN user to files, guest to internet only, IoT to internet only (never to staff/server), and cameras to their recorder only. Test each path and record pass/fail — that list is your audit result.
- Open the zone matrix and the policy table. Read every custom policy, not just the ones you remember writing. Note duplicates, policies whose source or destination zone surprises you, and networks sitting in zones you did not choose.
- Check whether a backup or export of the legacy rules exists. If the migration was preceded by an export, that export is your source of truth for what the old rules intended. If no export exists, reconstruct intent from the path list in step 1 — do not invent rules you cannot justify from a business need.
The fixes, in order
- Delete duplicate policies. Migration commonly creates the same policy several times (for example, repeated “allow” policies for Teleport or VPN access). Duplicates do not merely clutter the table: they make future edits unreliable, because fixing one copy leaves the others enforcing the old behaviour. Keep one copy of each intended policy, with a name that states its purpose, and delete the rest. Delete only against the export from Step 0, so a policy deleted in error can be rebuilt from that export.
- Fix zone assignments network by network. Every network belongs to exactly one zone. Check each network’s assignment against your intent — especially IoT, guest, camera, and VPN networks. If your IoT network landed in the Internal zone, decide deliberately: either move it to its own zone (or the Hotspot/DMZ treatment your design requires) or keep it in Internal and add an explicit policy blocking IoT → Internal traffic to everything except what it genuinely needs. Verify the change from an IoT device, not from the console.
- Rebuild rules that did not survive the move. On some restore paths, legacy rules have been reported as simply absent after migration, with no error or warning. Compare the live policy table against your legacy export (or path list) and rebuild anything missing — in the zone model, as a zone-pair policy with an explicit action (Allow, Block, or Reject), not as a copy of legacy syntax. Pay special attention to VPN/Teleport policies and inter-VLAN rules, which are the most commonly reported gaps.
- Rebuild IoT isolation as an explicit block, with allows above it. Where you want “block all between these zones except X”, create the allow policy for X first (for example, IoT device to a specific server IP), then the block policy for the rest — custom rules follow each other in order, so the allow must precede the block. Ubiquiti’s own guidance for this pattern is explicit: to block all traffic between zones while allowing specific access, create the allow policy before the block policy.
- Check VPN and guest paths against the matrix defaults. The built-in defaults are your baseline: VPN → Internal is Allow All, Hotspot → Internal is Allow Return Traffic, and Hotspot/DMZ → each other is Block All. If a VPN user cannot reach files, a custom policy is overriding the default; if a guest reaches the server, a custom allow (or a wrong zone assignment) is overriding the default. Correct the custom policy — do not edit built-in policies, which cannot be modified or removed (you overrule them with a higher-placed custom policy instead).
- Never block the Gateway zone blindly. Blocking traffic to the Gateway zone can disrupt DHCP and DNS for the whole site. If a policy targets the Gateway zone, double-check it before saving — a site-wide outage caused by your own audit is the worst outcome of this exercise.
Do not fix the wrong thing first: do not “fix” a blocked path by allowing everything between two zones. A temporary Allow All between VPN and Internal, or between Guest and Internal, restores the path — and grants every device in the source zone access to every device in the destination zone until someone remembers to remove it. Use a narrow allow (specific device, network, or port) for testing, and replace it with the correct policy once the fault is identified.
Prove it worked
Re-run the full path list from Step 0, from real devices (a staff laptop, a guest phone, a VPN connection, an IoT device), and record pass/fail for both the “must work” and “must not work” columns. A migration audit is only complete when a must-not-work path is proven blocked — a list of working paths alone proves nothing about the newly allowed traffic. Keep the tested policy table as the new baseline, and re-run the list after the next firmware or Network upgrade.
Still not working? Work this ladder in order
- One path still blocked, everything else fine. Find the single policy governing that zone pair, check its order relative to other custom policies, and check both directions — a block in either direction blocks the conversation.
- Traffic allowed that should be blocked. Check zone assignment first (is the source network really in the zone you think?), then duplicate/overriding allows, then whether the “block” you remember was a legacy rule that never migrated.
- Rules look right in the console but traffic disagrees. Confirm the gateway has actually applied the configuration (provisioning state), and test from a device that is genuinely in the source network — testing from the wrong VLAN is the most common false result.
- Everything worked, then broke after an upgrade. Re-run this audit: Network 11 auto-migrates sites, and an upgrade can re-apply defaults around your custom policies. See the companion guide: Upgrading to UniFi Network 11: what breaks.
- None of these steps fixes it. Take the results of Step 0 and the failing step above to Ubiquiti Support via the Ubiquiti Help Center (the official documentation linked in Sources above) — that is the next step, not a different vendor's forum thread.
Mistakes that make it worse
- Deleting policies to unblock a path instead of finding the blocking policy.
- Leaving duplicate policies in place after “fixing” one copy.
- Assuming an IoT network is isolated because it was isolated under legacy rules.
- Blocking the Gateway zone and taking down DHCP/DNS site-wide.
- Testing only “must work” paths and missing newly allowed traffic.
FAQ — Zone-Based Firewall migration, answered
What is a zone, in plain words?
A zone is a group of networks and interfaces that share a firewall policy. Instead of writing a rule per interface, you write a policy between two zones — for example, VPN zone to Internal zone — and it applies to every network in those zones. Each network belongs to exactly one zone, and the zone matrix shows what each zone pair allows, blocks, or leaves to policies.
Why did my IoT devices suddenly reach everything?
Because a network’s zone assignment decides its default treatment. If your IoT network was placed in the Internal zone during migration, it now shares the Internal zone’s permissive defaults instead of the isolation you had built with legacy rules. Isolation must be rebuilt as an explicit policy (or by moving the network to its own zone) — it does not survive as an assumption.
Can I go back to legacy firewall rules after migrating?
Treat migration as one-way for planning purposes: Network 11 migrates every site to the Zone-Based Firewall automatically, so rebuilding legacy rules is not a durable strategy. The durable fix is the audit in this guide — correct policies in the zone model, and test every path that matters.
Sources
Ubiquiti Help Center — Zone-Based Firewalls in UniFi (built-in zones, zone matrix defaults, one-network-one-zone, 30-zone maximum, rule precedence, allow-before-block pattern, Gateway-zone warning) · Migrating to Zone-Based Firewalls in UniFi (migration may generate multiple or redundant rules; remove redundant rules after testing) · Companion guides: Upgrading to UniFi Network 11: what breaks.
Did this fix work for you?
Your reaction is stored only in your own browser — it is not sent to us.