Description
This article describes how to configure static DNS filter users which allows/blocks specific domains.
Scope
FortiGate.
Solution
Three types of URL can be defined.
For example: www.fortinet.com
For example:
For example:
For example:'fortinet*.com' will match 'fortinetttttttt.com' but not 'fortinetsupport.com'.
'/i' symbols means: makes the pattern case sensitive.
For example:'/FORTINET/i' will not match with 'fortinet'.
'^' symbols means: at the beginning of the string.
For example:'^fo' will match 'fortinet.com'
'.' symbol means: match the same or different character than the one before the symbol, but is followed by the rest of the sentence.
For example:'fortinet.com' will match 'fortinetacom', 'fortinetbcom', 'fortinetzcom'.
Configuring a domain filter.
From GUI.
From CLI.
config dnsfilter domain-filter
edit <ID>
set name <name>
config entries
edit <ID>
set domain <domain>
set type <simple/regex/wildcard>
set action <block/allow/monitor>
set status <enable/disable>
next
end
end
Note:
If the action is set to 'Redirect to Block Portal' for any domain then performing the 'nslookup' for that domain will give the IP 208.91.112.55 (fortinet-block-page-55.fortinet.com) if redirect portal IP is set to FortiGuard default in the DNS profile settings.
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.