Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
nrivat_FTNT
Staff
Staff

FortiClient batch

Is it possible to create a script that would start a VPN tunnel, use stored credential information (xauth enabled) and would later disconnect the tunnel (using a stop command) - so that the end-user does not see anything? I suppose it is not possible today. Is there any plan for that? Do you know any third-party client that woud support it today and that would be compatible with the FortiGate (xauth enabled)? Thanks for your help, Nathalie Rivat -------------------------- SE Southern Europe
3 REPLIES 3
vanc
New Contributor II

It' s doable with the current FortiClient. You need to use the command under c:\Program Files\Fortinet\FortiClient\ipsec.exe In your script, you can bring up the tunnel with the command ipsec -k your_tunnel_name And stop the tunnel with this: ipsec quit You can do all these stuff with Windows scheduler. Without the FortiClient console, you won' t see any dialog box poped up.
UkWizard
New Contributor

Thats cool if it works vanc, where did you get that from ?
UK Based Technical Consultant FCSE v2.5 FCSE v2.8 FCNSP v3 Specialising in Systems, Apps, SAN Storage and Networks, with over 25 Yrs IT experience.
UK Based Technical Consultant FCSE v2.5 FCSE v2.8 FCNSP v3 Specialising in Systems, Apps, SAN Storage and Networks, with over 25 Yrs IT experience.
vanc
New Contributor II

Secret channel.
ORIGINAL: UkWizard Thats cool if it works vanc, where did you get that from ?
Announcements

Select Forum Responses to become Knowledge Articles!

Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.

Labels
Top Kudoed Authors