INTRODUCTION
netfilter2html is a script wrote using GAWK to process netfilter logs and generate a nice HTML output.
GAWK is faster to process text files, it can process 100.000 text lines in a few seconds.
 
FEATURES
You can config...
- TCP/UDP ports that should appear highlighted (red color);
- IP's and (SRC|DST) TCP/UDP ports that should removed from the report;
- Max number of records/lines per page (to avoid flooding browsers);
- Name of HTML files and it extension;
- Destination directory to use for HTML files, images, etc..;
- Date selection by command line [--date Mar/3|--today|--yesterday].
Just records that match the selected date will used in reports;

You can see in reports...
- Date (previous selected by command line);
- Creation date;
- Total number of log records that match the selected date;
- Total number of pages;
- Total number of warnings (TCP/UDP ports configured to appear highlighted);
- Total number of removed records;
- Log prefix, complet set of "most" important fields used in netfilter logs
and the number of hits that a same netfilter log appeared;

 
RUNNING
Examples:

netfilter2html --date Feb/18 /var/log/messages
netfilter2html --today /var/log/messages
netfilter2html --yesterday /var/log/messages
netfilter2html -c /path/of/netfilter2html.conf --yesterday /var/log/messages

For a daily usage I recommend run netfilter2html using "cron" schedule.

Example:

15 0 * * * /usr/local/bin/netfilter2html --yesterday /var/log/messages

 
Demo
Download
 Too Cool for Internet Explorer