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.
Sasha_FTNT
Staff
Staff
Article Id 195346

Description

 

This article describes how to check webhooks functionality on the firewall.

 

Scope

 

FortiOS v6.0 and above.

Solution


The Webhooks feature was introduced in version 6.0 of FortiOS.

It represents an HTTP request to an endpoint as a result for a specific action. Effectively, they are callbacks for certain triggers. Usually, the content of these requests is a JSON document, but not necessarily.


If the payload is sent in
JSON document, it will be required to specify the content-type:


content-type: application/json


In the webhook configuration section, it is possible to customize the HTTP header, like JWT token for authentication.
Using an HTTP endpoint, give the control to sniff the outgoing interface and check the format and content of sending HTTP request.

In the GUI, there is context menu with option to run a stitch (in this case, with webhooks).
 
 
For more information about what is done while the automation stitch runs, enable debugging on the 'autod' daemon:

diagnose debug application autod -1
diagnose debug en
 

To stop the debugging, run the following commands:

 

diagnose debug disable

diagnose debug reset