Configuring a DNS filter profile
Use DNS category filtering to control user access to web resources.
DNS filters take precedence over web filters when both are added to a policy.
To create a DNS filter profile:
-
Go to Security > Firewall Objects.
-
Select DNS Filter Profile from the Security Profiles dropdown.
-
Click Create or select an existing profile from the list and click Edit.
-
In the form, enter the following information:
Settings
Guidelines
Name
Required. Enter a name for the profile.
Comments
Optionally, enter comments.
Block DNS requests to known botnet C&C
Enable or disable blocking requests to known botnet C&Cs at the DNS stage.
Enforce 'Safe search' on Google, Bing, YouTube
Enable or disable enforced safe search to help avoid explicit and inappropriate results in search engines.
Restrict YouTube Access
Select the YouTube restriction level, either Strict or Moderate.
This option is only available when Enforce 'Safe Search' is enabled.
FortiGuard Category Based Filter
Enable or disable using the FortiGuard domain rating to inspect DNS traffic.
Static Domain Filter
Domain Filter
Enable to define local static domain filters to allow or block specific domains. The local domain filter has a higher priority than the FortiGuard category-based domain filter.
Click Create in the table to add a domain filter and configure the following settings.
-
Domain: Enter a domain.
-
Type: Select Simple, Regex, or Wildcard.
-
Action: Select Block, Allow, or Monitor.
-
Status: Enable or Disable this domain filter.
External IP Block Lists
Enable to select an external block list.
DNS Translation
Enable to translate a DNS resolved IP address to another IP address specified on a per-policy basis.
Click Create in the table to add a DNS translation and configure the following settings.
-
Type: Select IPv4 or IPv6.
-
Original Destination: Enter the address of a host or subnet that you want translated. When a resolved address in a DNS response matches this destination, the firewall will replace the address with the address in Translated Destination.
-
Translated Destination: Enter the address of a host or subnet that you want the resolved address to be translated to.
-
Network Mask: Enter the netmask for the original and translated destinations. If a single host is used for the original and translated destination, set the netmask to 255.255.255.255.
-
Status: Enable or Disable this DNS translation.
Enabling DNS translation will override matching DNS responses with translated IPs.
Allow DNS requests when a rating error occurs
Enable or disable allowing all domains when FortiGuard DNS servers fail or are unreachable.
Log all domains
Enable or disable logging all domains visited.
Redirect blocked DNS requests
Enable to redirect block DNS requests, then, in Redirect Portal IP, specify the redirect IP or Use FortiGuard Default.
-
-
Click Save to save the DNS filter profile.