Skip to main content
luccosen
New Member
October 8, 2025
Question

Connect vpn IPsec client via command line...

  • October 8, 2025
  • 7 replies
  • 1472 views
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

Atul_S
Staff & Editor
Staff & Editor
October 9, 2025

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_S
Staff & Editor
Staff & Editor
October 9, 2025
luccosen
luccosenAuthor
New Member
October 11, 2025

Thanks. 

 

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

Atul_S
Staff & Editor
Staff & Editor
October 12, 2025

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,

rosatechnocrat
Explorer III
October 12, 2025

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

 

 

forticlient free.png

Subscribe "ROSA Technocrat" on Youtube for Fortinet Videos and Troubleshooting https://www.youtube.com/@rosatechnocrat
Atul_S
Staff & Editor
Staff & Editor
October 12, 2025

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,

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.
Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!