mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-20 09:47:51 +02:00
Fix log record displays
This commit is contained in:
parent
c34e09cd67
commit
55c879e4e6
@ -4,6 +4,8 @@ Changes in Shorewall 4.4.0
|
|||||||
|
|
||||||
2) Fix rule generation for logging nat rules with no exclusion.
|
2) Fix rule generation for logging nat rules with no exclusion.
|
||||||
|
|
||||||
|
3) Fix log record formatting.
|
||||||
|
|
||||||
Changes in Shorewall 4.4.0-RC2
|
Changes in Shorewall 4.4.0-RC2
|
||||||
|
|
||||||
1) Fix capabilities file with Shorewall6.
|
1) Fix capabilities file with Shorewall6.
|
||||||
|
@ -151,8 +151,6 @@ syslog_circular_buffer() {
|
|||||||
#
|
#
|
||||||
packet_log() # $1 = number of messages
|
packet_log() # $1 = number of messages
|
||||||
{
|
{
|
||||||
local options
|
|
||||||
|
|
||||||
if [ -n "$SHOWMACS" -o $VERBOSE -gt 2 ]; then
|
if [ -n "$SHOWMACS" -o $VERBOSE -gt 2 ]; then
|
||||||
$LOGREAD | grep 'IN=.* OUT=.*SRC=.*\..*DST=' | 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
|
||||||
|
@ -167,7 +167,11 @@ Shorewall 4.4.0
|
|||||||
iptables v1.3.5: Need TCP or UDP with port specification
|
iptables v1.3.5: Need TCP or UDP with port specification
|
||||||
Try `iptables -h' or 'iptables --help' for more information.
|
Try `iptables -h' or 'iptables --help' for more information.
|
||||||
ERROR: Command "/sbin/iptables -A log0 -j REDIRECT --to-port
|
ERROR: Command "/sbin/iptables -A log0 -j REDIRECT --to-port
|
||||||
82" Failed
|
82" Failed
|
||||||
|
|
||||||
|
3) Previously, log displays from the dump, show and logwatch commands
|
||||||
|
did not properly suppress redundant fields in the records (host
|
||||||
|
name, and leading constant part of the LOGPREFIX).
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
----------------------------------------------------------------------------
|
||||||
K N O W N P R O B L E M S R E M A I N I N G
|
K N O W N P R O B L E M S R E M A I N I N G
|
||||||
|
@ -301,9 +301,9 @@ get_config() {
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
[ -n "LOGFORMAT" ] && LOGFORMAT="${LOGFORMAT%%%*}"
|
[ -z "$LOGFORMAT" ] && LOGFORMAT='Shorewall:%s.%s'
|
||||||
|
|
||||||
[ -n "$LOGFORMAT" ] || LOGFORMAT="Shorewall:"
|
[ -n "$LOGFORMAT" ] && LOGFORMAT="${LOGFORMAT%%%*}"
|
||||||
|
|
||||||
export LOGFORMAT
|
export LOGFORMAT
|
||||||
|
|
||||||
|
@ -132,8 +132,6 @@ syslog_circular_buffer() {
|
|||||||
#
|
#
|
||||||
packet_log() # $1 = number of messages
|
packet_log() # $1 = number of messages
|
||||||
{
|
{
|
||||||
local options
|
|
||||||
|
|
||||||
if [ -n "$SHOWMACS" -o $VERBOSE -gt 2 ]; then
|
if [ -n "$SHOWMACS" -o $VERBOSE -gt 2 ]; then
|
||||||
$LOGREAD | grep 'IN=.* OUT=.*SRC=.*:.*DST=' | 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
|
||||||
|
@ -218,9 +218,9 @@ get_config() {
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
[ -n "LOGFORMAT" ] && LOGFORMAT="${LOGFORMAT%%%*}"
|
[ -n "$LOGFORMAT" ] || LOGFORMAT='Shorewall6:%s.%s'
|
||||||
|
|
||||||
[ -n "$LOGFORMAT" ] || LOGFORMAT="Shorewall6:"
|
[ -n "$LOGFORMAT" ] && LOGFORMAT="${LOGFORMAT%%%*}"
|
||||||
|
|
||||||
export LOGFORMAT
|
export LOGFORMAT
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user