EasyManua.ls Logo

Fortinet Version 4.0 MR1 - Using the FortiClient API for VPNs; FortiClient API Overview; Controlling VPNs Programmatically

Fortinet Version 4.0 MR1
72 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Using the FortiClient API Overview
FortiClient Endpoint Security Version 4.0 MR1 Administration Guide
04-40001-99556-20090626 51
http://docs.fortinet.com/ • Feedback
Using the FortiClient API
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
Overview
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
Controlling a VPN
This section uses example code snippets in Visual Basic to show how to operate a VPN
tunnel programmatically.
Linking to the COM library
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

Table of Contents