Skip to main content
nrivat_FTNT
Staff
Staff
Jul 16, 2004 11:35 AM UTC
Question

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

    vanc
    New Member
    Jul 19, 2004 5:39 AM UTC
    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.
    Translate
    UkWizard
    New Member
    Jul 19, 2004 8:57 AM UTC
    Thats cool if it works vanc, where did you get that from ?
    Translate
    vanc
    New Member
    Jul 20, 2004 3:42 AM UTC
    Secret channel.
    ORIGINAL: UkWizard Thats cool if it works vanc, where did you get that from ?
    Translate
    Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024