FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
JerryQu
Staff
Staff
Article Id 320260
Description This article describes how to automatically perform to ban IP and unlock IP, when FortiDeceptor quarantine integration with FortiGate over Webhook.
Scope

FortiGate, FortiDeceptor, Webhook.

Solution
  1. create an API account and an admin profile on the FortiGate:

 

Picture1.png

 

Picture1.png

 

  1. Config automation on the FortiGate, create an action profile, for example, IP ban:

 

Picture1.png

 

  1. Create a trigger profile, for example, FDC_webhook_banip:

 

Picture1.png

 

  1. Create a stitch policy, and select this action profile and this trigger profile:

 

Picture1.png

 

Above finish ban IP config on the FortiGate.

 

  1. Config automation again on the FortiGate, create an action profile , for example, FDC_unblock_ip:

 

Picture1.png

 

if VDOM, the script needs to add the VDOM name, for example:

 

config vdom
    edit root
    diagnose user banned-ip delete src4 %%log.srcip%%

 

  1. Create a trigger profile, for example, FDC_webhook_unlock:

 

Picture1.png

 

  1. Create a stitch policy, and select this action profile and this trigger profile:

 

Picture1.png

 

Finish all on the FortiGate.

 

  1. Config quarantine integration on the FortiDeceptor:

 

Integrate method select FGT-WEBHOOK.

Block Expiry is user-defined ,for example 600s.

ban URL and unlock URL ,  you can copy  the Incoming webhook triggle‘s URL on the FortiGate .

Authorization is API account secret key on the FortiGate.

 

 

Picture1.png

 

Result:

 

Picture1.png

 

Picture1.png

 

Picture1.png

 

Related document:

Integration with FortiGate over Webhook

Contributors