Skip to content

Web Filtering

Web filtering controls which websites and internet services users on the network are permitted to access. Two complementary methods are available, each operating at a different layer:

Method How it works Granularity Bypass resistance
Firewall Rules + Objects Blocks actual TCP/UDP connections by IP, subnet, FQDN, app, or category Rule-level — precise per source/destination control High — blocks at connection level regardless of DNS
DNS Filtering Answers 0.0.0.0 for blocked domains, apps, or categories when clients look them up Domain-level — covers all subdomains; per client network if needed Moderate — can be bypassed by DoH or hardcoded DNS

These methods can be used independently or combined. A typical layered deployment uses DNS filtering with Apps & Categories to block by name (apps, categories, your own domain lists), and firewall rules for connection-level control.


Method 1: Firewall Rules with Objects

This method uses firewall-access rules combined with Firewall Objects to permit or deny traffic based on IP addresses, subnets, FQDNs, apps, or categories. Unlike DNS filtering, it operates at the connection level — a client that successfully resolves a domain will still be blocked if a matching firewall rule denies the connection.

When to use this method:

  • Blocking specific applications (e.g. deny all traffic to Facebook's IP ranges)
  • Denying access to known malicious IP ranges
  • Permitting only approved destinations from a guest or IoT network
  • Environments where DNS bypass (DoH, hardcoded DNS) is a concern

How it works:

  1. Define a Firewall Object containing the destinations to block or permit — using net (IP/subnet), fqdn (domain), app or category (from Apps & Categories).
  2. Create a firewall-access rule referencing that object as the source or destination.

GUI Configuration

Navigate to ORCHESTRATOR → Configuration → Object Groups, create a Firewall Object with the destinations to control. Then navigate to Device Settings → Security → Firewall Policies and add an access rule using Object as the destination type.

See Firewall Objects and Firewall Policies for full configuration details.

CLI Configuration

Block specific applications by name:

object-group blocked_apps
  app Facebook
  app TikTok
  app YouTube

firewall-access 100 deny outbound eth0 dst_object blocked_apps

Block a set of IP ranges and domains:

object-group blocked_sites
  net 203.0.113.0/24
  fqdn malicious-site.example.com

firewall-access 110 deny all dst_object blocked_sites

Permit only approved destinations (default-deny approach):

object-group approved_dst
  fqdn corporate.example.com
  net 10.0.0.0/8

firewall-access 100 permit outbound eth0 dst_object approved_dst
firewall-access 200 deny outbound eth0

Key points:

  • app and category entries match the app's own networks plus the IP addresses its domains resolve to; the lists come from mFusion and update automatically. Large services share CDN addresses, so a deny on an app or category can also block other sites — to block by name, prefer Method 2. See Firewall Objects — Apps and Categories.
  • fqdn entries in objects are resolved periodically; resulting IPs are matched against connection destinations — this differs from DNS filtering which intercepts the query itself
  • Rules are evaluated top-to-bottom; place more specific permits before a broad deny

Method 2: DNS Filtering

DNS filtering answers client DNS queries at the router: a blocked name gets 0.0.0.0, so the client never connects. A rule can name:

  • a domain — the domain and all its subdomains;
  • an app (e.g. TikTok) or a category (e.g. Gambling and Betting) from Apps & Categories — every domain of the app or category, kept up to date from mFusion;
  • all domains — a catch-all for whitelisting.

A rule can apply to every client, or only to some client networks with a Source — for example, block adult content on guest Wi-Fi only. Filtering needs no changes on client devices.

Use cases:

  • Company policy — block gambling and adult content for every user with two category rules.
  • Different rules per network — block TikTok on the staff network, adult content on guest Wi-Fi, nothing on the management network.
  • Your own list — create a Custom App with your domains in Apps & Categories and deny it like any app.
  • Whitelisting — allow only approved domains on a kiosk or IoT network.
  • Stop DNS bypass — deny the Encrypted DNS category so browsers cannot switch to DNS-over-HTTPS resolvers.

Prerequisites

Clients must use the router as their DNS server. Either hand out the router's LAN address as DNS server by DHCP, or redirect client DNS to the router. A DNAT rule captures port 53 traffic from clients, and a paired firewall-input rule permits the redirected traffic into the router itself:

firewall-dnat 201 redirect inbound br-vlan1 udp dport 53
firewall-input 201 permit inbound br-vlan1 udp dport 53

Replace br-vlan1 with the LAN-facing interface for your deployment.

App and category rules also need Apps & Categories on mFusion: the router downloads the lists it uses from its mFusion.

How Rules Are Evaluated

Behaviour Detail
Rule order Rules are checked from the lowest rule number up; the first rule that matches a name decides.
Subdomains A domain covers the domain and all its subdomains — no wildcard syntax: domain facebook.com also matches www.facebook.com and m.facebook.com.
App All domains of the app — from the app database, plus your Custom App's if it has the same name.
Category All domains of the category, including apps and domains added by later app database updates, and Custom Apps set to that category.
All Every domain; used as a catch-all deny all at the highest rule number.
Source Optional. The rule applies only to clients in these IP addresses or networks; rules without a source apply to every client. For each client, the rules without a source plus the rules for its networks are checked, in rule order.
Blocked answer 0.0.0.0 (and :: for IPv6 queries).

Exceptions need a lower rule number

The first matching rule wins, so an exception must come before the broader rule: rule 100 permit domain business.facebook.com and rule 110 deny domain facebook.com block Facebook except business.facebook.com. With the numbers the other way round, rule 100 (the deny) would match business.facebook.com first.

Example: rule 100 permit domain www.bet365.com and rule 110 deny category "Gambling and Betting" — www.bet365.com resolves (rule 100 matches first), while bet365.com and every other gambling domain are blocked.

Apps, Categories and Custom Apps

The app and category lists come from mFusion's Apps & Categories — 26 categories and about 1,500 apps, plus your Custom Apps. Look up which app and category a domain belongs to in ORCHESTRATOR → Security Intelligence → Apps & Categories → Lookup before writing a rule.

For your own list of domains, create a Custom App in ORCHESTRATOR → Security Intelligence → Apps & Categories → Custom Apps and use it like any app. A Custom App is maintained once on mFusion and reaches every router without Apply Config.

Note

DNS Groups (dns-group) are retired: Custom Apps replace them.

GUI Configuration

Navigate to ORCHESTRATOR → Configuration → Gateway Devices (or Branch Devices), open the device, then Security → DNS Filtering. For a router managed locally, use Device Settings → Security → DNS Filtering on the router's own GUI — it has the same fields.

Fill in Add DNS Filter Rule below the rule list (or click the edit icon of a rule):

DNS Filtering - rules and the rule form

Field Example Description
Rule No. 110 100–299. Lower numbers are checked first.
Action Deny Deny answers 0.0.0.0; Permit resolves the name normally (use it for exceptions before a broader deny).
Destination Domains App Domain Name, App, Category or All.
Domain Name / App / Category TikTok The domain, or an app or category from Apps & Categories (Custom Apps are listed first).
Source 192.168.10.0/24 Optional. Client IP addresses or networks, comma-separated (e.g. 192.168.10.0/24,10.1.1.5). Empty = every client.
Remark Staff network Optional description.

Click Continue, then Save, and Apply Config to push the rules to the router. The rule list shows the destination and source of each rule:

DNS Filtering - rule list

Note

A rule whose app or category is no longer in Apps & Categories (renamed or removed by an app database update, or a deleted Custom App) is marked not found in Apps & Categories, and Apply Config shows a warning. The router keeps using the last list it received.

CLI Configuration

Syntax:

dns-filter <rule-no> permit|deny domain <domain> | app <name> | category <name> | all [src <ip|network>[,<ip|network>...]] [remark <text>]
Parameter Description Example
<rule-no> Rule number; lower numbers are checked first 110
permit / deny Resolve normally / answer 0.0.0.0 deny
domain <domain> A domain and its subdomains domain example.com
app <name> An app from Apps & Categories; quote names with spaces app TikTok, app "X Twitter"
category <name> A category from Apps & Categories; quote names with spaces category "Gambling and Betting"
all Every domain (catch-all) deny all
src <ip\|network>,... Optional: only for these clients; a bare IP is a /32 src 192.168.10.0/24,10.1.1.5
remark <text> Optional description; quote text with spaces remark "Guest Wi-Fi"

Remove a rule with no and the same parameters, e.g. no dns-filter 100 deny category Adult.

Key points:

  • For app and category rules, the CLI only saves the rule; the router downloads the list from mFusion in the background and applies it as soon as the download is done (seconds; up to a minute for the largest categories on an XE-300). The command returns at once, even when mFusion is unreachable.
  • The router checks its lists every 10 minutes and downloads a list again only when it changed (an app database update or a Custom App edit).
  • If mFusion is unreachable, the router keeps filtering with the lists it already has. On the gateway series, lists are kept on disk, so filtering works right after a reboot; branch routers download them again after a reboot, once the WAN is up.

Example: Blacklisting

Default-permit: all domains resolve normally except those explicitly denied.

dns-filter 100 deny category "Gambling and Betting" remark "Company policy"
dns-filter 110 deny category Adult
dns-filter 120 deny domain malicious-site.example.com

Rules 100 and 110 block every domain in the two categories (and their subdomains); rule 120 blocks one domain. Every other domain resolves normally — no permit all rule is needed.

Example: Whitelisting

Default-deny: all domains are blocked except those explicitly permitted. A deny all catch-all at a high rule number blocks everything; permit rules with lower numbers allow the approved domains.

Note

Many sites depend on multiple domains — CDNs, authentication endpoints, API services, and analytics. Permitting a site requires permitting all its supporting domains; permitting an app covers the domains Apps & Categories lists for it. See Identifying Required Domains.

dns-filter 100 permit domain google.com
dns-filter 110 permit domain googleapis.com
dns-filter 120 permit domain gstatic.com
dns-filter 130 permit domain ransnet.com
dns-filter 140 permit app Company-Portal
dns-filter 900 deny all

The deny all catch-all at rule 900 blocks any domain not permitted by a lower-numbered rule. Rule 140 permits a Custom App (Company-Portal) with the company's own domains.

Example: Different Rules per Network

              Internet
                 |
          [WAN] Router (DNS Filter)
           |                   |
   vlan10 Staff LAN      vlan20 Guest Wi-Fi
   192.168.10.0/24       192.168.20.0/24

Topology Summary:

The router is the DNS server of both networks. All clients are blocked from gambling sites; the staff network is also blocked from TikTok; the guest network is also blocked from adult content.

dns-filter 100 deny category "Gambling and Betting" remark "Company policy"
dns-filter 110 deny app TikTok src 192.168.10.0/24 remark "Staff network"
dns-filter 120 deny category Adult src 192.168.20.0/24 remark "Guest Wi-Fi"

Rule 100 has no source and applies to every client; rules 110 and 120 apply to one network each.

Platform Notes

Item Gateway series (HSG, CMG) Branch series (UA-520, HSA-520, XE-300)
Source networks No limit Up to 4 different source networks per router (each runs its own DNS server instance)
Exact host names in an app list (e.g. a single tracker host) Blocked exactly Also block their subdomains
Source rules with a DNS redirect rule Supported A source rule applies to queries sent to the router itself; give these clients the router as their DNS server.

Verification

show dns-filter

Example output:

DNS Filter Rules:  (applied at 2026-11-08 00:07:24)
  ID      Action    Type      Target                                Source              Remark
  ------  --------  --------  ------------------------------------  ------------------  ------
  100     deny      category  Gambling and Betting (4828 domains)   any                 Company policy
  110     deny      app       TikTok (40 domains)                   192.168.10.0/24     Staff network
  120     deny      category  Adult (52583 domains)                 192.168.20.0/24     Guest Wi-Fi

The status in brackets shows the last background update; the number of domains confirms the router received each list.

From a client, a blocked domain returns 0.0.0.0:

C:\Users\yingd>nslookup playboy.com
Server:  dns.google
Address:  8.8.8.8

Name:    playboy.com
Address:  0.0.0.0

The client here is configured to use an external resolver (8.8.8.8); the DNAT rule redirects the query to the router, which answers 0.0.0.0. After removing the block (no dns-filter 110 deny category Adult), the domain resolves normally:

C:\Users\yingd>nslookup playboy.com
Server:  dns.google
Address:  8.8.8.8

Name:    playboy.com
Addresses:  2606:4700:7::d1
            2606:4700:3033::d0
            162.159.140.211
            162.159.141.211
Items to Test Command Expected Outcome
Rules and lists on the router show dns-filter Each app or category rule shows its domain count. (list not received) means the router has not downloaded the list yet.
Background update status show dns-filter (first line) (applied at <time>). mFusion unreachable, using cached lists means the router could not reach mFusion on the last check.
Blocked for everyone From any client: nslookup bet365.com Address: 0.0.0.0
Blocked for one network From a staff client (192.168.10.x): nslookup www.tiktok.com Address: 0.0.0.0
Not blocked elsewhere From a guest client (192.168.20.x): nslookup www.tiktok.com A real IP address (rule 110 applies to the staff network only).
Clients use the router On a client: ipconfig /all (Windows) The DNS server is the router's LAN address, or DNS is redirected to the router.

Identifying Required Domains

When whitelisting, or when a site breaks after a category deny, use tcpdump on the router to capture the DNS queries clients make while browsing the site:

tcpdump interface br-vlan1 port 53 detail

Watch the output while navigating the site fully — including login, media loading, and background API calls. Check each domain with Apps & Categories → Lookup, and permit the ones the site needs with a lower rule number.

Troubleshooting

Symptom Likely Cause Solution
Blocked domains still resolve Clients use another DNS server (e.g. 8.8.8.8 from DHCP) and DNS is not redirected Set the router as the DHCP DNS server, or add the DNAT redirect from Prerequisites.
Blocked domains still resolve in some browsers The browser uses DNS-over-HTTPS Deny the Encrypted DNS category, and block outbound TCP port 853 (DNS-over-TLS) with a firewall rule.
An exception (permit) has no effect The broader deny has a lower rule number and matches first Give the permit rule a lower number than the deny it overrides.
show dns-filter shows (list not received) The router cannot reach mFusion, or the name is not in mFusion's Apps & Categories Check the router's connection to mFusion. Check the name in ORCHESTRATOR → Security Intelligence → Apps & Categories — a misspelt app or category name in a rule typed on the CLI is never found.
First line says mFusion unreachable, using cached lists WAN or mFusion connection down during the last check No action needed: the router keeps filtering with the cached lists and retries every 10 minutes.
A source rule does not apply to some clients Their address is not in the rule's networks, or (branch routers) their queries go to an external DNS server and are redirected Check the client's IP. On branch routers, give the clients the router as their DNS server for per-source rules.
CLI says DNS filter takes up to 4 source networks on this router Branch router source-network limit Combine networks into a larger prefix (e.g. 192.168.0.0/16), or reuse the same networks in several rules.
A site stops working after a category deny The site depends on a domain in that category (e.g. an ad or analytics domain) Find the domain as in Identifying Required Domains, then add a permit domain rule with a lower rule number.

Limitations

Limitation Detail
DNS over HTTPS (DoH) Browsers can send DNS queries over HTTPS directly to a cloud DoH provider, bypassing the router. Deny the Encrypted DNS category to block the known DoH resolvers.
DNS over TLS (DoT) DNS queries over TCP port 853 bypass the DNAT redirect. Block outbound port 853 if needed.
Hardcoded DNS Applications using a hardcoded DNS server IP bypass the DNAT redirect.
VPN / Proxy Traffic inside a VPN or proxy tunnel bypasses DNS filtering.
Connections by IP address An application that connects to an IP address without a DNS lookup is not filtered. Combine with Method 1 where needed.

To prevent clients from bypassing DNS controls:

firewall-access 150 deny outbound eth0 udp dport 53
firewall-access 151 deny outbound eth0 tcp dport 53
firewall-access 152 deny outbound eth0 tcp dst 1.1.1.1,1.0.0.1,8.8.8.8,8.8.4.4 dport 443

Rules 150–151 block direct DNS to external resolvers; rule 152 blocks HTTPS to known DoH providers. The DNAT redirect continues to intercept all port 53 traffic and process it locally.


Best Practices

  • Block by name with DNS filtering, control connections with firewall rules — DNS filtering matches names exactly; firewall objects match IP addresses, and large services share CDN addresses.
  • Put exceptions first — permit rules must have lower rule numbers than the deny they override.
  • Use categories for policy, apps for specific services — categories follow app database updates without config changes.
  • Make filtering hard to bypass — clients use the router for DNS (DHCP or DNAT redirect); deny Encrypted DNS; block outbound TCP 853.
  • Use Source for per-network policy instead of separate routers or VLAN-specific DNS servers.
  • Check the effect with Lookup — before denying a category, look up the domains your users rely on.
  • Device hardening — keep management access restricted to LAN; see Device Hardening.