Using the FortiClient API
Using the FortiClient API
Overview
Controlling a VPN
Linking to the COM library
FortiClient Endpoint Security Version 4.0 MR1 Administration Guide
04-40001-99556-20090626
http://docs.fortinet.com/
•
Feedback
You can operate FortiClient VPNs using the COM-based FortiClient API.
This chapter contains the following sections:
•
Overview
•
Controlling a VPN
•
Setting and monitoring a security policy
•
API reference
The FortiClient COM library provides functionality to:
•
Retrieve a list of the VPN tunnels configured in the FortiClient application.
•
Start and stop any of the configured VPN tunnels.
•
Send XAuth credentials.
•
Set the security policy for the FortiClient VPN.
•
Retrieve status information:
•
configured tunnel list
•
active tunnel name
•
connected or not
•
idle or not
•
remaining key life
•
current security policy
•
Respond to FortiClient-related events:
•
VPN connect
•
VPN disconnect
•
VPN is idle
•
no longer in compliance with security policy
•
XAuth authentication requested
This section uses example code snippets in Visual Basic to show how to operate a VPN
tunnel programmatically.
The COM library for FortiClient is fccomintdll.dll, located in the FortiClient installation
directory, by default c:\Program Files\Fortinet\FortiClient. Using your development
environment, create a reference to this library.
Begin FCCOMINTDLLLibCtl.VPN VPN1
Overview
51
Need help?
Do you have a question about the Version 4.0 MR1 and is the answer not in the manual?