vici [ˈvitʃi] plugin for
libcharon provides the
Versatile IKE Control Interface (VICI). As its name indicates, it
provides an interface for external applications to not only configure, but also
to control and monitor the IKE daemon
strongSwan is often used to provide IKE service functionality in a tailored system for specific needs. Developers of such systems often have a need to automate configuration and control of the IKE daemon. For this purpose, external components require to interact with the strongSwan infrastructure without human intervention.
stroke interfaces had never
been designed to get automated. Scripting these tools is difficult, returning
information is cumbersome. While the
libraries are reusable and extendable and thus have very powerful plugin APIs,
writing and maintaining strongSwan code is non-trivial.
VICI is an attempt to improve the situation for system integrators by providing a stable IPC interface, allowing external tools to query, configure and control the IKE daemon.
The most prominent user of the VICI interface is
swanctl, a command line application to configure and
charon. It is the driving force to develop,
extend and maintain the VICI interface, and currently provides almost all
functionality to run strongSwan installations without the need for
vici plugin is enabled by default but may be disabled with the
The VICI protocol runs over a reliable transport protocol. As the protocol itself currently does not provide any security or authentication properties, it is recommended to run it over a UNIX socket with appropriate permissions. The high and low level protocol details can be found in the VICI README.
For the client side, any programming language may be used to communicate to the daemon using the VICI protocol. Currently strongSwan comes with VICI client libraries for C, Perl, Python and Ruby. The available operations and some simple examples using the libvici C interface, the Python Egg, Perl CPAN module and Ruby gem and can be found in the VICI README.
libvici provides a low-level C API to exchange messages using the VICI
protocol. Since the release of the davici library, it’s mostly intended for
internal use as it depends on
libstrongswan (GPLv2). However, it still
provides a stable, coding-style neutral API and might be suitable for some
The libvici API is documented in the
header file. The header itself is MIT licensed, allowing for non-GPLv2
third-party implementations of the API.
The davici project provides a C client implementation of the VICI protocol. In contrast to libvici, it does not build upon the libstrongswan library, is designed for asynchronous operation and is LGPLv2+ licensed. It is usually a more suitable choice when integrating VICI client functionality into an application.
A Ruby gem allowing Ruby applications to control and monitor the IKE daemon. It may also be installed via RubyGems.
A Python egg for the very same purpose. It may also be installed via PyPI.
A Perl CPAN module as a client-side wrapper around the VICI protocol.