This is a work in progress, I will be... Full Story
By Manny Fernandez
February 6, 2021
Setting Up Notification of FortiGate Firewalls with Automation
Staring in 6.2 there was the ability to set up automation stitches on the FortiGate firewalls. In 6.4, Fortinet enhanced the capability of the automation section.
In this article, I will cover setting up a DHCP Lease Usage High
notification and an OSPF neighbor change
Basic Setup
In order to configure Automation
, you will need to go to Security Fabric
then Automation
You will need to create a new automation stitch
.
Now we will discuss the components for this section
You have two sections here. One is the Trigger
and the other is the Action
. The trigger is what you are monitoring for and the action is what to do once that condition is met.
In this example, we are going to use the FortiOS Event Log
as the trigger. This section will give you all the event messages generated by FortiOS.
As you can see in the screenshot above, we are going to give this stitch a name (1), then we will choose the FortiOS Event Log
(2), then we will choose to list the events (3), lastly, we will choose from the list of entries (4). Note: You can do a search (e.g. vpn
)
Now we are going to define the Action
. In my example, we are going to generate an email. The Email body will contain all information from the log.
As you can see, there are additional variables that you can replace or combine.
OSPF Example
In the use case above, we are going to create a stitch for an OSPF Neighbor Change
- We are going to assign a name to the trigger.
- We change the status as needed.
- We are going to use the FortiOS Messages as the trigger
- The event for this example is
OSPF neighbor status change
- The action we want for it to take is
Email
- The destination email
- This is an open field. I suggest using similar to the event log so it is easy to understand especially if you are creating multiple stitches.
Here is a sample email with the OSPF neighbor Change
message.
DHCP Lease Usage – High
In this example, we want to be notified if there is a DHCP scope that is close to full or could be attributed to a starvation attack.
Reminder: You can use Slack’s API to send messages to a Slack Group and Channel. I used this (not with a FortiGate since it was not available then) when I ran a SOC and we had SOC Operators that would be on shift and would see notification. When off shift, they would not get the alerts.
Also make sure you take a look at Webhook
for integration with other API driven solutions.
Hope this helps.
Recent posts
-
-
I have been playing with the free version of... Full Story
-
In my day job, I am on a lot... Full Story