Skip to main content
Devolutions
New Member
October 9, 2025
Question

FortiClient API Error

  • October 9, 2025
  • 1 reply
  • 237 views

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
October 9, 2025

Hi,

 

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

 

Thanks,