Created on 10-19-2022 01:22 PM Edited on 02-02-2024 06:31 AM By Jean-Philippe_P
Description |
This article describes why the browser shows the error ‘Not secure’ or ‘Warning’ when the DNS Filter profile redirects to the ‘Fortinet Secure DNS service Portal’.
|
Scope | FortiGate. |
Solution |
Sometimes when users try to access a website, the following error can be seen: 'You have tried to access a web page which belongs to a category that is blocked.'
If the browser tab has the label 'Fortinet Secure DNS Service Portal', the possible reason behind this could be the FortiGate DNS filter.
To verify if it is blocked by the DNS filter, follow the below steps:
The default behavior of the DNS filter profile for block action is redirect. It redirects the browser to the Fortinet Secure DNS service portal IP 208.91.112.55:
FortiGate-70F (default) # get name : default block-action : redirect
When FortiGuard Category Based Filter categories are set to Redirect to Block Portal, the DNS response will use this IP address in its response to the client. If the client is accessing the domain on a web browser, it will be redirected to the block portal page on this address.
It is expected behavior that the browser cannot match the Common Name (CN) FortiGuard SDNS Blocked Page presented by the SDNS portal in the certificate against the blocked domain accessed by the user.
For example, when the user tries to access Python which belongs to the FortiGuard-based category ‘Information Technology’ and it is blocked by the DNS filter profile, the browser will connect to 208.91.112.55 and receive a certificate with CN that does not match the request it made.
If the domain is not expected to be blocked, consider checking the expected action based on the DNS filter profile for the domain or check the FortiGuard server connectivity by using the command diag debug rating.
More information on how to create static DNS filters to allow the traffic can be seen in the below article: Technical Tip: Static DNS filter to allow/block DNS queries
More information on FortiGuard server connectivity is found at Troubleshooting Tip: Resolving FDS Communication Issues (FortiGuard Distribution Servers).
config dnsfilter profile
block Return NXDOMAIN for blocked domains.
Set block-action as Redirect.
config dnsfilter profile set block-action redirect <---
Workaround:
config system fortiguard set fortiguard-anycast disable set sdns-server-ip 173.143.142.16 208.91.112.220 set port 8888
The web page will not be blocked by the ‘Fortinet Secure DNS service Portal’. |
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.