.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man v6.0.2 (Pod::Simple 3.45) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" .\" Required to disable full justification in groff 1.23.0. .if n .ds AD l .\" ======================================================================== .\" .IX Title "IpfilterDlfConverter 3pm" .TH IpfilterDlfConverter 3pm 2025-09-28 "Lire 2.1.1" "LogReport's Lire Documentation" .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME Lire::Firewall::IpfilterDlfConverter \- convert ipf (ipmon) logs to firewall DLF .SH DESCRIPTION .IX Header "DESCRIPTION" \&\fBLire::Firewall::IpfilterDlfConverter\fR converts Ipfilter logs into firewall DLF format. Input for this converter is the standard ipf syslog log file as produced by ipmon. IP Filter is shipped with FreeBSD, OpenBSD (up to 2.9) and some other OS\*(Aqs. .SH EXAMPLE .IX Header "EXAMPLE" A ipfilter logfile which looks like .PP .Vb 10 \& Oct 30 07:42:29 rolle ipmon[16747]: 07:42:28.585962 ie0 @0:9 \& b 192.168.48.1,45085 \-> 192.168.48.2,22 PR tcp len 20 64 \-S OUT \& Oct 30 07:40:24 rolle ipmon[16747]: 07:40:23.631307 ep1 @0:6 \& b 192.168.26.5,113 \-> 192.168.26.1,3717 PR tcp len 20 40 \-AR OUT \& Oct 30 07:42:29 rolle ipmon[16747]: 07:42:28.585962 ie0 @0:9 \& b 192.168.48.1,45085 \-> 192.168.48.2,22 PR tcp len 20 64 \-S OUT \& Oct 30 07:44:11 rolle ipmon[16747]: 07:44:10.605416 2x ep1 @0:15 \& b 192.168.26.1,138 \-> 192.168.26.255,138 PR udp len 20 257 IN \& Oct 30 07:44:34 rolle ipmon[16747]: 07:44:33.891869 ie0 @0:10 \& b 192.168.48.1,23406 \-> 192.168.48.2,22 PR tcp len 20 64 \-S OUT \& Oct 30 07:49:13 rolle ipmon[16747]: 07:49:12.554420 ep1 @0:15 \& b 210.132.100.117 \-> 192.168.26.5 PR icmp len 20 56 icmp 3/3 for \& 192.168.26.5,61915 \- 210.132.100.117,53 PR udp len 20 23040 IN \& Oct 30 07:50:23 rolle ipmon[16747]: 07:50:22.908107 ep1 @0:15 \& b 210.132.100.117 \-> 192.168.26.5 PR icmp len 20 56 icmp 3/3 for \& 192.168.26.5,4480 \- 210.132.100.117,53 PR udp len 20 19712 IN \& Oct 30 07:56:11 rolle ipmon[16747]: 07:56:11.113029 2x ep1 @0:15 \& b 192.168.26.1,138 \-> 192.168.26.255,138 PR udp len 20 257 IN .Ve .PP (that\*(Aqs: .... \*(AqPR\*(Aq protocol \*(Aqlen\*(Aq length_of_ip_headers_saved packetlength direction) will get converted to something like .PP .Vb 12 \& 994398737 denied igmp 100.187.115.1 \- ep1 LIRE_NOTAVAIL \e \& 224.0.0.2 \- 56 \& 994398861 denied igmp 100.187.115.1 \- ep1 LIRE_NOTAVAIL \e \& 224.0.0.1 \- 56 \& 994398862 denied igmp 100.187.115.1 \- ep1 LIRE_NOTAVAIL \e \& 224.0.0.2 \- 56 \& 994406849 denied udp 192.168.26.4 137 ie0 LIRE_NOTAVAIL \e \& 192.168.26.255 137 116 \& 994406850 denied udp 192.168.26.4 137 ie0 LIRE_NOTAVAIL \e \& 192.168.26.255 137 116 \& 994406866 denied udp 192.168.26.4 137 ie0 LIRE_NOTAVAIL \e \& 192.168.26.255 137 98 .Ve .SH "SEE ALSO" .IX Header "SEE ALSO" \&\fBipl\fR\|(4) for description of log structure. .PP The ipmon.c source (e.g. on .PP .Vb 3 \& http://www.openbsd.org/cgi\-bin/cvsweb/~checkout~/ \e \& src/usr.sbin/ipmon/Attic/ipmon.c?rev=1.27& \e \& content\-type=text/plain&hideattic=0 .Ve .PP ) for the specification of the log syntax. .PP The IP Filter webpage on http://coombs.anu.edu.au/~avalon/ip\-filter.html .SH AUTHOR .IX Header "AUTHOR" Joost van Baal , Wessel Dankers .SH VERSION .IX Header "VERSION" \&\f(CW$Id:\fR IpfilterDlfConverter.pm,v 1.7 2009/03/15 08:10:55 vanbaal Exp $ .SH COPYRIGHT .IX Header "COPYRIGHT" Copyright (C) 2001\-2003 Stichting LogReport Foundation LogReport@LogReport.org .PP 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. .PP 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. .PP 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.