mirror of
https://github.com/strongswan/strongswan.git
synced 2025-12-07 00:00:13 -05:00
output strongswan.conf and daemon.log on RADIUS hosts with strongSwan IMV
This commit is contained in:
parent
d4c8fe3cb6
commit
a420b4736f
@ -556,6 +556,9 @@ do
|
|||||||
$TESTRESULTDIR/${host}.$file > /dev/null 2>&1
|
$TESTRESULTDIR/${host}.$file > /dev/null 2>&1
|
||||||
done
|
done
|
||||||
|
|
||||||
|
scp $SSHCONF $HOSTLOGIN:/etc/strongswan.conf \
|
||||||
|
$TESTRESULTDIR/${host}.strongswan.conf > /dev/null 2>&1
|
||||||
|
|
||||||
scp $SSHCONF $HOSTLOGIN:/var/log/radius/radius.log \
|
scp $SSHCONF $HOSTLOGIN:/var/log/radius/radius.log \
|
||||||
$TESTRESULTDIR/${host}.radius.log > /dev/null 2>&1
|
$TESTRESULTDIR/${host}.radius.log > /dev/null 2>&1
|
||||||
|
|
||||||
@ -568,12 +571,14 @@ do
|
|||||||
<ul>
|
<ul>
|
||||||
<li><a href="$host.clients.conf">clients.conf</a></li>
|
<li><a href="$host.clients.conf">clients.conf</a></li>
|
||||||
<li><a href="$host.radiusd.conf">radiusd.conf</a></li>
|
<li><a href="$host.radiusd.conf">radiusd.conf</a></li>
|
||||||
|
<li><a href="$host.strongswan.conf">strongswan.conf</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</td>
|
</td>
|
||||||
<td valign="top">
|
<td valign="top">
|
||||||
<ul>
|
<ul>
|
||||||
<li><a href="$host.eap.conf">eap.conf</a></li>
|
<li><a href="$host.eap.conf">eap.conf</a></li>
|
||||||
<li><a href="$host.radius.log">radius.log</a></li>
|
<li><a href="$host.radius.log">radius.log</a></li>
|
||||||
|
<li><a href="$host.daemon.log">daemon.log</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</td>
|
</td>
|
||||||
<td valign="top">
|
<td valign="top">
|
||||||
@ -643,6 +648,18 @@ do
|
|||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
|
##########################################################################
|
||||||
|
# get a copy of /var/log/daemon.log
|
||||||
|
#
|
||||||
|
|
||||||
|
for host in $RADIUSHOSTS
|
||||||
|
do
|
||||||
|
eval HOSTLOGIN=root@\$ipv4_${host}
|
||||||
|
ssh $SSHCONF $HOSTLOGIN grep imcv /var/log/daemon.log \
|
||||||
|
>> $TESTRESULTDIR/${host}.daemon.log
|
||||||
|
done
|
||||||
|
|
||||||
|
|
||||||
##########################################################################
|
##########################################################################
|
||||||
# stop tcpdump if necessary
|
# stop tcpdump if necessary
|
||||||
#
|
#
|
||||||
|
|||||||
@ -63,12 +63,12 @@ done
|
|||||||
|
|
||||||
|
|
||||||
##########################################################################
|
##########################################################################
|
||||||
# clear radius.log on FreeRadius servers
|
# clear radius.log and daemon.log on FreeRadius servers
|
||||||
#
|
#
|
||||||
|
|
||||||
for host in $RADIUSHOSTS
|
for host in $RADIUSHOSTS
|
||||||
do
|
do
|
||||||
eval HOSTLOGIN="root@`echo $HOSTNAMEIPV4 | sed -n -e "s/^.*${host},//gp" | awk -F, '{ print $1 }' | awk '{ print $1 }'`"
|
eval HOSTLOGIN="root@`echo $HOSTNAMEIPV4 | sed -n -e "s/^.*${host},//gp" | awk -F, '{ print $1 }' | awk '{ print $1 }'`"
|
||||||
ssh $SSHCONF $HOSTLOGIN 'rm -f /var/log/radius/radius.log; \
|
ssh $SSHCONF $HOSTLOGIN 'rm -f /var/log/radius/radius.log /var/log/daemon.log; \
|
||||||
kill -SIGHUP `cat /var/run/syslogd.pid`' > /dev/null 2>&1
|
kill -SIGHUP `cat /var/run/syslogd.pid`' > /dev/null 2>&1
|
||||||
done
|
done
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user