mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-23 08:03:11 +01:00
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:
parent
72ab052ef1
commit
052158b6e9
@ -2,6 +2,9 @@ Changes in 3.4.0 Beta 1
|
|||||||
|
|
||||||
1) Correct handling of masq file.
|
1) Correct handling of masq file.
|
||||||
|
|
||||||
|
2) Simplify log record processing and remove more noise from the
|
||||||
|
displayed record.
|
||||||
|
|
||||||
Changes in 3.3.6
|
Changes in 3.3.6
|
||||||
|
|
||||||
1) Remove /etc/shorewall/Documentation.
|
1) Remove /etc/shorewall/Documentation.
|
||||||
|
@ -150,16 +150,9 @@ packet_log() # $1 = number of messages
|
|||||||
[ -n "$realtail" ] && options="-n$1"
|
[ -n "$realtail" ] && options="-n$1"
|
||||||
|
|
||||||
if [ -n "$SHOWMACS" -o $VERBOSE -gt 2 ]; then
|
if [ -n "$SHOWMACS" -o $VERBOSE -gt 2 ]; then
|
||||||
$LOGREAD | grep 'IN=.* OUT=' | \
|
$LOGREAD | grep 'IN=.* OUT=' | sed 's/ kernel://; s/\[.*\] //' | sed s/" $host $LOGFORMAT"/" "/ | tail $options
|
||||||
sed s/" kernel:"// | \
|
|
||||||
sed s/" $host $LOGFORMAT"/" "/ | \
|
|
||||||
tail $options
|
|
||||||
else
|
else
|
||||||
$LOGREAD | grep 'IN=.* OUT=' | \
|
$LOGREAD | grep 'IN=.* OUT=' | sed 's/ kernel://; s/MAC=.* SRC=/SRC=/; s/\[.*\] '// | sed s/" $host $LOGFORMAT"/" "/ | tail $options
|
||||||
sed s/" kernel:"// | \
|
|
||||||
sed s/" $host $LOGFORMAT"/" "/ | \
|
|
||||||
sed 's/MAC=.* SRC=/SRC=/' | \
|
|
||||||
tail $options
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user