Skip to main content
mmishra_FTNT
Staff
Staff
August 17, 2009

Technical Tip: How to connect a VPN Dial-Up tunnel from a DOS Prompt

  • August 17, 2009
  • 0 replies
  • 3128 views

Description

 
This article explains how to connect to an IPSec VPN tunnel from a DOS prompt.  All commands must by run as the Administrator. In a DOS prompt window, under the default installation folder of FortiClient (C:\Program Files (x86)\Fortinet\FortiClient), enter:
 
ipsec.exe Tunnel_name <----- Where Tunnel_name is the name of the IPSec tunnel that was entered in the VPN tab under 'Name'.


Scope

 

FortiClient.


Solution

 

To display the debug information of the VPN connection enter:
 
ipsec.exe -d <verbose level> Tunnel_name.
 
Use the following command to open the tunnel:
 
start /B ipsec.exe -k
 
Enter the following command to close a VPN tunnel:
 
ipsec.exe quit