Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
chrispng
New Contributor III

AUTO STITCH FOR IPSEV VPN TUNNEL

Hello,

 

I am trying to find a way to make an auto stitch to trigger and work when a user disconects or connects on a remote ipsec tunnel and send an email. I have it set up but cant see emails comming. Any ideas?

 

 

FGT60F # config system automation-stitch

FGT60F(automation-stitch) # edit "VPNIPSEC"

FGT60F (VPNIPSEC) # show
config system automation-stitch
edit "VPNIPSEC"
set trigger "IPSEC VPN UP"
config actions
edit 1
set action "Email Notification"
set required enable
next
end
next
end

FGT60F (VPNIPSEC) #

 

 

config system automation-trigger

FGT60F (automation-trigger) # edit "VPNIPSEC"
new entry 'VPNIPSEC' added

FGT60F (VPNIPSEC) # show
config system automation-trigger
edit "VPNIPSEC"
next
end

 

config system automation-action

FGT60F (automation-action) # edit "VPNIPSEC"
new entry 'VPNIPSEC' added

FGT60F (VPNIPSEC) # show
config system automation-action
edit "VPNIPSEC"
next
end

1 Solution
AEK

Probably a filter issue.

Can you remove the 3 filters and see if the event is triggered? If it works then add one by one to find which one is causing the issue.

AEK

View solution in original post

AEK
8 REPLIES 8
AEK
SuperUser
SuperUser

Hi Chris

First of all, under the automation menu, check if the related trigger count is incrementing when the needed IPsec event occurs. If not then you are using the wrong trigger.

Also the below tech tip may help.

https://community.fortinet.com/t5/FortiGate/Technical-Tip-Email-alert-notification-when-IPsec-VPN-tu...

AEK
AEK
chrispng
New Contributor III

I tried the guide as stated too. trigger count is 0

AEK

It means you are probably using the wrong trigger.

Try check in the VPN logs which message is generated when your event occurs. Once you find it you can use the same id in the trigger and it should work.

AEK
AEK
chrispng
New Contributor III

i am trying to track certain users logging in vpn and out so i use xauth and username,BUT with no avail. Is that the correct source for the trigger or should i use smthng else?

AEK
SuperUser
SuperUser

In the VPN logs do you see such messages?

ipsec_event.png

This is the event id you should use in your trigger.

AEK
AEK
chrispng
New Contributor III

εικόνα_2025-09-03_160253039.png

 

thats what i am using and not working right now

AEK

Probably a filter issue.

Can you remove the 3 filters and see if the event is triggered? If it works then add one by one to find which one is causing the issue.

AEK
AEK
chrispng
New Contributor III

It seems it cant handle 3 users in the same trigger, i created different stiches and triggers in order to work for multiple users

Announcements
Check out our Community Chatter Blog! Click here to get involved
Labels
Top Kudoed Authors