strongSwan Manager » History » Version 9
Martin Willi, 15.09.2007 12:39
fixed typo
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 | 8 | Martin Willi | == Building strongSwan Manager == |
12 | 1 | Martin Willi | |
13 | 9 | Martin Willi | The manager is based on a FastCGI application and uses the !ClearSilver templating engine to build the web sites. Thus you will 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 | 8 | Martin Willi | As the manager uses FastCGI, any web server may be used to host the application. Here we look at the configuration of Apache2 using ''mod-fastcgi''. |
25 | 1 | Martin Willi | |
26 | 8 | Martin Willi | In addition to the Apache2 web server itself, 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 | 8 | Martin Willi | Static files are directly served by Apache, everything else is served by the FastCGI application. 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. |