Skip to main content
solidblueliquid
New Member
Dec 7, 2018 5:44 PM UTC
Question

Can you import IP's in to the Quarantine Log?

Hi Everyone,

 

Currently i'm adding people to the Quarantine section of my 100D (5.6.x) by finding the ip in the Forward Traffic, but i wonder if there's a way to add IP's that haven't shown in the forward traffic via the command line?

    4 replies

    neonbit
    New Member
    Dec 9, 2018 4:00 AM UTC

    This KB article shows how you can add IPs via the CLI.

     

    The below example will ban 10.0.1.111 for one hour:

     

    diagnose user quarantine add src4 10.0.1.111 3600 admin

     

    You could add these in a text file, and then upload them to the FortiGate all at once (System > Advanced > Configuration Scripts).

    Translate
    solidblueliquid
    New Member
    Dec 9, 2018 6:07 AM UTC

    If i wanted them on a perma ban, is there a number for this?

     

    As for the txt file, would i just repeat the command on each line?

    Translate
    lxzndr
    New Member
    Aug 20, 2021 3:42 PM UTC

    solidblueliquid wrote:

    If i wanted them on a perma ban, is there a number for this?

     

    I know this is old, but it wasn't answered:

    instead of 3600 for 1 hour, enter: indefinite  or try 0

     

     

    Translate
    vikrampaul93
    New Member
    Aug 25, 2021 9:50 AM UTC

    Hi Everyone..

    Translate
    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