Project

General

Profile

NetworkManager » History » Version 2

Martin Willi, 20.08.2008 11:56

1 1 Martin Willi
= !NetworkManager =
2 1 Martin Willi
3 1 Martin Willi
[http://www.gnome.org/projects/NetworkManager/ NetworkManager] allows configuration and control of VPN daemons through a plugin interface. We provide such a plugin for !NetworkManager to configure road warrior clients for the most common setups.
4 1 Martin Willi
5 1 Martin Willi
!NetworkManager uses DBUS to communicate to a Plugin loaded in the IKEv2 daemon charon.
6 1 Martin Willi
7 1 Martin Willi
== Dependencies ==
8 1 Martin Willi
9 1 Martin Willi
The extensions are written for !NetworkManager 0.7, you'll need at least SVN r3925. Compile it from source, or as a Ubuntu user, use the [https://launchpad.net/~network-manager/+archive avialable PPA]:
10 1 Martin Willi
{{{
11 1 Martin Willi
echo "deb http://ppa.launchpad.net/network-manager/ubuntu hardy main" >> /etc/apt/sources.list
12 1 Martin Willi
aptitude install network-manager-gnome network-manager-dev libnm-util-dev libnm-glib-dev libgnomeui-dev # and everything I missed
13 1 Martin Willi
}}}
14 1 Martin Willi
15 1 Martin Willi
== Compilation ==
16 1 Martin Willi
17 1 Martin Willi
NM integration works only for IKEv2, but this allows us to kick out a lot of legacy stuff. On a desktop we will have OpenSSL installed anyway, we pick that for crypto:
18 1 Martin Willi
19 1 Martin Willi
{{{
20 1 Martin Willi
# get strongswan SVN
21 1 Martin Willi
svn co http://www.strongswan.org/ikev2/trunk strongswan
22 1 Martin Willi
cd strongswan
23 1 Martin Willi
24 1 Martin Willi
# build charon with OpenSSL/NM Plugin
25 1 Martin Willi
./autogen.sh
26 1 Martin Willi
./configure --disable-aes --disable-des --disable-md5 --disable-sha1 --disable-sha2 \
27 1 Martin Willi
--disable-fips-prf --disable-gmp --disable-stroke --disable-pluto --disable-tools \
28 1 Martin Willi
--disable-updown --enable-openssl --enable-nm \
29 1 Martin Willi
--sysconfdir=/etc --prefix=/usr --libexecdir=/usr/lib
30 1 Martin Willi
make
31 1 Martin Willi
make install
32 1 Martin Willi
33 1 Martin Willi
# build NetworkManager's strongsSwan plugin
34 1 Martin Willi
cd src/charon/plugins/nm/gnome
35 1 Martin Willi
./autogen.sh --sysconfdir=/etc --prefix=/usr --libexecdir=/usr/lib
36 1 Martin Willi
37 1 Martin Willi
}}}
38 1 Martin Willi
39 1 Martin Willi
== Configuration ==
40 1 Martin Willi
41 1 Martin Willi
 * Click on nm-applet -> VPN Connections -> Confiugre VPN...
42 1 Martin Willi
 * Add -> Ipsec/Ikev2 (strongswan) -> Create ...
43 1 Martin Willi
 * Configure your client
44 1 Martin Willi
 * Click on nm-applet -> VPN Connections -> Your Connection
45 1 Martin Willi
 * Enter password
46 2 Martin Willi
47 2 Martin Willi
== Screenshots ==
48 2 Martin Willi
49 2 Martin Willi
[[Image(nm-strongswan-config.png, nolink)]][[Image(nm-strongswan-auth.png, nolink)]]