iptables2dlf1
Convert ip tables syslog logs to firewall dlf
Usage
iptables2dlf file
Overview
iptables2dlf converts Linux 2.4 packet log into firewall DLF format.
Limitations
The netfilter logging modules doesn't log the status of the packet (drop, accept, reject) like the ipchains logging code. You can specify a prefix that will be used in the log. This converter will marks the packet as 'denied' whenever that prefix match (case insensitive) the following regex: 'denied⎪deny⎪drop⎪reject', other packets will have '-' as the value of the 'action' field.
So in order for that converter to detect 'denied' packets, you should use prefix containing one of those substrings.
For example:
iptables -N lodrop iptables -A logdrop -j LOG --log-prefix "Packet-DENY: " iptables -A logdrop -j DROP
or other similar prefixes: 'denied: ', 'Packet-REJECT: ', ...
The prefix used will ends up in the 'rule' field of the DLF record.
Version
$Id: iptables2dlf.in,v 1.2 2002/01/22 23:38:49 flacoste Exp $