Skip to main content
Contributor III
May 10, 2005

Technical Note: Bringing up a FortiClient IPSec tunnel from a batch file or a DOS prompt.

  • May 10, 2005
  • 0 replies
  • 4779 views

Article

The following steps explain how to make FortiClient software bring up an IPSec tunnel upon boot up. This assumes that the IPSec tunnel is already configured and working correctly to a FortiGate unit or another VPN device.
 
Once this is done, you can complete the following basic steps for any version of FortiClient software.
  • Create a .bat file and put the file in the startup folder. Add the following line to this batch file:

start /B c:\"Program Files"\Fortinet\FortiClient\ipsec -k -b <tunnel name>

  • To stop the tunnel, use this command at a command prompt:

c:\Program Files\Fortinet\FortiClient\ipsec quit

 

 

Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!