2 # Global configuration file for strongswan UML testing.
4 # Copyright (C) 2004 Eric Marchionni, Patrik Rayo
5 # Zuercher Hochschule Winterthur
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>.
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
17 # Root directory of testing
18 UMLTESTDIR=~/strongswan-testing
20 # Bzipped kernel sources
21 # (file extension .tar.bz2 required)
22 KERNEL=$UMLTESTDIR/linux-3.1.5.tar.bz2
24 # Extract kernel version
25 KERNELVERSION=`basename $KERNEL .tar.bz2 | sed -e 's/linux-//'`
27 # Kernel configuration file
28 KERNELCONFIG=$UMLTESTDIR/.config-3.1
30 # Bzipped uml patch for kernel
31 UMLPATCH=$UMLTESTDIR/ha-3.0.patch.bz2
33 # Bzipped source of strongSwan
34 STRONGSWAN=$UMLTESTDIR/strongswan-4.6.2.tar.bz2
36 # strongSwan compile options (use "yes" or "no")
42 USE_EAP_MSCHAPV2="yes"
43 USE_EAP_IDENTITY="yes"
53 USE_TNCCS_DYNAMIC="yes"
58 USE_IMC_ATTESTATION="yes"
59 USE_IMV_ATTESTATION="yes"
64 USE_KERNEL_PFKEY="yes"
65 USE_INTEGRITY_TEST="yes"
66 USE_LEAK_DETECTIVE="no"
68 USE_TEST_VECTORS="yes"
70 USE_SOCKET_DEFAULT="yes"
71 USE_SOCKET_DYNAMIC="yes"
84 # Gentoo linux root filesystem
85 ROOTFS=$UMLTESTDIR/gentoo-fs-20111212.tar.bz2
87 # Size of the finished root filesystem in MB
90 # Amount of Memory to use per UML [MB].
91 # If "auto" is stated 1/12 of total host ram will be used.
92 # Examples: MEM=64, MEM="128", MEM="auto"
95 # Directory where the UML kernels and file system will be built
96 BUILDDIR=$UMLTESTDIR/umlbuild
98 # Filename of the built UML Kernel
99 UMLKERNEL=$BUILDDIR/linux-uml-$KERNELVERSION
101 # Directory where test results will be stored
102 TESTRESULTSDIR=$UMLTESTDIR/testresults
104 # SSH configuration (speedup SSH)
105 SSHCONF="-F $UMLTESTDIR/testing/ssh_config"
107 # Path to a full strongswan tree on the host system, which is
108 # mounted into /root/strongswan-shared. This gives us an easy
109 # way to apply and test changes instantly.
110 #SHAREDTREE=/home/martin/strongswan/trunk
112 # Timezone for the UMLs, look in /usr/share/zoneinfo!
113 TZUML="Europe/Zurich"
115 ##############################################################
116 # Enable particular steps in the make-testing and
117 # start-testing scripts
119 ENABLE_BUILD_UMLKERNEL="yes"
120 ENABLE_BUILD_SSHKEYS="yes"
121 ENABLE_BUILD_HOSTCONFIG="yes"
122 ENABLE_BUILD_UMLROOTFS="yes"
123 ENABLE_BUILD_UMLHOSTFS="yes"
124 ENABLE_START_TESTING="yes"
126 ENABLE_STOP_TESTING="no"
128 ##############################################################
129 # How to start the UMLs?
131 # Start the UML instance in KDE konsole (requires KDE)
132 # UMLSTARTMODE="konsole"
133 # Start the UML instance in a gnome-terminal (requires gnome)
134 UMLSTARTMODE="gnome-terminal"
135 # Start the UML instance in an xterm (requires X11R6)
136 # UMLSTARTMODE="xterm"
137 # Start the UML instance without a terminal window
138 # but screen -r <host> can open a window anytime
139 # UMLSTARTMODE="screen"
141 ##############################################################
142 # If set to "yes" only the tests stated at $SELECTEDTESTS
143 # will be executed. (use "yes" or "no")
145 SELECTEDTESTSONLY="no"
147 # Tests to do if $SELECTEDTESTSONLY is set "yes".
149 SELECTEDTESTS="ikev2/rw-cert"
151 ##############################################################
152 # hostname and corresponding IPv4 and IPv6 addresses
153 # You may change the IPs but keep them in the same subnet,
154 # this means retain the netmasks!
155 # Also don't use IPs ending with 254, they are reserved!
158 alice,10.1.0.10,192.168.0.50 \
160 moon,192.168.0.1,10.1.0.1 \
161 carol,192.168.0.100,10.3.0.1 \
162 winnetou,192.168.0.150 \
163 dave,192.168.0.200,10.3.0.2 \
164 sun,192.168.0.2,10.2.0.1 \
168 alice,fec1::10,fec0::5 \
170 moon,fec0::1,fec1::1 \
171 carol,fec0::10,fec3::1 \
173 dave,fec0::20,fec3::2 \
174 sun,fec0::2,fec2::1 \
177 ##############################################################
178 # VPN gateways / clients
179 # The hosts stated here will be created. Possible values
180 # are sun, moon, dave, carol, alice, venus, bob, winnetou.
181 # It's fine to make them all unless you don't have much
182 # ressources. In this case we assume you know what you do!
184 STRONGSWANHOSTS="sun moon dave carol alice venus bob winnetou"
186 ##############################################################
187 # Needed programs, do not change!
189 PROGRAMS="uml_switch uml_mconsole ssh ssh-keygen iptables \
190 chroot screen mkreiserfs"
192 ##############################################################
193 # IP parameters of the UML switches
195 IFCONFIG_0="192.168.0.254 netmask 255.255.255.0"
196 IFCONFIG_1="10.1.0.254 netmask 255.255.0.0"
197 IFCONFIG_2="10.2.0.254 netmask 255.255.0.0"
199 ##############################################################
200 # Network interfaces of the UML instances
202 SWITCH_alice="eth0=tuntap,tap1_alice,fe:fd:0a:01:00:0a \
203 eth1=tuntap,tap0_alice,fe:fd:c0:a8:00:32"
204 SWITCH_venus="eth0=tuntap,tap1_venus,fe:fd:0a:01:00:14"
205 SWITCH_moon="eth0=tuntap,tap0_moon,fe:fd:c0:a8:00:01 \
206 eth1=tuntap,tap1_moon,fe:fd:0a:01:00:01"
207 SWITCH_carol="eth0=tuntap,tap0_carol,fe:fd:c0:a8:00:64"
208 SWITCH_winnetou="eth0=tuntap,tap0_winnetou,fe:fd:c0:a8:00:96"
209 SWITCH_dave="eth0=tuntap,tap0_dave,fe:fd:c0:a8:00:c8"
210 SWITCH_sun="eth0=tuntap,tap0_sun,fe:fd:c0:a8:00:02 \
211 eth1=tuntap,tap2_sun,fe:fd:0a:02:00:01"
212 SWITCH_bob="eth0=tuntap,tap2_bob,fe:fd:0a:02:00:0a"