If you've spent any time configuring user authentication on... 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
-
-
DNS is one of those technologies that quietly underpins... Full Story
-
BGP issues on FortiGate firewalls usually trace back to... Full Story
-
Every time your laptop talks to your router, a... Full Story
-
If you've spent any time configuring NAT on a... Full Story
-
If you have spent any time configuring firewall policies... Full Story
-
High availability on FortiGate is one of those features... Full Story
-
If you've configured SD-WAN on a FortiGate, you've almost... Full Story
-
FortiLink is the management protocol that turns a FortiSwitch... Full Story
-
FortiSwitches are pretty rock solid from Mean Time Between... Full Story
-
This is a quicky tip. Have you ever gone... Full Story
-
DNS is one of those quiet pieces of internet... Full Story
-
This article is an updated version of the previous... Full Story
-
You will add ns2 as a secondary (slave) BIND9... Full Story
-
In the process of deploying my lab, I needed... Full Story
-
RFC 8805, used to be known as Self-Correcting IP... Full Story
-
Years back, I wrote an article about certificate pinning. ... Full Story
-
FortiGates have the ability to send alerts to Microsoft... Full Story
-
In this post, I am going to walk through... Full Story
-
Troubleshooting VoIP on a FortiGate can feel like trying... Full Story
-
Prior to FortiOS 7.0, there were three commands to... Full Story
-
In this post, I am going to go over... Full Story
-
What we are going to do: We are going... Full Story
-
Choosing between FGCP (FortiGate Clustering Protocol) and FGSP (FortiGate... Full Story
-
Creating a VLAN on macOS (The "Pro" Move) A... Full Story
-
This blog post explores the logic behind how macOS... Full Story
-
Pretty Fly for a Wi-Fi Tell My Wi-Fi Love... Full Story
-
Part of my daily gig is creating BoMs (Bill-of-Materials)... Full Story
-
ICMP introduces several security risks, but careful filtering, rate... Full Story
-
The command diag debug application dhcps -1 enables full... Full Story
-
In the world of FortiOS, execute tac report is... Full Story
-
LLDP; What is it The Link Layer Discovery Protocol... Full Story
-
What it actually does When you run diagnose fdsm... Full Story
-
Monkey Bites are bite-sized, high-impact security insights designed for... Full Story
-
I have run macOS in macOS with Parallels but... Full Story
-
Don't be confused with my other FortiNAC posts where... Full Story
-
This is the third session in a multi-part article... Full Story
-
Today I was configuring key-based authentication on a FortiGate... Full Story
-
Netcat, often called the "Swiss Army knife" of networking,... Full Story
-
At its core, IEEE 802.1X is a network layer... Full Story
-
In case you did not see the previous FortiNAC... Full Story
-
This is our 5th session where we are going... Full Story
-
Now that we have Wireshark installed and somewhat configured,... Full Story
-
The Philosophy of Packet Analysis Troubleshooting isn't about looking... Full Story
-
OSPF (Open Shortest Path First) is a link-state IGP... Full Story
-
1. High-Level Overview The FortiGate Wireless Intrusion Detection System... Full Story
-
What MIMO Actually Does Multiple Input, Multiple Output (MIMO)... Full Story