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,

Translate
Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024