A CDN FQDN in a deny policy takes down Teams
A wildcard FQDN object in a block policy looks like the most direct way to cut off a social network. When the domain lives on a CDN, the rule also cuts off everyone sharing the same IP.
The request was simple: block two video social networks on the Wi-Fi. The rule was simple too: wildcard FQDN objects for the CDN domains of those networks and a deny policy. Minutes later, Office 365, Teams and the Microsoft login stopped working on the same Wi-Fi. With the rule undone, everything came back.
1. Why the object catches the neighbor
The FortiGate resolves each FQDN into IP addresses. The policy matches by destination IP, not by the name the user asked for.
CDNs like Akamai serve thousands of domains on the same addresses. The IPs the social network domains resolved to were the same ones serving Office and Microsoft authentication domains. To the policy, there was no difference.
2. How to see it before applying
This command shows the IPs each FQDN object resolved to:
diagnose firewall fqdn list-ip
Cross these IPs with those of the other FQDN objects on the device. If an IP shows up in two objects, the deny policy will catch both. On FortiOS 7.4 the command is list-ip: the old list no longer exists.
3. The sign in the log
On the block line, the destination internet service comes with the CDN name, such as Akamai-CDN, and not with the platform you meant to block. The number of blocks is also much higher than expected. Either sign is enough to undo the rule and investigate.
4. What to use instead
Application Control. It identifies the application by SNI and behavior, not by IP. In the same case, it blocked both social networks over Akamai, Fastly and Google Cloud, without touching the Office and Teams traffic on the same addresses.
If the catalog does not show the application, check the database version before concluding it does not exist. The FortiGate does not update the database of a feature no policy uses. In diagnose autoupdate versions, the field that matters is Last Update Attempt: a database stuck at an old date was never even requested. Once you apply the profile to a policy, it updates itself within minutes.
Rule of thumb: FQDN in a deny policy only for domains with their own infrastructure, checked one by one. To block an application, use Application Control.
Want to check your block rules before they take someone down?
request a demo