LIRE::FIREWALL::IPTABLESDLFCONVERTER(3pm)
π IptablesDlfConverter(3pm) π
okay so this page is from LogReport's Lire Documentation, and the star of the show is IptablesDlfConverter(3pm) β manual name secured, vibe check passed. β¨
β¨ NAME β¨
IptablesDlfConverterβ convert netfilter/iptables syslog logs to firewall DLF. that's it, that's the name. π
π DESCRIPTION π
IptablesDlfConverter converts Linux 2.4 iptables packet log into firewall DLF format. literally its whole job. π¦
π LIMITATIONS π
okay bestie, this is the part where the netfilter logging modules are kinda doing their own thing: they don't log the status of the packet (drop, accept, reject) like the ipchains logging code does. π
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. periodt. π
so for this converter to detect 'denied' packets, use a prefix containing one of those substrings. that's the whole trick, bestie. π
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. iconic, but also: keep it in mind. π
π EXAMPLES π
IptablesDlfConvertor will be rarely used on its own, but it's more likely to be called by lr_log2report:
$ lr_log2report iptables < /var/log/iptables.log > report
π SEE ALSO π
the Netfilter webpage at http://netfilter.samba.org/. go look, bestie. π
π«Ά AUTHORS π«Ά
Francis J. Lacoste <flacoste@logreport.org> β author credits, secured. π«Ά
π VERSION π
here's the version line, exactly as it appears:
$Id: IptablesDlfConverter.pm,v 1.12 2006/07/23 13:16:35 vanbaal Exp $
π COPYRIGHT π
Copyright (C) 2001, 2002, 2003, 2004 Stichting LogReport Foundation β LogReport@LogReport.org. that's the copyright, no cap. π
legally speaking: this program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. π
this program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. see the GNU General Public License for more details. βοΈ
you should have received a copy of the GNU General Public License along with this program (see COPYING); if not, check with http://www.gnu.org/copyleft/gpl.html. π
π and that's the whole page, bestie! this was from Lire 2.1.1, dated 2025-09-28 β IptablesDlfConverter(3pm) out. πβ¨
π¦ where this page comes from
- arch rolling: lire 2.1.1-8 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms