Skip to main content
Esteemed Contributor III
October 27, 2004

Technical Tip: Why FTP slows down when antivirus is enabled

  • April 16, 2026 at 12:33 PM
  • 0 replies
  • 2459 views

Description

 

This article explains why the FTP sessions are slowing down when passing over a FortiGate firewall with Antivirus profile enabled in the policy.

 

Scope

 

FortiGate.

 

Solution

 

This is considered a normal behavior. The software will display high slowness, but does not mean the FTP session is hanging. It is necessary to wait for the file to be downloaded to the FortiGate.

 

Here are the steps during an ftp download with antivirus enabled:

  1. The file is first entirely downloaded to the FortiGate (up to 'default' 10MB configurable in AV profile).
  2. The file is scanned for viruses on the FortiGate.
  3. The file is transferred to the FTP client on PC.

 

So the PC only 'sees' the FTP packet coming on step 3. 

If the FTP server is slow, or the file is big, or the internet connection is slow, it may take some time for the FortiGate to achieve step 1.

 

To prevent the FTP session from timing out, the FortiGate sends keepalives to the PC.

 

Note: It is recommended to use Flow mode for better performance.

 

Related documents:

Inspection mode feature comparison

Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
Thought Leadership. Security Summit. Thursday, October 8th. Disney's Grand Californian Hotel & SPA, Anaheim, CA.
Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT