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.
janonuevo
Staff
Staff
Article Id 325071
Description This article describes how to configure Email Alert when there is a configuration change on FortiGate.
Scope FortiGate.
Solution

Configure Email Server on FortiGate.

Option 1: Using Alert Email.


config alertemail setting
    set username sender@example.com
    set mailto1 receiver_1@example.com
    set mailto2 receiver-2@example.com
    set configuration-changes-logs enable
end


Option 2: Using Automation Stitch

 

  • Configure the Trigger (Use the following log id 44546 44547 44545).

 

Trigger.JPG

 

CLI:

 

config system automation-trigger
    edit "Config Change"
        set event-type event-log
        set logid 44546 44547 44545
    next

end

 

  1. Configure the Action:

 

Action.JPG

 

 

CLI:

 

config system automation-action
    edit "Config Change Alert"
        set action-type email
        set email-to "test123@gmail.com"
        set email-subject "Config Changes Made!"
    next

end

 

 

  1. Configure the Automation-Stitch:

 

Stitch.JPG

 

CLI:

 

config system automation-stitch
    edit "Config Change Email"
        set trigger "Config Change"
            config actions
                edit 1
                    set action "Config Change Alert"
                    set required enable
                next
            end

 

 

Result:

Changes made on interface port3 IP 30.30.30.3 > 30.30.30.4, an email alert is immediately received upon successful config change.

 

Email Alert Received.JPG