Skip to main content
mzainuddinahm
Staff & Editor
Staff & Editor
Mar 31, 2022 1:02 PM UTC

Technical Tip: How to Quarantine / ban a Source IP for Anti Virus

  • Apr 24, 2026 3:02 PM UTC
  • 0 replies
  • 2566 views
  • Translate All
Description This article describes how to Quarantine/ban a Source IP for Anti Virus.
Scope

FortiGate

Solution

Configure the AntiVirus security profile to add the source IP of an infected file or malware sender to the quarantine or list of banned source IP addresses in the CLI

 

# config antivirus profile

# edit <name of profile>

# config nac-quar

# set infected quar-src-ip

# set expiry 5m

# end

 

This variable (quar-src-ip) determines for how long the source IP address will be blocked.

 

In the CLI the option is called expiry.

The maximum day's value is 364.

The maximum hour value is 23 and the maximum minute value is 59.

The default is 5 minutes.

 

CLI: https://docs.fortinet.com/document/fortigate/6.0.0/cli-reference/805277/antivirus-profile

Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024