FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
Alan_
Staff
Staff
Article Id 421739
Description

This article describes how to troubleshoot DNS filter queries that resolves with FortiGuard IPs.

Scope FortiGate.
Solution

When a DNS query resolves with  FortiGuard IPs (for example, 208.91.112.55), it means that the DNS query is matching a DNS filter which is redirecting the traffic to the FortiGuard Block Portal.

 

Consider a common scenario:

 

ScenarioScenario

 

In this scenario:

  • End Users use FortiGate as a DNS server.
  • FortiGate is configured to listen for DNS queries on interface internal1, where a DNS filter is applied.

config system dns-server
    edit "internal1"
        set dnsfilter-profile "test_dns_filter" <-----
    next
end

 

DNS filters can also be applied to firewall policies.

 

This means that FortiGate checks the categories of the DNS queries with FortiGuard. The default DNS filter profile (as well as any newly created DNS filter profile) is configured to redirect any DNS query that is categorized as as 'Security Risk' to the block portal.

 

Default action for categories under "Security Risk" is "Redirect to Block Portal"Default action for categories under "Security Risk" is "Redirect to Block Portal"

 

In this example, the action for the Domain Parking category is set to Redirect to Block Portal. If the end user tries to reach a website that is categorized as Domain Parking, it gets blocked.

 

Example of a Block pageExample of a Block page

 

The DNS query is resolved with FortiGuard IP 208.91.112.55.

 

DNS query blocked is resolved with FortiGuard IPDNS query blocked is resolved with FortiGuard IP

 

It is possible to filter for particular domains in the DNS filter. This is something that should be done to avoid having the FortiGate forwarding internal/local DNS queries to FortiGuard.

 

In most cases, these DNS queries are unknown for FortiGuard and will be categorized as 'Unrated', for which the default action is 'Monitor. However, FortiGuard may categorize an entry as 'Newly Observed Domain' or any category for which the action is 'Redirect to Block Portal', eventually preventing access to an internal resource.

 

In this scenario, the administrator should avoid forwarding internal domains to FortiGuard at all.

 

In this example, assume test.com is an internal domain. FortiGate forwards the following DNS query to FortiGuard, which categorizes it as 'Domain Parking' and blocks the connection.

 

test2.com.png

 

In the DNS filter, Domain filters can be configured in order to set up a static action to a particular DNS entry or domains.

 

Regex to filter domainsRegex to filter domains

 

The a.test.com example now works correctly.

 

a.test.com now worksa.test.com now works