moved strongswan.conf to /etc
This commit is contained in:
+3
-5
@@ -463,7 +463,7 @@ do
|
|||||||
> $TESTRESULTDIR/${host}.$command 2>/dev/null
|
> $TESTRESULTDIR/${host}.$command 2>/dev/null
|
||||||
done
|
done
|
||||||
|
|
||||||
for file in ipsec.conf ipsec.secrets
|
for file in strongswan.conf ipsec.conf ipsec.secrets
|
||||||
do
|
do
|
||||||
scp $HOSTLOGIN:/etc/$file \
|
scp $HOSTLOGIN:/etc/$file \
|
||||||
$TESTRESULTDIR/${host}.$file > /dev/null 2>&1
|
$TESTRESULTDIR/${host}.$file > /dev/null 2>&1
|
||||||
@@ -471,14 +471,12 @@ do
|
|||||||
|
|
||||||
if [ $SUBDIR = "sql" ]
|
if [ $SUBDIR = "sql" ]
|
||||||
then
|
then
|
||||||
scp $HOSTLOGIN:/etc/ipsec.d/ipsec.sql \
|
scp $HOSTLOGIN:/etc/ipsec.sql \
|
||||||
$TESTRESULTDIR/${host}.ipsec.sql > /dev/null 2>&1
|
$TESTRESULTDIR/${host}.ipsec.sql > /dev/null 2>&1
|
||||||
scp $HOSTLOGIN:/etc/ipsec.d/strongswan.conf \
|
|
||||||
$TESTRESULTDIR/${host}.strongswan.conf > /dev/null 2>&1
|
|
||||||
else
|
else
|
||||||
touch $TESTRESULTDIR/${host}.ipsec.sql
|
touch $TESTRESULTDIR/${host}.ipsec.sql
|
||||||
touch $TESTRESULTDIR/${host}.strongswan.conf
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ssh $HOSTLOGIN ip xfrm policy \
|
ssh $HOSTLOGIN ip xfrm policy \
|
||||||
> $TESTRESULTDIR/${host}.ip.policy 2>/dev/null
|
> $TESTRESULTDIR/${host}.ip.policy 2>/dev/null
|
||||||
ssh $HOSTLOGIN ip xfrm state \
|
ssh $HOSTLOGIN ip xfrm state \
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
# /etc/strongswan.conf - strongSwan configuration file
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
# /etc/strongswan.conf - strongSwan configuration file
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
# /etc/strongswan.conf - strongSwan configuration file
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
# /etc/strongswan.conf - strongSwan configuration file
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
# /etc/strongswan.conf - strongSwan configuration file
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
# /etc/strongswan.conf - strongSwan configuration file
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
# /etc/strongswan.conf - strongSwan configuration file
|
||||||
+2
@@ -1,3 +1,5 @@
|
|||||||
|
# /etc/strongswan.conf - strongSwan configuration file
|
||||||
|
|
||||||
charon {
|
charon {
|
||||||
plugins {
|
plugins {
|
||||||
sql {
|
sql {
|
||||||
+2
@@ -1,3 +1,5 @@
|
|||||||
|
# /etc/strongswan.conf - strongSwan configuration file
|
||||||
|
|
||||||
charon {
|
charon {
|
||||||
plugins {
|
plugins {
|
||||||
sql {
|
sql {
|
||||||
@@ -1,7 +1,5 @@
|
|||||||
moon::cp /etc/ipsec.d/strongswan.conf /usr/local/libexec/ipsec
|
|
||||||
moon::rm /etc/ipsec.d/cacerts/*
|
moon::rm /etc/ipsec.d/cacerts/*
|
||||||
moon::cat /etc/ipsec.d/ipsec.sql | sqlite3 /etc/ipsec.d/ipsec.db
|
moon::cat /etc/ipsec.d/ipsec.sql | sqlite3 /etc/ipsec.d/ipsec.db
|
||||||
sun::cp /etc/ipsec.d/strongswan.conf /usr/local/libexec/ipsec
|
|
||||||
sun::rm /etc/ipsec.d/cacerts/*
|
sun::rm /etc/ipsec.d/cacerts/*
|
||||||
sun::cat /etc/ipsec.d/ipsec.sql | sqlite3 /etc/ipsec.d/ipsec.db
|
sun::cat /etc/ipsec.d/ipsec.sql | sqlite3 /etc/ipsec.d/ipsec.db
|
||||||
moon::/etc/init.d/iptables start 2> /dev/null
|
moon::/etc/init.d/iptables start 2> /dev/null
|
||||||
|
|||||||
+2
@@ -1,3 +1,5 @@
|
|||||||
|
# /etc/strongswan.conf - strongSwan configuration file
|
||||||
|
|
||||||
charon {
|
charon {
|
||||||
plugins {
|
plugins {
|
||||||
sql {
|
sql {
|
||||||
+2
@@ -1,3 +1,5 @@
|
|||||||
|
# /etc/strongswan.conf - strongSwan configuration file
|
||||||
|
|
||||||
charon {
|
charon {
|
||||||
plugins {
|
plugins {
|
||||||
sql {
|
sql {
|
||||||
@@ -1,8 +1,6 @@
|
|||||||
moon::cp /etc/ipsec.d/strongswan.conf /usr/local/libexec/ipsec
|
|
||||||
moon::rm /etc/ipsec.d/cacerts/*
|
moon::rm /etc/ipsec.d/cacerts/*
|
||||||
moon::cat /etc/ipsec.d/ipsec.sql | sqlite3 /etc/ipsec.d/ipsec.db
|
|
||||||
sun::cp /etc/ipsec.d/strongswan.conf /usr/local/libexec/ipsec
|
|
||||||
sun::rm /etc/ipsec.d/cacerts/*
|
sun::rm /etc/ipsec.d/cacerts/*
|
||||||
|
moon::cat /etc/ipsec.d/ipsec.sql | sqlite3 /etc/ipsec.d/ipsec.db
|
||||||
sun::cat /etc/ipsec.d/ipsec.sql | sqlite3 /etc/ipsec.d/ipsec.db
|
sun::cat /etc/ipsec.d/ipsec.sql | sqlite3 /etc/ipsec.d/ipsec.db
|
||||||
moon::/etc/init.d/iptables start 2> /dev/null
|
moon::/etc/init.d/iptables start 2> /dev/null
|
||||||
sun::/etc/init.d/iptables start 2> /dev/null
|
sun::/etc/init.d/iptables start 2> /dev/null
|
||||||
|
|||||||
Reference in New Issue
Block a user