mirror of
https://github.com/strongswan/strongswan.git
synced 2025-10-08 00:02:03 -04:00
support of SQL databases in UML scenarios
This commit is contained in:
parent
a9184df36b
commit
babaaa3c11
@ -53,7 +53,7 @@ are required for the strongSwan testing environment:
|
|||||||
* A vanilla Linux kernel on which the UML kernel will be based on.
|
* A vanilla Linux kernel on which the UML kernel will be based on.
|
||||||
We recommend the use of
|
We recommend the use of
|
||||||
|
|
||||||
http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.24.2.tar.bz2
|
http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.24.4.tar.bz2
|
||||||
|
|
||||||
* Starting with Linux kernel 2.6.9 no patch must be applied any more in order
|
* Starting with Linux kernel 2.6.9 no patch must be applied any more in order
|
||||||
to make the vanilla kernel UML-capable. For older kernels you'll find
|
to make the vanilla kernel UML-capable. For older kernels you'll find
|
||||||
@ -71,7 +71,7 @@ are required for the strongSwan testing environment:
|
|||||||
|
|
||||||
* The latest strongSwan distribution
|
* The latest strongSwan distribution
|
||||||
|
|
||||||
http://download.strongswan.org/strongswan-4.1.11.tar.gz
|
http://download.strongswan.org/strongswan-4.2.0.tar.gz
|
||||||
|
|
||||||
|
|
||||||
3. Creating the environment
|
3. Creating the environment
|
||||||
|
@ -469,13 +469,20 @@ do
|
|||||||
$TESTRESULTDIR/${host}.$file > /dev/null 2>&1
|
$TESTRESULTDIR/${host}.$file > /dev/null 2>&1
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if [ $SUBDIR = "sql" ]
|
||||||
|
then
|
||||||
|
scp $HOSTLOGIN:/etc/ipsec.d/ipsec.sql \
|
||||||
|
$TESTRESULTDIR/${host}.ipsec.sql > /dev/null 2>&1
|
||||||
|
else
|
||||||
|
touch $TESTRESULTDIR/${host}.ipsec.sql
|
||||||
|
fi
|
||||||
ssh $HOSTLOGIN ip route list table $SOURCEIP_ROUTING_TABLE \
|
ssh $HOSTLOGIN ip route list table $SOURCEIP_ROUTING_TABLE \
|
||||||
> $TESTRESULTDIR/${host}.iproute 2>/dev/null
|
> $TESTRESULTDIR/${host}.iproute 2>/dev/null
|
||||||
ssh $HOSTLOGIN $IPTABLES -v -n -L \
|
ssh $HOSTLOGIN $IPTABLES -v -n -L \
|
||||||
> $TESTRESULTDIR/${host}.iptables 2>/dev/null
|
> $TESTRESULTDIR/${host}.iptables 2>/dev/null
|
||||||
cat >> $TESTRESULTDIR/index.html <<@EOF
|
cat >> $TESTRESULTDIR/index.html <<@EOF
|
||||||
<h3>$host</h3>
|
<h3>$host</h3>
|
||||||
<table border="0" cellspacing="0" width="400">
|
<table border="0" cellspacing="0" width="600">
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<ul>
|
<ul>
|
||||||
@ -491,7 +498,12 @@ do
|
|||||||
<li><a href="$host.daemon.log">daemon.log</a></li>
|
<li><a href="$host.daemon.log">daemon.log</a></li>
|
||||||
<li><a href="$host.iproute">ip route list table $SOURCEIP_ROUTING_TABLE</a></li>
|
<li><a href="$host.iproute">ip route list table $SOURCEIP_ROUTING_TABLE</a></li>
|
||||||
<li><a href="$host.iptables">$IPTABLES -L</a></li>
|
<li><a href="$host.iptables">$IPTABLES -L</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
</td>
|
||||||
|
<td valign="top">
|
||||||
|
<ul>
|
||||||
|
<li><a href="$host.ipsec.sql">ipsec.sql</a></li>
|
||||||
|
</ul>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
@ -129,7 +129,6 @@ echo "ln -sf /usr/share/zoneinfo/${TZUML} /etc/localtime" >> $INSTALLSHELL
|
|||||||
echo "cd /root/${STRONGSWANVERSION}" >> $INSTALLSHELL
|
echo "cd /root/${STRONGSWANVERSION}" >> $INSTALLSHELL
|
||||||
echo -n "./configure --sysconfdir=/etc" >> $INSTALLSHELL
|
echo -n "./configure --sysconfdir=/etc" >> $INSTALLSHELL
|
||||||
echo -n " --with-random-device=/dev/urandom" >> $INSTALLSHELL
|
echo -n " --with-random-device=/dev/urandom" >> $INSTALLSHELL
|
||||||
echo -n " --enable-integrity-test" >> $INSTALLSHELL
|
|
||||||
|
|
||||||
if [ "$USE_LIBCURL" = "yes" ]
|
if [ "$USE_LIBCURL" = "yes" ]
|
||||||
then
|
then
|
||||||
@ -151,16 +150,21 @@ then
|
|||||||
echo -n " --enable-eap-sim" >> $INSTALLSHELL
|
echo -n " --enable-eap-sim" >> $INSTALLSHELL
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ "$USE_SQL" = "yes" ]
|
||||||
|
then
|
||||||
|
echo -n " --enable-sql --enable-sqlite" >> $INSTALLSHELL
|
||||||
|
fi
|
||||||
|
|
||||||
if [ "$USE_MEDIATION" = "yes" ]
|
if [ "$USE_MEDIATION" = "yes" ]
|
||||||
then
|
then
|
||||||
echo -n " --enable-mediation" >> $INSTALLSHELL
|
echo -n " --enable-mediation" >> $INSTALLSHELL
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$USE_INTEGRITY_TEST" = "yes" ]
|
if [ "$USE_INTEGRITY_TEST" = "yes" ]
|
||||||
then
|
then
|
||||||
echo -n " --enable-integrity-test" >> $INSTALLSHELL
|
echo -n " --enable-integrity-test" >> $INSTALLSHELL
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$USE_LEAK_DETECTIVE" = "yes" ]
|
if [ "$USE_LEAK_DETECTIVE" = "yes" ]
|
||||||
then
|
then
|
||||||
echo -n " --enable-leak-detective" >> $INSTALLSHELL
|
echo -n " --enable-leak-detective" >> $INSTALLSHELL
|
||||||
|
@ -21,7 +21,7 @@ UMLTESTDIR=~/strongswan-testing
|
|||||||
|
|
||||||
# Bzipped kernel sources
|
# Bzipped kernel sources
|
||||||
# (file extension .tar.bz2 required)
|
# (file extension .tar.bz2 required)
|
||||||
KERNEL=$UMLTESTDIR/linux-2.6.24.2.tar.bz2
|
KERNEL=$UMLTESTDIR/linux-2.6.24.4.tar.bz2
|
||||||
|
|
||||||
# Extract kernel version
|
# Extract kernel version
|
||||||
KERNELVERSION=`basename $KERNEL .tar.bz2 | sed -e 's/linux-//'`
|
KERNELVERSION=`basename $KERNEL .tar.bz2 | sed -e 's/linux-//'`
|
||||||
@ -34,12 +34,13 @@ KERNELCONFIG=$UMLTESTDIR/.config-2.6.24
|
|||||||
#UMLPATCH=$UMLTESTDIR/uml_jmpbuf-2.6.18.patch.bz2
|
#UMLPATCH=$UMLTESTDIR/uml_jmpbuf-2.6.18.patch.bz2
|
||||||
|
|
||||||
# Bzipped source of strongSwan
|
# Bzipped source of strongSwan
|
||||||
STRONGSWAN=$UMLTESTDIR/strongswan-4.2.0.tar.bz2
|
STRONGSWAN=$UMLTESTDIR/strongswan-4.2.1.tar.bz2
|
||||||
|
|
||||||
# strongSwan compile options (use "yes" or "no")
|
# strongSwan compile options (use "yes" or "no")
|
||||||
USE_LIBCURL="yes"
|
USE_LIBCURL="yes"
|
||||||
USE_LDAP="yes"
|
USE_LDAP="yes"
|
||||||
USE_EAP_AKA="yes"
|
USE_EAP_AKA="yes"
|
||||||
|
USE_SQL="yes"
|
||||||
USE_MEDIATION="yes"
|
USE_MEDIATION="yes"
|
||||||
USE_INTEGRITY_TEST="no"
|
USE_INTEGRITY_TEST="no"
|
||||||
USE_LEAK_DETECTIVE="no"
|
USE_LEAK_DETECTIVE="no"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user