forked from extern/shorewall_code
Add counter reset time to log displays
git-svn-id: https://shorewall.svn.sourceforge.net/svnroot/shorewall/trunk@246 fbd18981-670d-0410-9b5c-8dc0c1a9a2bb
This commit is contained in:
parent
44f88327be
commit
7c84739589
@ -312,6 +312,8 @@ monitor_firewall() # $1 = timeout -- if negative, prompt each time that
|
|||||||
|
|
||||||
echo -e "Dropped/Rejected Packet Log\\n"
|
echo -e "Dropped/Rejected Packet Log\\n"
|
||||||
|
|
||||||
|
show_reset
|
||||||
|
|
||||||
rejects=`iptables -L -v -n | grep 'LOG'`
|
rejects=`iptables -L -v -n | grep 'LOG'`
|
||||||
|
|
||||||
if [ "$rejects" != "$oldrejects" ]; then
|
if [ "$rejects" != "$oldrejects" ]; then
|
||||||
@ -384,6 +386,8 @@ logwatch() # $1 = timeout -- if negative, prompt each time that
|
|||||||
|
|
||||||
echo -e "Dropped/Rejected Packet Log\\n"
|
echo -e "Dropped/Rejected Packet Log\\n"
|
||||||
|
|
||||||
|
show_reset
|
||||||
|
|
||||||
rejects=`iptables -L -v -n | grep 'LOG'`
|
rejects=`iptables -L -v -n | grep 'LOG'`
|
||||||
|
|
||||||
if [ "$rejects" != "$oldrejects" ]; then
|
if [ "$rejects" != "$oldrejects" ]; then
|
||||||
@ -553,6 +557,7 @@ case "$1" in
|
|||||||
log)
|
log)
|
||||||
get_config
|
get_config
|
||||||
echo -e "Shorewall-$version Log at $HOSTNAME - `date`\\n"
|
echo -e "Shorewall-$version Log at $HOSTNAME - `date`\\n"
|
||||||
|
show_reset
|
||||||
host=`echo $HOSTNAME | sed 's/\..*$//'`
|
host=`echo $HOSTNAME | sed 's/\..*$//'`
|
||||||
packet_log 20
|
packet_log 20
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user