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
19 # Root directory of testing
20 UMLTESTDIR=~/strongswan-testing
22 # Bzipped kernel sources
23 # (file extension .tar.bz2 required)
24 KERNEL=$UMLTESTDIR/linux-2.6.26.3.tar.bz2
26 # Extract kernel version
27 KERNELVERSION=`basename $KERNEL .tar.bz2 | sed -e 's/linux-//'`
29 # Kernel configuration file
30 KERNELCONFIG=$UMLTESTDIR/.config-2.6.26
32 # Bzipped uml patch for kernel
33 UMLPATCH=$UMLTESTDIR/uml-2.6.26.patch.bz2
35 # Bzipped source of strongSwan
36 STRONGSWAN=$UMLTESTDIR/strongswan-4.2.7.tar.bz2
38 # strongSwan compile options (use "yes" or "no")
44 USE_EAP_IDENTITY="yes"
48 USE_INTEGRITY_TEST="no"
49 USE_LEAK_DETECTIVE="no"
51 # Gentoo linux root filesystem
52 ROOTFS=$UMLTESTDIR/gentoo-fs-20080407.tar.bz2
54 # Size of the finished root filesystem in MB
57 # Amount of Memory to use per UML [MB].
58 # If "auto" is stated 1/12 of total host ram will be used.
59 # Examples: MEM=64, MEM="128", MEM="auto"
62 # Directory where the UML kernels and file system will be built
63 BUILDDIR=$UMLTESTDIR/umlbuild
65 # Filename of the built UML Kernel
66 UMLKERNEL=$BUILDDIR/linux-uml-$KERNELVERSION
68 # Directory where test results will be stored
69 TESTRESULTSDIR=$UMLTESTDIR/testresults
71 # Path to a full strongswan tree on the host system, which is
72 # mounted into /root/strongswan-shared. This gives us an easy
73 # way to apply and test changes instantly.
74 SHAREDTREE=/home/martin/strongswan/trunk
76 # Timezone for the UMLs, look in /usr/share/zoneinfo!
79 ##############################################################
80 # Enable particular steps in the make-testing and
81 # start-testing scripts
83 ENABLE_BUILD_UMLKERNEL="yes"
84 ENABLE_BUILD_SSHKEYS="yes"
85 ENABLE_BUILD_HOSTCONFIG="yes"
86 ENABLE_BUILD_UMLROOTFS="yes"
87 ENABLE_BUILD_UMLHOSTFS="yes"
88 ENABLE_START_TESTING="yes"
90 ENABLE_STOP_TESTING="no"
92 ##############################################################
93 # How to start the UMLs?
95 # Start the UML instance in a KDE konsole (requires KDE)
96 # UMLSTARTMODE="konsole"
97 # Start the UML instance in a gnome-terminal (requires gnome)
98 UMLSTARTMODE="gnome-terminal"
99 # Start the UML instance in an xterm (requires X11R6)
100 # UMLSTARTMODE="xterm"
101 # Start the UML instance without a terminal window
102 # but screen -r <host> can open a window anytime
103 # UMLSTARTMODE="screen"
105 ##############################################################
106 # If set to "yes" only the tests stated at $SELECTEDTESTS
107 # will be executed. (use "yes" or "no")
109 SELECTEDTESTSONLY="no"
111 # Tests to do if $SELECTEDTESTSONLY is set "yes".
113 SELECTEDTESTS="ikev2/rw-cert"
115 ##############################################################
116 # hostname and corresponding IPv4 and IPv6 addresses
117 # You may change the IPs but keep them in the same subnet,
118 # this means retain the netmasks!
119 # Also don't use IPs ending with 254, they are reserved!
122 alice,10.1.0.10,192.168.0.50 \
124 moon,192.168.0.1,10.1.0.1 \
125 carol,192.168.0.100,10.3.0.1 \
126 winnetou,192.168.0.150 \
127 dave,192.168.0.200,10.3.0.2 \
128 sun,192.168.0.2,10.2.0.1 \
132 alice,fec1::10,fec0::5 \
134 moon,fec0::1,fec1::1 \
135 carol,fec0::10,fec3::1 \
137 dave,fec0::20,fec3::2 \
138 sun,fec0::2,fec2::1 \
141 ##############################################################
142 # VPN gateways / clients
143 # The hosts stated here will be created. Possible values
144 # are sun, moon, dave, carol, alice, venus, bob, winnetou.
145 # It's fine to make them all unless you don't have much
146 # ressources. In this case we assume you know what you do!
148 STRONGSWANHOSTS="sun moon dave carol alice venus bob winnetou"
150 ##############################################################
151 # Needed programs, do not change!
153 PROGRAMS="uml_switch uml_mconsole ssh ssh-keygen iptables \
154 chroot screen mkreiserfs"
156 ##############################################################
157 # IP parameters of the UML switches
159 IFCONFIG_0="192.168.0.254 netmask 255.255.255.0"
160 IFCONFIG_1="10.1.0.254 netmask 255.255.0.0"
161 IFCONFIG_2="10.2.0.254 netmask 255.255.0.0"
163 ##############################################################
164 # Network interfaces of the UML instances
166 SWITCH_alice="eth0=daemon,fe:fd:0a:01:00:0a,unix,/tmp/umlswitch1 \
167 eth1=daemon,fe:fd:c0:a8:00:32,unix,/tmp/umlswitch0"
168 SWITCH_venus="eth0=daemon,fe:fd:0a:01:00:14,unix,/tmp/umlswitch1"
169 SWITCH_moon="eth0=daemon,fe:fd:c0:a8:00:01,unix,/tmp/umlswitch0 \
170 eth1=daemon,fe:fd:0a:01:00:01,unix,/tmp/umlswitch1"
171 SWITCH_carol="eth0=daemon,fe:fd:c0:a8:00:64,unix,/tmp/umlswitch0"
172 SWITCH_winnetou="eth0=daemon,fe:fd:c0:a8:00:96,unix,/tmp/umlswitch0"
173 SWITCH_dave="eth0=daemon,fe:fd:c0:a8:00:c8,unix,/tmp/umlswitch0"
174 SWITCH_sun="eth0=daemon,fe:fd:c0:a8:00:02,unix,/tmp/umlswitch0 \
175 eth1=daemon,fe:fd:0a:02:00:01,unix,/tmp/umlswitch2"
176 SWITCH_bob="eth0=daemon,fe:fd:0a:02:00:0a,unix,/tmp/umlswitch2"