mirror of
https://gitlab.com/shorewall/code.git
synced 2025-06-18 23:57:14 +02:00
Add log rate limiting text to shorewall.conf
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@1276 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
942693a8e7
commit
5fbe4e2c81
@ -22,3 +22,5 @@ Changes since 2.0.1
|
|||||||
have invented.
|
have invented.
|
||||||
|
|
||||||
11) Update the bogons file
|
11) Update the bogons file
|
||||||
|
|
||||||
|
12) Added example for log rate limiting knobs in shorewall.conf.
|
@ -1092,7 +1092,6 @@ log_rule_limit() # $1 = log level, $2 = chain, $3 = disposition , $4 = rate limi
|
|||||||
|
|
||||||
rulenum=$(($rulenum + 1))
|
rulenum=$(($rulenum + 1))
|
||||||
eval ${chain}_logrules=$rulenum
|
eval ${chain}_logrules=$rulenum
|
||||||
|
|
||||||
else
|
else
|
||||||
prefix="$(printf "$LOGFORMAT" $chain $disposition)${tag:+$tag }"
|
prefix="$(printf "$LOGFORMAT" $chain $disposition)${tag:+$tag }"
|
||||||
fi
|
fi
|
||||||
|
@ -90,12 +90,21 @@ LOGFORMAT="Shorewall:%s:%s:"
|
|||||||
# maximum initial burst size that will be logged. If set empty, the default
|
# maximum initial burst size that will be logged. If set empty, the default
|
||||||
# value of 5 will be used.
|
# value of 5 will be used.
|
||||||
#
|
#
|
||||||
|
# If BOTH variables are set empty then logging will not be rate-limited.
|
||||||
|
#
|
||||||
# Example:
|
# Example:
|
||||||
#
|
#
|
||||||
# LOGRATE=10/minute
|
# LOGRATE=10/minute
|
||||||
# LOGBURST=5
|
# LOGBURST=5
|
||||||
#
|
#
|
||||||
# If BOTH variables are set empty then logging will not be rate-limited.
|
# For each logging rule, the first time the rule is reached, the packet
|
||||||
|
# will be logged; in fact, since the burst is 5, the first five packets
|
||||||
|
# will be logged. After this, it will be 6 seconds (1 minute divided by
|
||||||
|
# the rate of 10) before a message will be logged from the rule, regardless
|
||||||
|
# of how many packets reach it. Also, every 6 seconds which passes without
|
||||||
|
# matching a packet, one of the bursts will be regained; if no packets hit
|
||||||
|
# the rule for 30 seconds, the burst will be fully recharged; back where
|
||||||
|
# we started.
|
||||||
#
|
#
|
||||||
|
|
||||||
LOGRATE=
|
LOGRATE=
|
||||||
|
Loading…
x
Reference in New Issue
Block a user