.\" -*-nroff-*- .\" .\" Copyright (c) 1999-2001 Robert CHERAMY .\" .\" 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; if not, write to the Free Software .\" Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. .\" .TH IPFM.CONF 5 "Last change: 26 October 2000" .SH NAME ipfm.conf \- IP Flow Meter configuration file .SH DESCRIPTION .B ipfm.conf is .BR ipfm (8) configuration file. A hash mark (``#'') indicates that the end of the line is a comment and it will be ignored. The configuration rules will be interpreted from the end, and the first matching rule will be used, unless specified here. .BR IPFM uses local and global variables, so it can manage multiple logs (different time delay, different hosts, different log filename ...) at the same time. Global variables will be used for all logs and local variables will only be used in the log being defined. .SH GLOBAL VARIABLES .SS .I NETWORK DEVICE .B Syntax : DEVICE .TP is the device on witch ipfm will log packets. IPFM monitors only one device. .SS .I Time Coordinates .B Syntax : [UTC|local] This decides if IPFM will use UTC or local time in its outputs (log filename and the timestamp inside the file). Default is local. Note that IPFM works internally with UTC, and that the dates entered in the config file are UTC (see AFTER Syntax). .SS .I NEW LOG .B Syntax : NEWLOG This creates a new log entry, where you can define new local variables. .SH LOCAL VARIABLES .SS .I HOSTS TO LOG .BR ipfm logs only specified hosts. .B Syntax: LOG [[NONE|FROM|TO|BOTH] ] [[NOT] WITH ] .TP NONE do not log anything from or to this .TP FROM do log packets from this .TP TO do log packets to this .TP BOTH (default) do log packets from and to this .TP can be : x.x.x.x : an IP. x.x.x.x/x.x.x.x : an IP followed by a subnet mask. .TP WITH specifies if the packet is ignored (NOT WITH) or logged (WITH), in function of the second IP present in the packet. .TP .B Examples : LOG 10.10.10.0/255.255.255.0 NOT WITH 10.10.10.1 will log any packets from or to hosts in subnet 10.10.10.0/255.255.255.0, except packets involving host 10.10.10.1 . LOG WITH 10.10.10.23 will log any packets in relation with host 10.10.10.23 LOG will log everything. .SS .I OUTPUT TIME DELAY .B ipfm outputs its statistics every fixed period, with the ability to fix an exact time origin and offset, in Coordinated Universal Time (UTC). .B Syntax: DUMP EVERY