Lire::Firewall::IptablesDlfConverter(3pm)

Lire::Firewall::IptablesDlfConverter3pm

Convert netfilter/iptables syslog logs to firewall dlf

Overview

IptablesDlfConverter converts Linux 2.4 iptables packet log into firewall DLF format.

Limitations

The netfilter logging modules don'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 mark the packet as 'denied' whenever that prefix matches (case insensitive) the following regex: 'denied|deny|drop|reject|unallowed', it will mark the packet as 'permitted' whenever that prefix matches (case insensitive) the following regex: 'accept|permit', and all other packets will have '-' as the value of the 'action' field.

So in order for this converter to detect 'denied' packets, you should use a 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 end up in the 'rule' field of the DLF record.

Examples

IptablesDlfConvertor will be rarely used on its own, but is more likely called by lr_log2report:

 $ lr_log2report iptables < /var/log/iptables.log > report

Version

$Id: IptablesDlfConverter.pm,v 1.12 2006/07/23 13:16:35 vanbaal Exp $

Releases

6 releases since Debian 3.1 (Sarge); the text changed 5 times.

  1. 3.1
  2. 4.0
  3. 5.0
  4. 6.0
  5. 7
  6. Arch

Authors

Francis J. Lacoste <[email protected]>

From lire 2.1.1-8 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.