On Aug 31, 2011, at 3:57 PM, Ed W wrote:
>
> Hi, it's late, so I'm probably not thinking clearly. The trace also
> hints at some log line like the one I posted I think? I think I counted
> the ICMP lines in the log file and indeed there were 14?
>
> Trace output below, help appreciated (note I'm copy/pasting over a
> serial console and it wraps at odd places):
>
>
> + shift
> + hits_command
> + local finished
> + finished=0
> + local today
> + today=
> + [ 0 -eq 0 -a 0 -gt 0 ]
> + [ 0 -eq 0 ]
> + clear_term
> + [ -t 1 ]
> + clear
> + date
> + echo Shorewall 4.4.22.3 Hits at localhost - Wed Aug 31 22:52:55 UTC 2011
> + echo
> + timeout=30
> + grep -q IN=.* OUT=
> + tac /var/log/messages
> + echo HITS IP DATE
> + echo ---- --------------- ------
> + read count address month day
> + sort -rn
> + uniq -c
> + sort
> + sed s/\(.\{6\}\)\(.*SRC=\)\(.*\)\( DST=.*\)/\3 \1/
> + grep IN=.* OUT=
> + tac /var/log/messages
> + printf %7d %-15s %3s %2d\n 37 192.168.105.70 Aug 31
> + read count address month day
> + echo
> + echo HITS IP PORT
> + echo ---- --------------- -----
> + sort -rn
> + uniq -c
> + sort
> + sed s/\(.*SRC=\)\(.*\)\( DST=.*DPT=\)\([0-9]\{1,5\}\)\(.*\)/\2 \4/
> t
> s/\(.*SRC=\)\(.*\)\(
> DST=.*\)/\2/
> + grep IN=.* OUT=
> + tac /var/log/messages
> + read count address port
> + printf %7d %-15s %d\n 14 192.168.105.70
> sh: invalid number ''
> The 'invalid number' message is a feature of busybox printf. The attached patch makes busybox output look like that of other environments. -Tom
ASH.patch
Description: Binary data
Tom Eastep \ When I die, I want to go like my Grandfather who Shoreline, \ died peacefully in his sleep. Not screaming like Washington, USA \ all of the passengers in his car http://shorewall.net \________________________________________________
------------------------------------------------------------------------------ Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free "Love Thy Logs" t-shirt when you download Logger. Secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________ Shorewall-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/shorewall-devel
