Make log displays address family specific

git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@9073 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
teastep 2008-12-16 17:11:47 +00:00
parent a3fcabc0e8
commit 389a3c6a1c
4 changed files with 11 additions and 4 deletions

View File

@ -6,6 +6,8 @@ Changes in Shorewall 4.3.4
3) Improve chain-combining optimizations. 3) Improve chain-combining optimizations.
4) Make connection and log displays address family specific.
Changes in Shorewall 4.3.3 Changes in Shorewall 4.3.3
1) Removed 'ecn'. 1) Removed 'ecn'.

View File

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

View File

@ -57,6 +57,11 @@ Other Changes in 4.3.4
output of 'shorewall show connections', 'shorewall-lite show output of 'shorewall show connections', 'shorewall-lite show
connections', 'shorewall dump' and 'shorewall-lite dump'. connections', 'shorewall dump' and 'shorewall-lite dump'.
2) The Shorewall and Shorewall lite commands that show log messages
('shorewall show log', ...) now show only IPv4 messages. The
corresponding commands in Shorewall6 and Shorewall6 Lite only show
IPv6 messages.
Migration Issues. Migration Issues.
None. None.

View File

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