]>
Commit | Line | Data |
---|---|---|
997358a6 | 1 | #!/bin/bash |
f9df3d06 | 2 | # Global configuration file for strongswan integration testing. |
997358a6 MW |
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. | |
997358a6 MW |
16 | |
17 | # Root directory of testing | |
b820f8aa | 18 | UMLTESTDIR=~/strongswan-testing |
997358a6 | 19 | |
f9df3d06 RB |
20 | # Kernel configuration |
21 | KERNELVERSION=3.5.3 | |
22 | KERNEL=linux-$KERNELVERSION | |
23 | KERNELTARBALL=$KERNEL.tar.bz2 | |
24 | KERNELCONFIG=$PWD/config/kernel/config-3.5 | |
25 | KERNELPATCH=ha-3.0.patch.bz2 | |
997358a6 | 26 | |
beff82dd RB |
27 | # strongSwan version used in tests |
28 | SWANVERSION=5.0.2dr4 | |
29 | ||
997358a6 MW |
30 | # Amount of Memory to use per UML [MB]. |
31 | # If "auto" is stated 1/12 of total host ram will be used. | |
32 | # Examples: MEM=64, MEM="128", MEM="auto" | |
f27f6296 | 33 | MEM=96 |
997358a6 MW |
34 | |
35 | # Directory where the UML kernels and file system will be built | |
36 | BUILDDIR=$UMLTESTDIR/umlbuild | |
37 | ||
aa5803e0 RB |
38 | # Logfile |
39 | LOGFILE=$BUILDDIR/testing.log | |
40 | ||
41 | # Directory used for loop-mounts | |
42 | LOOPDIR=$BUILDDIR/loop | |
43 | ||
44 | # Base image settings | |
d47b7518 | 45 | ROOTFSSIZE=1024 |
aa5803e0 RB |
46 | ROOTFSSUITE=wheezy |
47 | ROOTFSARCH=amd64 | |
48 | ROOTFS=$BUILDDIR/debian-$ROOTFSSUITE-$ROOTFSARCH.img | |
49 | ROOTFSMIRROR=http://cdn.debian.net/debian | |
e61ce6ee | 50 | ROOTFSCOMPILEDIR=$BUILDDIR/compile |
aa5803e0 | 51 | |
62a277cf RB |
52 | # Path to guest images |
53 | ROOTFSDIR=$BUILDDIR/root-fs | |
54 | ||
997358a6 | 55 | # Filename of the built UML Kernel |
b820f8aa | 56 | UMLKERNEL=$BUILDDIR/linux-uml-$KERNELVERSION |
997358a6 MW |
57 | |
58 | # Directory where test results will be stored | |
59 | TESTRESULTSDIR=$UMLTESTDIR/testresults | |
60 | ||
7ec11936 TB |
61 | # SSH configuration (speedup SSH) |
62 | SSHCONF="-F $UMLTESTDIR/testing/ssh_config" | |
63 | ||
997358a6 MW |
64 | # Timezone for the UMLs, look in /usr/share/zoneinfo! |
65 | TZUML="Europe/Zurich" | |
66 | ||
67 | ############################################################## | |
68 | # Enable particular steps in the make-testing and | |
69 | # start-testing scripts | |
70 | # | |
aa5803e0 | 71 | ENABLE_BUILD_BASEIMAGE="yes" |
f9df3d06 | 72 | ENABLE_BUILD_GUESTKERNEL="yes" |
b820f8aa MW |
73 | ENABLE_BUILD_UMLROOTFS="yes" |
74 | ENABLE_BUILD_UMLHOSTFS="yes" | |
997358a6 | 75 | |
997358a6 MW |
76 | ############################################################## |
77 | # If set to "yes" only the tests stated at $SELECTEDTESTS | |
78 | # will be executed. (use "yes" or "no") | |
79 | # | |
80 | SELECTEDTESTSONLY="no" | |
81 | ||
82 | # Tests to do if $SELECTEDTESTSONLY is set "yes". | |
83 | # | |
c598ac63 | 84 | SELECTEDTESTS="ikev2/rw-cert" |
997358a6 MW |
85 | |
86 | ############################################################## | |
fc0afb68 AS |
87 | # hostname and corresponding IPv4 and IPv6 addresses |
88 | # You may change the IPs but keep them in the same subnet, | |
997358a6 MW |
89 | # this means retain the netmasks! |
90 | # Also don't use IPs ending with 254, they are reserved! | |
91 | # | |
fc0afb68 | 92 | HOSTNAMEIPV4="\ |
c598ac63 | 93 | alice,10.1.0.10,192.168.0.50 \ |
fc0afb68 AS |
94 | venus,10.1.0.20 \ |
95 | moon,192.168.0.1,10.1.0.1 \ | |
b820f8aa | 96 | carol,192.168.0.100,10.3.0.1 \ |
fc0afb68 AS |
97 | winnetou,192.168.0.150 \ |
98 | dave,192.168.0.200,10.3.0.2 \ | |
99 | sun,192.168.0.2,10.2.0.1 \ | |
100 | bob,10.2.0.10" | |
101 | ||
102 | HOSTNAMEIPV6="\ | |
c598ac63 | 103 | alice,fec1::10,fec0::5 \ |
fc0afb68 AS |
104 | venus,fec1::20 \ |
105 | moon,fec0::1,fec1::1 \ | |
106 | carol,fec0::10,fec3::1 \ | |
107 | winnetou,fec0::15 \ | |
108 | dave,fec0::20,fec3::2 \ | |
109 | sun,fec0::2,fec2::1 \ | |
110 | bob,fec2::10" | |
997358a6 MW |
111 | |
112 | ############################################################## | |
113 | # VPN gateways / clients | |
114 | # The hosts stated here will be created. Possible values | |
115 | # are sun, moon, dave, carol, alice, venus, bob, winnetou. | |
116 | # It's fine to make them all unless you don't have much | |
35a19861 | 117 | # resources. In this case we assume you know what you do! |
997358a6 MW |
118 | # |
119 | STRONGSWANHOSTS="sun moon dave carol alice venus bob winnetou" | |
120 | ||
121 | ############################################################## | |
122 | # Needed programs, do not change! | |
123 | # | |
124 | PROGRAMS="uml_switch uml_mconsole ssh ssh-keygen iptables \ | |
125 | chroot screen mkreiserfs" | |
126 | ||
127 | ############################################################## | |
128 | # IP parameters of the UML switches | |
129 | # | |
130 | IFCONFIG_0="192.168.0.254 netmask 255.255.255.0" | |
131 | IFCONFIG_1="10.1.0.254 netmask 255.255.0.0" | |
132 | IFCONFIG_2="10.2.0.254 netmask 255.255.0.0" | |
133 | ||
134 | ############################################################## | |
135 | # Network interfaces of the UML instances | |
136 | # | |
a44bb934 MW |
137 | SWITCH_alice="eth0=tuntap,tap1_alice,fe:fd:0a:01:00:0a \ |
138 | eth1=tuntap,tap0_alice,fe:fd:c0:a8:00:32" | |
139 | SWITCH_venus="eth0=tuntap,tap1_venus,fe:fd:0a:01:00:14" | |
140 | SWITCH_moon="eth0=tuntap,tap0_moon,fe:fd:c0:a8:00:01 \ | |
141 | eth1=tuntap,tap1_moon,fe:fd:0a:01:00:01" | |
142 | SWITCH_carol="eth0=tuntap,tap0_carol,fe:fd:c0:a8:00:64" | |
143 | SWITCH_winnetou="eth0=tuntap,tap0_winnetou,fe:fd:c0:a8:00:96" | |
144 | SWITCH_dave="eth0=tuntap,tap0_dave,fe:fd:c0:a8:00:c8" | |
145 | SWITCH_sun="eth0=tuntap,tap0_sun,fe:fd:c0:a8:00:02 \ | |
146 | eth1=tuntap,tap2_sun,fe:fd:0a:02:00:01" | |
147 | SWITCH_bob="eth0=tuntap,tap2_bob,fe:fd:0a:02:00:0a" |