To connect to a VPN tunnel from a DOS prompt

来源:互联网 发布:英伦对决 知乎 编辑:程序博客网 时间:2024/06/05 21:56

In a DOS prompt window, under the default installation folder of Fortclient (C:/Program Files/Fortinet/FortiClient), enter...

ipsec.exe Tunnel_name

...where Tunnel_name is the name of the IPSec tunnel you entered in the VPN tab under “Name”.

 

You can also enter ipsec.exe -d Tunnel_name. This will display the debug information of the VPN connection.

Use the following command to open the tunnel without showing DOS window:A good addition to remark would be to use the command:
start /B ipsec.exe -k

To close a VPN tunnel, you can enter the command ipsec.exe quit , to bring down the VPN Tunnel.

 
原创粉丝点击