From 6ac6abe60e5296e472d2a2dbed836c297367089c Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Tue, 12 Nov 2019 13:27:07 +0100 Subject: [PATCH] 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 --- test/remote.sh | 6 ++++-- test/start.sh | 4 ++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/test/remote.sh b/test/remote.sh index 7496aa8..69e5a6e 100755 --- a/test/remote.sh +++ b/test/remote.sh @@ -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} diff --git a/test/start.sh b/test/start.sh index 66272c9..c8b740d 100755 --- a/test/start.sh +++ b/test/start.sh @@ -17,10 +17,10 @@ EOF cat < ${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