Created on
11-21-2025
12:26 AM
Edited on
12-14-2025
11:10 PM
By
Jean-Philippe_P
This article describes a step-by-step guide to configure an Automation Stitch on FortiGate to automatically disconnect all active SSL VPN users at a specified time.
FortiGate Firewall.
The solution involves creating an Automation Stitch that triggers at a scheduled time to execute a CLI command, disconnecting all SSL VPN users. The process encompasses defining a trigger based on a schedule, creating an action to run the CLI script, and assembling these components into a stitch.
Step 1: Access the Automation Section.
Navigate to Security Fabric -> Automation tab.
Step 2: Create a New Stitch.
Step 3: Define the Trigger.
Step 4: Configure Schedule Trigger.
Note: For this example, the trigger is configured to activate daily at 6:00 AM.
Step 5: Associate Trigger with Stitch.
Step 6: Define the Action.
Step 7: Input CLI Script.
execute vpn sslvpn del-all
This command disconnects all active SSL VPN users.
Step 8: Finalize and Enable.
Confirm all settings and select OK to create the Automation Stitch.
CLI Reference:
config system automation-action
edit "command-SSLVPN"
set action-type cli-script
set script "execute vpn sslvpn del-all"
set accprofile "super_admin"
next
end
config system automation-trigger
edit "Timer-SSLVPN"
set trigger-type scheduled
set trigger-hour 6
next
end
config system automation-stitch
edit "SSLVPN-DisconnectAll"
set trigger "Timer-SSLVPN"
config actions
edit 1
set action "command-SSLVPN"
set required enable
next
end
next
end
Verification:
To verify the configuration, run the following CLI command :
get vpn ssl monitor
diagnose test application autod 3
Troubleshooting:
To troubleshoot the automation stitch, it is necessary to stop all running scripts, reset any debug that may be running, and then enable debugging for the automation stitch.
FortiGate # execute auto-script stopall
No script is running.
FortiGate # diagnose debug reset
FortiGate # diagnose debug application autod -1
Debug messages will be on for 30 minutes.
FortiGate # diagnose debug enable
For further diagnostics commands, refer to: Technical Tip: How to check why automation stitch is not working as expected.
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.