services@j3mweb.com
Call us : (214) 234-2665
How to Create Firewall Rules in UniFi
j3mweb Team 15 May 2026 Ubiquiti UniFi

Firewall rules control exactly what traffic is allowed to pass between networks, out to the internet, or in from it. Getting the order and specificity right matters as much as the rule itself.

Steps

  1. Open the UniFi Network application and go to Settings > Firewall & Security.
  2. Click Create Entry (or, on the zone-based firewall, select the source and destination zones first, then add a rule to that zone pair).
  3. Choose the rule type — common options include LAN In, LAN Out, or a zone-based rule between specific networks/VLANs.
  4. Define the Source (a network, VLAN, IP address, or IP group) and the Destination the same way.
  5. Set the Action — Accept, Drop, or Reject — and optionally restrict it to a specific port or protocol.
  6. Save the rule, then test the traffic it's meant to affect before assuming it's working correctly.

Common Questions

What order do rules apply in?

Rules are evaluated top to bottom, and the first matching rule wins — a broad "allow all" rule placed above a more specific "block" rule will prevent the block from ever taking effect, so put your most specific rules first.

How do I avoid locking myself out while testing?

Keep a rule allowing management access from your current network above anything you're testing, and consider testing new restrictive rules from a wired connection rather than Wi-Fi, so a mistake doesn't also cut off the access point delivering your connection.

Back to Resources
Keep Reading

More Resources

How to Create an Email Signature in Outlook Microsoft 365
24 July 2026
How to Create an Email Signature in Outlook

A step-by-step walkthrough for setting up a professional email signature in Outlook on desktop, the web, and mobile — including logos, links, and making it insert automatically.

Read more
How to Fix Your Email If It's Been Hijacked and Is Sending Spam IT Support
23 July 2026
How to Fix Your Email If It's Been Hijacked and Is Sending Spam

If contacts are getting spam or scam emails from your address, here's the cleanup order that actually locks the attacker out — not just changing your password and hoping.

Read more
What Are SPF, DKIM, and DMARC? (How They Stop Email Spoofing) Security
22 July 2026
What Are SPF, DKIM, and DMARC? (How They Stop Email Spoofing)

The three DNS records that determine whether someone can send email that looks like it's from your domain — explained without the jargon, plus how to check yours.

Read more
j3mweb Team
Online · replies in a few hours
Hi there! 👋 Tell us a bit about your project and we'll get right back to you.
1 Contact
2 Project
3 Details