Skip to main content
Devolutions
New Member
Oct 9, 2025 6:24 PM UTC
Question

FortiClient API Error

Hello FortiNet,

 

We have found an error when calling the FortiClient API.

Basically the problem is when we use the FortiClient API and the tunnel(the name of the VPN in FortiClient config) has a space in it for example "IPSec Test" it won't start the vpn when we call "vpnManager.Connect("tunnel name");

1 reply

Atul_S
Staff & Editor
Staff & Editor
Oct 9, 2025 10:11 PM UTC

Hi,

 

The space will create two arguments. Pls rename your tunnel something like tunnel_name or try enclose it as ' "tunnel name" '

 

Thanks,

Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT