]> git.ipfire.org Git - thirdparty/strongswan.git/blob - testing/testing.conf
moved TNCCS layer out of eap_tnc plugin
[thirdparty/strongswan.git] / testing / testing.conf
1 #!/bin/bash
2 # Global configuration file for strongswan UML testing.
3 #
4 # Copyright (C) 2004 Eric Marchionni, Patrik Rayo
5 # Zuercher Hochschule Winterthur
6 #
7 # This program is free software; you can redistribute it and/or modify it
8 # under the terms of the GNU General Public License as published by the
9 # Free Software Foundation; either version 2 of the License, or (at your
10 # option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
11 #
12 # This program is distributed in the hope that it will be useful, but
13 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
14 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 # for more details.
16
17 # Root directory of testing
18 UMLTESTDIR=~/strongswan-testing
19
20 # Bzipped kernel sources
21 # (file extension .tar.bz2 required)
22 KERNEL=$UMLTESTDIR/linux-2.6.35.2.tar.bz2
23
24 # Extract kernel version
25 KERNELVERSION=`basename $KERNEL .tar.bz2 | sed -e 's/linux-//'`
26
27 # Kernel configuration file
28 KERNELCONFIG=$UMLTESTDIR/.config-2.6.35
29
30 # Bzipped uml patch for kernel
31 #UMLPATCH=$UMLTESTDIR/xfrm_mark.patch.bz2
32
33 # Bzipped source of strongSwan
34 STRONGSWAN=$UMLTESTDIR/strongswan-4.4.2.tar.bz2
35
36 # strongSwan compile options (use "yes" or "no")
37 USE_LIBCURL="yes"
38 USE_LDAP="yes"
39 USE_EAP_AKA="yes"
40 USE_EAP_SIM="yes"
41 USE_EAP_MD5="yes"
42 USE_EAP_MSCHAPV2="yes"
43 USE_EAP_IDENTITY="yes"
44 USE_EAP_RADIUS="yes"
45 USE_EAP_TLS="yes"
46 USE_EAP_TTLS="yes"
47 USE_EAP_TNC="yes"
48 USE_TNCCS_11="yes"
49 USE_SQL="yes"
50 USE_MEDIATION="yes"
51 USE_OPENSSL="yes"
52 USE_BLOWFISH="yes"
53 USE_KERNEL_PFKEY="yes"
54 USE_INTEGRITY_TEST="yes"
55 USE_LEAK_DETECTIVE="yes"
56 USE_LOAD_TESTER="yes"
57 USE_TEST_VECTORS="yes"
58 USE_GCRYPT="yes"
59 USE_SOCKET_DEFAULT="yes"
60 USE_SOCKET_DYNAMIC="yes"
61 USE_DHCP="yes"
62 USE_FARP="yes"
63 USE_ADDRBLOCK="yes"
64 USE_CTR="yes"
65 USE_CCM="yes"
66 USE_GCM="yes"
67
68 # Gentoo linux root filesystem
69 ROOTFS=$UMLTESTDIR/gentoo-fs-20100805.tar.bz2
70
71 # Size of the finished root filesystem in MB
72 ROOTFSSIZE=700
73
74 # Amount of Memory to use per UML [MB].
75 # If "auto" is stated 1/12 of total host ram will be used.
76 # Examples: MEM=64, MEM="128", MEM="auto"
77 MEM=96
78
79 # Directory where the UML kernels and file system will be built
80 BUILDDIR=$UMLTESTDIR/umlbuild
81
82 # Filename of the built UML Kernel
83 UMLKERNEL=$BUILDDIR/linux-uml-$KERNELVERSION
84
85 # Directory where test results will be stored
86 TESTRESULTSDIR=$UMLTESTDIR/testresults
87
88 # Path to a full strongswan tree on the host system, which is
89 # mounted into /root/strongswan-shared. This gives us an easy
90 # way to apply and test changes instantly.
91 #SHAREDTREE=/home/martin/strongswan/trunk
92
93 # Timezone for the UMLs, look in /usr/share/zoneinfo!
94 TZUML="Europe/Zurich"
95
96 ##############################################################
97 # Enable particular steps in the make-testing and
98 # start-testing scripts
99 #
100 ENABLE_BUILD_UMLKERNEL="yes"
101 ENABLE_BUILD_SSHKEYS="yes"
102 ENABLE_BUILD_HOSTCONFIG="yes"
103 ENABLE_BUILD_UMLROOTFS="yes"
104 ENABLE_BUILD_UMLHOSTFS="yes"
105 ENABLE_START_TESTING="yes"
106 ENABLE_DO_TESTS="no"
107 ENABLE_STOP_TESTING="no"
108
109 ##############################################################
110 # How to start the UMLs?
111 #
112 # Start the UML instance in KDE konsole (requires KDE)
113 # UMLSTARTMODE="konsole"
114 # Start the UML instance in a gnome-terminal (requires gnome)
115 UMLSTARTMODE="gnome-terminal"
116 # Start the UML instance in an xterm (requires X11R6)
117 # UMLSTARTMODE="xterm"
118 # Start the UML instance without a terminal window
119 # but screen -r <host> can open a window anytime
120 # UMLSTARTMODE="screen"
121
122 ##############################################################
123 # If set to "yes" only the tests stated at $SELECTEDTESTS
124 # will be executed. (use "yes" or "no")
125 #
126 SELECTEDTESTSONLY="no"
127
128 # Tests to do if $SELECTEDTESTSONLY is set "yes".
129 #
130 SELECTEDTESTS="ikev2/rw-cert"
131
132 ##############################################################
133 # hostname and corresponding IPv4 and IPv6 addresses
134 # You may change the IPs but keep them in the same subnet,
135 # this means retain the netmasks!
136 # Also don't use IPs ending with 254, they are reserved!
137 #
138 HOSTNAMEIPV4="\
139 alice,10.1.0.10,192.168.0.50 \
140 venus,10.1.0.20 \
141 moon,192.168.0.1,10.1.0.1 \
142 carol,192.168.0.100,10.3.0.1 \
143 winnetou,192.168.0.150 \
144 dave,192.168.0.200,10.3.0.2 \
145 sun,192.168.0.2,10.2.0.1 \
146 bob,10.2.0.10"
147
148 HOSTNAMEIPV6="\
149 alice,fec1::10,fec0::5 \
150 venus,fec1::20 \
151 moon,fec0::1,fec1::1 \
152 carol,fec0::10,fec3::1 \
153 winnetou,fec0::15 \
154 dave,fec0::20,fec3::2 \
155 sun,fec0::2,fec2::1 \
156 bob,fec2::10"
157
158 ##############################################################
159 # VPN gateways / clients
160 # The hosts stated here will be created. Possible values
161 # are sun, moon, dave, carol, alice, venus, bob, winnetou.
162 # It's fine to make them all unless you don't have much
163 # ressources. In this case we assume you know what you do!
164 #
165 STRONGSWANHOSTS="sun moon dave carol alice venus bob winnetou"
166
167 ##############################################################
168 # Needed programs, do not change!
169 #
170 PROGRAMS="uml_switch uml_mconsole ssh ssh-keygen iptables \
171 chroot screen mkreiserfs"
172
173 ##############################################################
174 # IP parameters of the UML switches
175 #
176 IFCONFIG_0="192.168.0.254 netmask 255.255.255.0"
177 IFCONFIG_1="10.1.0.254 netmask 255.255.0.0"
178 IFCONFIG_2="10.2.0.254 netmask 255.255.0.0"
179
180 ##############################################################
181 # Network interfaces of the UML instances
182 #
183 SWITCH_alice="eth0=tuntap,tap1_alice,fe:fd:0a:01:00:0a \
184 eth1=tuntap,tap0_alice,fe:fd:c0:a8:00:32"
185 SWITCH_venus="eth0=tuntap,tap1_venus,fe:fd:0a:01:00:14"
186 SWITCH_moon="eth0=tuntap,tap0_moon,fe:fd:c0:a8:00:01 \
187 eth1=tuntap,tap1_moon,fe:fd:0a:01:00:01"
188 SWITCH_carol="eth0=tuntap,tap0_carol,fe:fd:c0:a8:00:64"
189 SWITCH_winnetou="eth0=tuntap,tap0_winnetou,fe:fd:c0:a8:00:96"
190 SWITCH_dave="eth0=tuntap,tap0_dave,fe:fd:c0:a8:00:c8"
191 SWITCH_sun="eth0=tuntap,tap0_sun,fe:fd:c0:a8:00:02 \
192 eth1=tuntap,tap2_sun,fe:fd:0a:02:00:01"
193 SWITCH_bob="eth0=tuntap,tap2_bob,fe:fd:0a:02:00:0a"