Skip to main content
lindel
Visitor III
April 26, 2022
Question

Connect vpn IPsec via command line

  • April 26, 2022
  • 7 replies
  • 7853 views

I'm using de forti client  to connecto to a IPsec vpn site, there is any way to do this via command line because I will use this via jenkins to connect previous doing some stuff and then disconnect. Can't find any documentation or post with this information.

7 replies

Anthony_E
Staff
Staff
April 29, 2022

Hello lindel,

 

Thank you for using the Community Forum. I will seek to get you an answer or help. We will reply to this thread with an update as soon as possible.

 

Thanks,

Best Regards
Anthony_E
Staff
Staff
April 29, 2022

Hello lindel,

 

I have found this document which can be helpful:

 

https://docs.fortinet.com/document/fortigate/6.0.0/cli-reference/227667/vpn-ipsec-forticlient

 

Could you please tell me if it helped?

If not, we will find another solution to your question.

 

Regards,

Best Regards
lindel
lindelAuthor
Visitor III
April 29, 2022

Hi Anthony thanks for the reply but no, that's not what I want, i'm looking for something similar to the documents about connecting to a ssh vpn from command line for an ipsec vpn, in some forum threads use ipsec -k -b <connection name> but in my case this command only clears the vpn information for this connection and no connection to <connection name> is establish

Anthony_E
Staff
Staff
April 29, 2022

Hi lindel,

 

I will find then another solution and will come back to you as soon as possible.

 

Regards,

Best Regards
lindel
lindelAuthor
Visitor III
July 6, 2022

Hi, any news on this topic?

Anthony_E
Staff
Staff
July 7, 2022

Hello lindel,

 

Sorry for the late reply. I m still waiting answer from our engineers,

I will come back to you ASAP.

 

Regards,

Best Regards
Anthony_E
Staff
Staff
July 11, 2022

Hello lindel,

 

sorry for the late reply.

 

One of our engineer replied:

 

"This option is available only for the SSL-VPN. We do not support it for the dialup ipsec."

 

I hope it would help you!

 

Regards,

 

 

Best Regards
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!