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:
Joachim Nilsson 2019-11-12 13:27:07 +01:00
parent 11ab6c55bc
commit 6ac6abe60e
2 changed files with 6 additions and 4 deletions

View File

@ -8,7 +8,8 @@ fi
MSG="kilroy"
# 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="$!"
# Wait for tshark to start up properly
@ -24,6 +25,7 @@ kill -TERM ${PID}
wait ${PID}
# 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}

View File

@ -17,10 +17,10 @@ EOF
cat <<EOF > ${CONFD}/bar.conf
# For remote logging
*.* @127.0.0.2:${PORT}
*.* @127.0.0.2
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}
sleep 2