mirror of
https://gitlab.com/shorewall/code.git
synced 2024-11-08 08:44:05 +01:00
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:
parent
a3fcabc0e8
commit
389a3c6a1c
@ -6,6 +6,8 @@ Changes in Shorewall 4.3.4
|
||||
|
||||
3) Improve chain-combining optimizations.
|
||||
|
||||
4) Make connection and log displays address family specific.
|
||||
|
||||
Changes in Shorewall 4.3.3
|
||||
|
||||
1) Removed 'ecn'.
|
||||
|
@ -154,9 +154,9 @@ packet_log() # $1 = number of messages
|
||||
local options
|
||||
|
||||
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
|
||||
$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
|
||||
}
|
||||
|
||||
|
@ -57,6 +57,11 @@ Other Changes in 4.3.4
|
||||
output of 'shorewall show connections', 'shorewall-lite show
|
||||
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.
|
||||
|
||||
None.
|
||||
|
@ -135,9 +135,9 @@ packet_log() # $1 = number of messages
|
||||
local options
|
||||
|
||||
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
|
||||
$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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user