/strongswan-redirect-plugin

Example Plugin for strongSwan's IKEv2 Redirection Functionality (RFC 5685)

Primary LanguageC

Example Plugin for strongSwan's IKEv2 Redirection Functionality (RFC 5685)

Very simple out-of-tree strongSwan plugin that shows the use of the redirect_provider_t interface that may be used to redirect IKEv2 clients to another gateway using the protocol specified in RFC 5685.

The two methods of that interface, redirect_on_init() and redirect_on_auth(), are both optional to implement and allow redrection during IKE_SA_INIT and/or IKE_AUTH, respectively. Note that it's also possible to redirect clients later e.g. via VICI's redirect command.

The provided Makefile can be configured on the command line with some variables that specify the location of several things required for the build and later during the installation of the plugin.

Since it's an out-of-tree plugin, the daemon won't load it, by default. The provided config snippet assumes that the modular plugin configuration is in use.