test: Verify new secure mode, and remote log to default port
It's a lot easier to debug the remote test with Wireshark if we log to the default service port on the remote host. Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
parent
11ab6c55bc
commit
6ac6abe60e
@ -8,7 +8,8 @@ fi
|
|||||||
MSG="kilroy"
|
MSG="kilroy"
|
||||||
|
|
||||||
# Start collector in background, note: might need sudo!
|
# Start collector in background, note: might need sudo!
|
||||||
tshark -Qni lo -w ${CAP} port ${PORT} &
|
#tshark -Qni lo -w ${CAP} port ${PORT} &
|
||||||
|
tshark -Qni lo -w ${CAP} port 514 &
|
||||||
PID="$!"
|
PID="$!"
|
||||||
|
|
||||||
# Wait for tshark to start up properly
|
# Wait for tshark to start up properly
|
||||||
@ -24,6 +25,7 @@ kill -TERM ${PID}
|
|||||||
wait ${PID}
|
wait ${PID}
|
||||||
|
|
||||||
# Analyze content, should have $MSG now ...
|
# Analyze content, should have $MSG now ...
|
||||||
tshark -d udp.port==${PORT},syslog -r ${CAP} | grep ${MSG}
|
#tshark -d udp.port==${PORT},syslog -r ${CAP} | grep ${MSG}
|
||||||
|
tshark -r ${CAP} | grep ${MSG}
|
||||||
rm ${CAP}
|
rm ${CAP}
|
||||||
|
|
||||||
|
@ -17,10 +17,10 @@ EOF
|
|||||||
|
|
||||||
cat <<EOF > ${CONFD}/bar.conf
|
cat <<EOF > ${CONFD}/bar.conf
|
||||||
# For remote logging
|
# For remote logging
|
||||||
*.* @127.0.0.2:${PORT}
|
*.* @127.0.0.2
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
../src/syslogd -b :${PORT} -d -n -f ${CONF} -p ${SOCK} -p ${ALTSOCK} &
|
../src/syslogd -b :${PORT} -d -sn -f ${CONF} -p ${SOCK} -p ${ALTSOCK} &
|
||||||
echo "$!" > ${PID}
|
echo "$!" > ${PID}
|
||||||
|
|
||||||
sleep 2
|
sleep 2
|
||||||
|
Loading…
Reference in New Issue
Block a user