Remove additional noise from log messages

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@5142 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2006-12-20 16:14:31 +00:00
parent 72ab052ef1
commit 052158b6e9
2 changed files with 5 additions and 9 deletions

View File

@ -2,6 +2,9 @@ Changes in 3.4.0 Beta 1
1) Correct handling of masq file.
2) Simplify log record processing and remove more noise from the
displayed record.
Changes in 3.3.6
1) Remove /etc/shorewall/Documentation.

View File

@ -150,16 +150,9 @@ packet_log() # $1 = number of messages
[ -n "$realtail" ] && options="-n$1"
if [ -n "$SHOWMACS" -o $VERBOSE -gt 2 ]; then
$LOGREAD | grep 'IN=.* OUT=' | \
sed s/" kernel:"// | \
sed s/" $host $LOGFORMAT"/" "/ | \
tail $options
$LOGREAD | grep 'IN=.* OUT=' | sed 's/ kernel://; s/\[.*\] //' | sed s/" $host $LOGFORMAT"/" "/ | tail $options
else
$LOGREAD | grep 'IN=.* OUT=' | \
sed s/" kernel:"// | \
sed s/" $host $LOGFORMAT"/" "/ | \
sed 's/MAC=.* SRC=/SRC=/' | \
tail $options
$LOGREAD | grep 'IN=.* OUT=' | sed 's/ kernel://; s/MAC=.* SRC=/SRC=/; s/\[.*\] '// | sed s/" $host $LOGFORMAT"/" "/ | tail $options
fi
}