Project

General

Profile

strongSwan Manager » History » Version 7

Martin Willi, 15.09.2007 11:29
moved screenshot to top

1 2 Martin Willi
= strongSwan Manager =
2 1 Martin Willi
3 7 Martin Willi
'''strongSwan Manager''' is a web application which interacts with the IKEv2 daemon [wiki:charon] via an XML interface running the [wiki:SMP] information query and control protocol.
4 1 Martin Willi
5 7 Martin Willi
6 7 Martin Willi
[[Image(htdocs:manager.png)]]
7 1 Martin Willi
----
8 7 Martin Willi
'''''strongSwan Manager is still under heavy development and not intended for production use! '''''
9 1 Martin Willi
----
10 1 Martin Willi
11 1 Martin Willi
== Building management application ==
12 1 Martin Willi
13 1 Martin Willi
The manager is based on a fastcgi application and uses the !ClearSilver templating engine to build the web sites. So you'll need
14 1 Martin Willi
 * !ClearSilver including headers (Debian: clearsilver-dev)
15 1 Martin Willi
 * FastCGI headers and library (Debian: libfcgi-dev)
16 1 Martin Willi
 * SQLite3 with headers (Debian: libsqlite3-dev)
17 1 Martin Willi
18 1 Martin Willi
To build the manager, add the following options to ./configure
19 1 Martin Willi
{{{
20 1 Martin Willi
--enable-xml --enable-manager
21 1 Martin Willi
}}}
22 5 Martin Willi
23 1 Martin Willi
== Setting up Apache 2 ==
24 1 Martin Willi
As the manager uses FastCGI, different web server may be used to host the application. Here we look at configuration of apache using mod-fastcgi.
25 1 Martin Willi
26 1 Martin Willi
Additionally to Apache2, you'll need
27 1 Martin Willi
 * mod-fastcgi (Debian: libapach2-mod-fastcgi)
28 1 Martin Willi
29 1 Martin Willi
Make sure to enable the new module and that the following fastcgi option is set (e.g. in mods-enabled/fastcgi.conf):
30 1 Martin Willi
{{{
31 1 Martin Willi
AddHandler fastcgi-script .fcgi
32 1 Martin Willi
}}}
33 3 Martin Willi
Static files are served through Apache, everything other is served from the FastCGI. Add these two lines to your website:
34 1 Martin Willi
{{{
35 3 Martin Willi
Alias /manager/static /usr/local/libexec/ipsec/templates/static
36 1 Martin Willi
ScriptAlias /manager /usr/local/libexec/ipsec/manager.fcgi
37 1 Martin Willi
}}}
38 4 Martin Willi
Adapt these paths according to your ''--prefix'' or ''--libexecdir'' [wiki:InstallationDocumentation installation] settings.
39 1 Martin Willi
== Logging in ==
40 1 Martin Willi
41 1 Martin Willi
Now you can surf to 
42 1 Martin Willi
{{{
43 1 Martin Willi
http://host/manager/status/ikesalist
44 1 Martin Willi
}}}
45 6 Martin Willi
The shipped configuration allows you to log in using ''strongSwan'' with the password ''strongi''. Charon currently listens on TCP port 4502, so
46 6 Martin Willi
choose that configuration for now.