Troubleshooting Tip: FortiGuard connection through a proxy failed
| Description | This article describes a possible reason why the connection to FortiGuard Distribution Network might fail when the FortiGate is configured to use a proxy for such a connection. |
| Scope | FortiGate using a proxy to connect to FortiGuard Distribution Network. |
| Solution | If there is a proxy between FortiGate and FortiGuard, the FortiGate must be configured to go through the proxy as in the following KB article: Technical Tip: How to identify if the FortiGate is using proxy server to receive update from FortiGuard by analyzing the debugs
To troubleshoot possible issues, collect the updated process debug output:
diagnose debug application update -1
After collecting the output, to stop the debug processes:
diagnose debug disable
If the output shows the following error, it indicates that the proxy requires the FortiGate to authenticate:
negotiate_proxy_tunnel[138]-tunneling request=[CONNECT 149.5.232.66:443 HTTP/1.0 ] response=[HTTP/1.0 407 Proxy authentication required
[Output omitted for brevity]
input[type=date], input[type=email], input[type=number], input[type=password], input[type=search], input[type=tel], input[type=text], input[type=time], input]
config system autoupdate tunneling
The connection should succeed after taking these steps.
Note: In FortiOS 7.6.3 and above, the ' config system autoupdate tunneling ' command has been removed and replaced with 'config system fortiguard'. See CLI changes in release notes: Changes in CLI
config system fortiguard set proxy-username <username> set proxy-password <password> end
Note: There are important limitations to consider when connecting to FortiGuard using a proxy. To read about them, see this document: Using a proxy server to connect to the FortiGuard Distribution Network |
