]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - contrib/ipfilter/man/ipmon.5
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / contrib / ipfilter / man / ipmon.5
1 .\"     $FreeBSD$
2 .\"
3 .TH IPMON 5
4 .SH NAME
5 ipmon, ipmon.conf \- ipmon configuration file format
6 .SH DESCRIPTION
7 The format for files accepted by ipmon is described by the following grammar:
8 .LP
9 .nf
10 "match" "{" matchlist "}" "do" "{" doing "}" ";"
11
12 matchlist ::= matching [ "," matching ] .
13 matching  ::= direction | dstip | dstport | every | group | interface |
14               logtag | nattag | protocol | result | rule | srcip | srcport .
15
16 dolist ::= doing [ "," doing ] .
17 doing  ::= execute | save | syslog .
18
19 direction ::= "in" | "out" .
20 dstip     ::= "dstip" "=" ipv4 "/" number .
21 dstport   ::= "dstport" "=" number .
22 every     ::= "every" every-options .
23 execute   ::= "execute" "=" string .
24 group     ::= "group" "=" string | "group" "=" number .
25 interface ::= "interface" "=" string .
26 logtag    ::= "logtag" "=" string | "logtag" "=" number .
27 nattag    ::= "nattag" "=" string .
28 protocol  ::= "protocol" "=" string | "protocol" "=" number .
29 result    ::= "result" "=" result-option .
30 rule      ::= "rule" "=" number .
31 srcip     ::= "srcip" "=" ipv4 "/" number .
32 srcport   ::= "srcport" "=" number .
33 type      ::= "type" "=" ipftype .
34 ipv4      ::= number "." number "." number "." number .
35
36 every-options ::= "second" | number "seconds" | "packet" | number "packets" .
37 result-option ::= "pass" | "block" | "short" | "nomatch" | "log" .
38 ipftype ::= "ipf" | "nat" | "state" .
39
40 .fi
41 .PP
42 In addition, lines that start with a # are considered to be comments.
43 .TP
44 .SH OVERVIEW
45 .PP
46 The ipmon configuration file is used for defining rules to be executed when
47 logging records are read from
48 .B /dev/ipl.
49 .PP
50 At present, only IPv4 matching is available for source/destination address
51 matching.
52 .SH MATCHING
53 .PP
54 Each rule for ipmon consists of two primary segments: the first describes how
55 the log record is to be matched, the second defines what action to take if
56 there is a positive match.  All entries of the rules present in the file are
57 compared for matches - there is no first or last rule match.
58 .SH FILES
59 /dev/ipl
60 .br
61 /dev/ipf
62 .br
63 /dev/ipnat
64 .br
65 /dev/ipstate
66 .br
67 /etc/ipmon.conf
68 .SH SEE ALSO
69 ipmon(8), ipl(4)