FQDN Allow / Block Policy

Navigation: Scenarios โ†’ FQDN Policy

Control outbound access using fully qualified domain names (FQDNs) instead of static IPs. The firewall resolves each FQDN to IP addresses and refreshes the resolved list every 60 seconds, so policies stay correct when cloud services change IPs.

Important: TOORCE accepts literal FQDN hostnames only. Wildcards (*.example.com) and regular expressions are not allowed as FQDN entries.

Network design

LAN users send traffic through the firewall. Rules match destination FQDN address objects. The firewall DNS engine re-resolves those names on a 60-second interval and updates the active policy IP set automatically.

FQDN policy architecture diagram

Figure 1 โ€” FQDN resolution, 60-second refresh, allow and deny rules

How FQDN policy works

1. Admin creates Address Object (type FQDN) โ†’ e.g. www.microsoft.com
2. Firewall resolves FQDN via System DNS โ†’ 20.190.x.x, 40.126.x.x, ...
3. Every 60 seconds โ†’ re-resolve and update IP list in kernel/policy
4. Inline rule references FQDN object โ†’ Allow or Deny matched traffic
5. IP changes at provider โ†’ next refresh picks up new addresses (no rule edit)

Prerequisites


Step 1 โ€” Configure system DNS on the firewall

FQDN objects cannot resolve without a working DNS resolver on the appliance.

  1. Go to System Settings โ†’ General โ†’ General tab.
  2. Click Edit and set:
Field Example
System DNS Server 8.8.8.8
Secondary DNS (if available) 1.1.1.1
  1. Click Save.

The firewall uses this DNS server to resolve all FQDN address objects every 60 seconds.


Step 2 โ€” Create FQDN address objects (allowed destinations)

  1. Go to Aliases & Objects โ†’ Address.
  2. Click + Add New.
  3. Create objects for each allowed hostname โ€” one FQDN per object (or one object with multiple literal FQDNs, one per line):
Object name Address type FQDN value Notes
FQDN_Microsoft_Update FQDN www.microsoft.com Literal hostname only
FQDN_Office365 FQDN outlook.office365.com No wildcard
FQDN_Google_DNS FQDN dns.google Valid FQDN

Address object โ€” FQDN type

  1. Click + Create Record.

Allowed FQDN format rules

Allowed Not allowed
www.example.com *.example.com (wildcard)
api.service.example.com .*example.* (regex)
mail.company.local example* (pattern)
sub.domain.co.uk %example.com%

Each entry must be a complete, resolvable hostname. The firewall validates the format and rejects wildcards and regular expressions.


Step 3 โ€” Create FQDN address objects (blocked destinations)

Create separate objects for destinations you want to deny:

Object name Address type FQDN value
FQDN_Block_Social FQDN www.facebook.com
FQDN_Block_Streaming FQDN www.netflix.com
FQDN_Block_Gaming FQDN store.steampowered.com

For multiple blocked sites, create one object per FQDN or group related FQDNs in a single FQDN list object (still literal names only, no wildcards).


Step 4 โ€” Create allow rule (FQDN destinations)

Allow LAN users to reach approved FQDNs only.

  1. Go to Rules & Policies โ†’ Inline Rules โ†’ + Add New.

General

Field Value
Rule Name Allow_Approved_FQDN
Action Allow
Status Enabled

Interfaces

Field Value
Source Interface enp6s0 (LAN)
Destination Interface enp9s0 (WAN)

Source

Field Value
Source Address LAN_Network
Source Service Any

Destination

Field Value
Destination Address Objects FQDN_Microsoft_Update, FQDN_Office365, FQDN_Google_DNS
Destination Service HTTPS (port 443) or specific ports

The rule matches traffic to current resolved IPs of those FQDNs. When Microsoft changes CDN addresses, the firewall picks up new IPs on the next 60-second refresh.

Inline rule โ€” destination FQDN objects

  1. Click + Create Record.

Step 5 โ€” Create deny rules (block FQDN destinations)

Place deny FQDN rules above the general allow rule.

  1. Click + Add New.
Field Value
Rule Name Deny_Blocked_FQDN
Action Deny
Source Interface LAN
Destination Interface WAN
Source Address LAN_Network
Destination Address FQDN_Block_Social, FQDN_Block_Streaming, FQDN_Block_Gaming
Service Any or HTTPS
Log profile Default (recommended โ€” log blocked FQDN hits)
  1. Click + Create Record.
  2. Click Install Policy.

Step 6 โ€” Verify FQDN resolution and 60-second refresh

Check How Expected
DNS working Firewall can resolve FQDN via System DNS Address object shows resolved IPs
Allow rule Browse to allowed FQDN from LAN PC Traffic passed in firewall logs
Deny rule Browse to blocked FQDN Traffic denied / blocked
Refresh cycle Wait 60+ seconds after provider IP change New IPs matched without editing rule
Invalid entry Try adding *.example.com Rejected โ€” wildcards not allowed
Invalid entry Try regex pattern Rejected โ€” regular expressions not allowed

Monitor results in Logs & Events โ†’ Firewall Security โ€” policy name shows Allow_Approved_FQDN or Deny_Blocked_FQDN.


Recommended rule order

Priority Rule name Action Destination
1 Deny_Blocked_FQDN Deny FQDN block objects
2 Allow_Approved_FQDN Allow FQDN allow objects
3 Deny_All_Other_Internet Deny Any (catch-all)

This implements a default-deny internet policy where only approved FQDNs are reachable.


FQDN vs static IP โ€” when to use each

Use FQDN when Use static IP when
Destination uses CDN / changing IPs Destination has fixed IP forever
SaaS cloud services (Microsoft, Google) Internal server with static address
You want automatic IP updates every 60s DNS resolution is not possible

Design notes


Related topics