Skip to main content
MFARRAG
Staff
Staff
November 20, 2024

Technical Tip: Updating FortiMail FortiGuard services using SQUID web proxy

  • November 20, 2024
  • 0 replies
  • 964 views
Description

This article describes how to update FortiMail FortiGuard AntiSpam and Antivirus licenses through a SQUID web proxy.

Scope

All supported versions of FortiMail.

Solution

From v7.4.0, FortiGuard antispam queries will be supported by using a web proxy.

Before v7.4.0, only licensing and FortiGuard Antivirus queries can be updated through proxy.

 

  1. In the FortiMail CLI, apply the following command:

config system fortiguard antivirus

    set tunneling-status enable

    set tunneling-address <SQUID_PROXY_IP>

    set tunneling-port <SQUID_PROXY_PORT>

end

 

Replace <SQUID_PROXY_IP> with the IP address of a used SQUID proxy server and <SQUID_PROXY_PORT> with the appropriate port number.

 

CLI Command example:

 

config system fortiguard antivirus

    set tunneling-status enable

    set tunneling-address 10.5.29.211

    set tunneling-port 3128

end

 

Optionally, for enhanced security, include a tunneling username and password.

 

  1. Use the following commands in the FortiMail CLI to debug and verify the update process:

 

diagnose debug application updated 7

diagnose debug enable

execute update now

 

test-4-fml-working.PNG

 

  1. For additional verification, monitor SQUID server logs to check for accepted or denied connections to FortiGuard FQDNs. Use the following command on the SQUID server:   

 

$sudo tail -f /var/log/squid/access.log 

 

test3.PNG

 

  1. Ensure that the following FortiGuard FQDNs are permitted through the SQUID server:

 

fds1.fortinet.com

service.fortiguard.net

 

Note: 

After completion, disable debugging from the FortiMail CLI with the following command:

 

diagnose debug disable

 

Note:

 

in Firmware version 7.x.x and 8.x.x, the command should be:

 

diagnose debug application updated enable 

diagnose debug enable

execute update now

    Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
    Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!