Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
luccosen
New Contributor II

Connect vpn IPsec client via command line...

Connect vpn IPsec via command line...

I'm using de forticlient  to connecto to a IPsec vpn site, there is any way to do this via command line? because I will use this via Securden PAM to connect, . Can't find any documentation or post with this information. Now I'm using via sslvpn....

7 REPLIES 7
Atul_S
Staff & Editor
Staff & Editor

Hi,

 

I suspect if this can only be acheived using a paid version of the FortiClient but you can try the below steps:

 

-Navigate to the installation path for the FCT in the command prompt.

-Try use the command ipsec.exe <tunnel name>

 

I have tested this and it seems to be working. But I am using the paid version.

 

Thanks,

Atul Srivastava
Atul_S
Staff & Editor
Staff & Editor

Hi,

 

Pls review the below link for more info:

 

https://community.fortinet.com/t5/FortiGate/Technical-Tip-How-to-start-a-Dial-up-IPsec-tunnel-from/t...

 

Thanks,

Atul Srivastava
luccosen
New Contributor II

Thanks. 

 

but you suggestion in a trial 7.4.4 client not work... 

Atul_S

Hi,

 

I am sure that this will work with the paid version, but I am unable ot test this with a free version yet. However, I suspect it won't work if you don't have a paid license.

 

Thanks,

Atul Srivastava
rosatechnocrat
Contributor III

@luccosen : I have tested this in Free Version as well.  This CLI works on Free version 

 

 

forticlient free.png

Rosa Technocrat --

Also on YouTube---

Please do Subscribe
Rosa Technocrat --Also on YouTube---Please do Subscribe
Atul_S

Hi,

 

That's great and thanks for the confirmation.

 

Its good to know that the earlier response with the link has solved the problem irrespective of the license status. Pls consider mark the initial response as a solution :)

 

Thanks,

Atul Srivastava
distillednetwork

I tried to do this on a client running 7.4.3 that is setup with IKEv2, Client Certificate and a saved username and password.  If I launch the app and click Connect, it will work.  However, if I try to execute this with the ipsec.exe tunnel <tunnel-name> it will not connect with the error ike_cfg_gw_init.  Any thoughts on what the hang up could be?

::: If a solution is helpful, don't forget to give kudos or Accept as Solution for others. :::
::: If a solution is helpful, don't forget to give kudos or Accept as Solution for others. :::
Announcements
Check out our Community Chatter Blog! Click here to get involved
Labels
Top Kudoed Authors