]>
git.ipfire.org Git - thirdparty/strongswan.git/blob - testing/testing.conf
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-2.6
.35.2.
tar.bz2
24 # Extract kernel version
25 KERNELVERSION
=`basename $KERNEL .tar.bz2 | sed -e 's/linux-//'`
27 # Kernel configuration file
28 KERNELCONFIG
=$UMLTESTDIR/.config-2.6
.35
30 # Bzipped uml patch for kernel
31 #UMLPATCH=$UMLTESTDIR/xfrm_mark.patch.bz2
33 # Bzipped source of strongSwan
34 STRONGSWAN
=$UMLTESTDIR/strongswan-4.4
.2.
tar.bz2
36 # strongSwan compile options (use "yes" or "no")
42 USE_EAP_MSCHAPV2
="yes"
43 USE_EAP_IDENTITY
="yes"
53 USE_KERNEL_PFKEY
="yes"
54 USE_INTEGRITY_TEST
="yes"
55 USE_LEAK_DETECTIVE
="yes"
57 USE_TEST_VECTORS
="yes"
59 USE_SOCKET_DEFAULT
="yes"
60 USE_SOCKET_DYNAMIC
="yes"
68 # Gentoo linux root filesystem
69 ROOTFS
=$UMLTESTDIR/gentoo-fs-20100805.
tar.bz2
71 # Size of the finished root filesystem in MB
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"
79 # Directory where the UML kernels and file system will be built
80 BUILDDIR
=$UMLTESTDIR/umlbuild
82 # Filename of the built UML Kernel
83 UMLKERNEL
=$BUILDDIR/linux-uml-
$KERNELVERSION
85 # Directory where test results will be stored
86 TESTRESULTSDIR
=$UMLTESTDIR/testresults
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
93 # Timezone for the UMLs, look in /usr/share/zoneinfo!
96 ##############################################################
97 # Enable particular steps in the make-testing and
98 # start-testing scripts
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"
107 ENABLE_STOP_TESTING
="no"
109 ##############################################################
110 # How to start the UMLs?
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"
122 ##############################################################
123 # If set to "yes" only the tests stated at $SELECTEDTESTS
124 # will be executed. (use "yes" or "no")
126 SELECTEDTESTSONLY
="no"
128 # Tests to do if $SELECTEDTESTSONLY is set "yes".
130 SELECTEDTESTS
="ikev2/rw-cert"
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!
139 alice,10.1.0.10,192.168.0.50 \
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 \
149 alice,fec1::10,fec0::5 \
151 moon,fec0::1,fec1::1 \
152 carol,fec0::10,fec3::1 \
154 dave,fec0::20,fec3::2 \
155 sun,fec0::2,fec2::1 \
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!
165 STRONGSWANHOSTS
="sun moon dave carol alice venus bob winnetou"
167 ##############################################################
168 # Needed programs, do not change!
170 PROGRAMS
="uml_switch uml_mconsole ssh ssh-keygen iptables \
171 chroot screen mkreiserfs"
173 ##############################################################
174 # IP parameters of the UML switches
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"
180 ##############################################################
181 # Network interfaces of the UML instances
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"