| 1 |
.\" -*-nroff-*- |
| 2 |
.\" |
| 3 |
.\" Copyright (C) 1998-2000 Hugo Haas <[email protected]> |
| 4 |
.\" |
| 5 |
.\" This program is free software; you can redistribute it and/or modify |
| 6 |
.\" it under the terms of the GNU General Public License as published by |
| 7 |
.\" the Free Software Foundation; either version 2 of the License, or |
| 8 |
.\" (at your option) any later version. |
| 9 |
.\" |
| 10 |
.\" This program is distributed in the hope that it will be useful, |
| 11 |
.\" but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 |
.\" GNU General Public License for more details. |
| 14 |
.\" |
| 15 |
.\" You should have received a copy of the GNU General Public License |
| 16 |
.\" along with this program; if not, write to the Free Software |
| 17 |
.\" Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| 18 |
.\" |
| 19 |
.TH IPPL.CONF 5 "Last change: 11 February 2000" |
| 20 |
|
| 21 |
.SH NAME |
| 22 |
|
| 23 |
ippl.conf \- IP Protocols Logger configuration file |
| 24 |
|
| 25 |
.SH DESCRIPTION |
| 26 |
|
| 27 |
The |
| 28 |
.I ippl.conf |
| 29 |
file is the only configuration file for the |
| 30 |
.BR ippl |
| 31 |
logger. It defines what protocols to log, and the kind of packets to |
| 32 |
log. |
| 33 |
|
| 34 |
A hash mark (``#'') indicates that the end of the line is a comment |
| 35 |
and it will therefore not be read. |
| 36 |
|
| 37 |
.SH USER RUNNING THREADS |
| 38 |
|
| 39 |
.BR ippl |
| 40 |
does not run (unless specified) the protocol logging threads as root |
| 41 |
for security reasons. You can specify which user should be use with the |
| 42 |
.I runas |
| 43 |
keyword. |
| 44 |
|
| 45 |
.B Syntax: |
| 46 |
runas [user] |
| 47 |
.PP |
| 48 |
.I user |
| 49 |
is a user defined in /etc/passwd. By default, the __DEFAULT_USER |
| 50 |
user is used. |
| 51 |
|
| 52 |
.SH PROTOCOLS |
| 53 |
|
| 54 |
Each protocol is run by an different thread. To run a thread, use the: |
| 55 |
|
| 56 |
.B Syntax: |
| 57 |
run [protocol] [protocol] ... |
| 58 |
.PP |
| 59 |
.I protocol |
| 60 |
can be: |
| 61 |
|
| 62 |
.I icmp |
| 63 |
to specify that the thread logging ICMP messages should be run. |
| 64 |
.PP |
| 65 |
.I tcp |
| 66 |
to specify that the thread logging TCP connections should be run. |
| 67 |
.PP |
| 68 |
.I udp |
| 69 |
to specify that the thread logging UDP datagrams should be run. |
| 70 |
.PP |
| 71 |
.I all |
| 72 |
to log all the protocols. |
| 73 |
|
| 74 |
.SH ADDRESS RESOLUTION |
| 75 |
|
| 76 |
You can enable or disable IP address resolution on a protocol basis. |
| 77 |
To enable address resolution, use: |
| 78 |
|
| 79 |
.B Syntax: |
| 80 |
resolve [protocol] [protocol] ... |
| 81 |
.PP |
| 82 |
.I protocol |
| 83 |
is the same as in the protocols section. |
| 84 |
|
| 85 |
To disable address resolution, use: |
| 86 |
|
| 87 |
.B Syntax: |
| 88 |
noresolve [protocol] [protocol] ... |
| 89 |
.PP |
| 90 |
.I protocol |
| 91 |
is the same as before. |
| 92 |
.PP |
| 93 |
By default, IP address resolution is disabled for all the protocols. |
| 94 |
|
| 95 |
.SH LOGGING FORMAT |
| 96 |
|
| 97 |
.BR ippl |
| 98 |
can log IP protocols in a more or less detailed format. By default, it |
| 99 |
only shows the source address and the type or the destination port. A |
| 100 |
more detailed version can be used. There is also a shortest version. |
| 101 |
|
| 102 |
.B Syntax: |
| 103 |
logformat [format] [protocol] [protocol] ... |
| 104 |
.PP |
| 105 |
.I format |
| 106 |
can be: |
| 107 |
|
| 108 |
.I short |
| 109 |
to use a short format for logging. |
| 110 |
.PP |
| 111 |
.I normal |
| 112 |
to use the normal format. This is the default. |
| 113 |
.PP |
| 114 |
.I detailed |
| 115 |
to log more information. This option displays the source and |
| 116 |
destination ports and addresses. |
| 117 |
|
| 118 |
.PP |
| 119 |
.I protocol |
| 120 |
is the same as in the protocols section. |
| 121 |
|
| 122 |
.SH IDENT MECHANISM |
| 123 |
|
| 124 |
To enable the IDENT remote username resolution, use the |
| 125 |
.I ident |
| 126 |
keyword. |
| 127 |
To disable it, use the |
| 128 |
.I noident |
| 129 |
keyword. |
| 130 |
Note that the information returned is *NOT* reliable in general since |
| 131 |
it is returned by the remote host. By default, the ident resolution is |
| 132 |
off. |
| 133 |
|
| 134 |
.SH TCP CONNECTION TERMINATION |
| 135 |
|
| 136 |
.BR ippl |
| 137 |
can detect when a TCP connection is closed. To enable this feature, |
| 138 |
use the |
| 139 |
.I logclosing |
| 140 |
keyword. |
| 141 |
To disable it, use the |
| 142 |
.I nologclosing |
| 143 |
keyword. |
| 144 |
By default, TCP connection terminations are ignored. |
| 145 |
|
| 146 |
.SH LOGGING MECHANISM |
| 147 |
|
| 148 |
.BR ippl |
| 149 |
can log messages using syslog (using the LOG_DAEMON facility) or it |
| 150 |
can write directly into a file. This is specified using |
| 151 |
.I log\-in |
| 152 |
keyword. |
| 153 |
|
| 154 |
.B Syntax: |
| 155 |
log-in [protocol] [filename] |
| 156 |
.PP |
| 157 |
.I protocol |
| 158 |
is the same as in the protocols section. |
| 159 |
.I filename |
| 160 |
is an absolute path to a file. Note that the file cannot be in the |
| 161 |
root directory; it has to be in a directory. |
| 162 |
|
| 163 |
NOTE: when the logs are rotated, |
| 164 |
.BR ippl |
| 165 |
opens new files when it is sent the SIGHUP signal. |
| 166 |
|
| 167 |
.SH RULES |
| 168 |
|
| 169 |
When a thread is run, it will catch all the packets using the protocol |
| 170 |
logged. The user may want to ignore certain packets. This is done with |
| 171 |
Apache-like rules. |
| 172 |
.PP |
| 173 |
There are two different types of rules. The first one describes what |
| 174 |
packets to log, and the second one describes the packets that should |
| 175 |
be ignored. The syntax of a rule is as follows: |
| 176 |
|
| 177 |
.B Syntax: |
| 178 |
[log|ignore] {option [option],[option],...} [protocol] [description] |
| 179 |
|
| 180 |
.I log |
| 181 |
means that the packets described should be logged and |
| 182 |
.I ignore |
| 183 |
is used if the user does not want to log a certain type of packets. |
| 184 |
|
| 185 |
.SS Option |
| 186 |
.PP |
| 187 |
The |
| 188 |
.I option |
| 189 |
keyword will permit to override the default values for this rule only. |
| 190 |
.I options |
| 191 |
is also recognized. |
| 192 |
.PP |
| 193 |
Valid options are: |
| 194 |
.PP |
| 195 |
.I resolve |
| 196 |
enable IP address resolution. |
| 197 |
.PP |
| 198 |
.I noresolve |
| 199 |
disable IP address resolution. |
| 200 |
.PP |
| 201 |
.I ident |
| 202 |
use ident logging (only for TCP). |
| 203 |
.PP |
| 204 |
.I noident |
| 205 |
disable ident logging (only for TCP). |
| 206 |
.PP |
| 207 |
.I logclosing |
| 208 |
log connection termination (only for TCP). |
| 209 |
.PP |
| 210 |
.I nologclosing |
| 211 |
do not log connection termination (only for TCP). |
| 212 |
.PP |
| 213 |
.I short |
| 214 |
use the short logging format. |
| 215 |
.PP |
| 216 |
.I normal |
| 217 |
use the normal logging format. |
| 218 |
.PP |
| 219 |
.I detailed |
| 220 |
use the detailed logging format. |
| 221 |
|
| 222 |
.SS Protocol |
| 223 |
.PP |
| 224 |
protocol is one of the supported protocols (see the protocols |
| 225 |
section), except the |
| 226 |
.I all |
| 227 |
keyword, which is not supported. |
| 228 |
|
| 229 |
.SS Description |
| 230 |
.PP |
| 231 |
.I description |
| 232 |
holds the type of packet and the hosts to which the rule |
| 233 |
applies. |
| 234 |
.PP |
| 235 |
.I Type of packet: |
| 236 |
.PP |
| 237 |
type <number> Specify an ICMP message type. |
| 238 |
port <number> Specify a destination TCP or UDP port number. |
| 239 |
port <name> Specify a destination TCP or UDP port name. |
| 240 |
srcport <number> Specify a source TCP or UDP port number. |
| 241 |
srcport <name> Specify a source TCP or UDP port name. |
| 242 |
.PP |
| 243 |
number is specified like this: |
| 244 |
n Number n. |
| 245 |
n-- Every number m >= n. |
| 246 |
--n Every number m <= n. |
| 247 |
l--k Every number m, with l <= m <= k. |
| 248 |
string If a string is specified, it is |
| 249 |
either the name of a service |
| 250 |
(see /etc/services) or an |
| 251 |
ICMP message. |
| 252 |
Keywords for ICMP messages are: |
| 253 |
echo_reply 0 |
| 254 |
dest_unreach 3 |
| 255 |
src_quench 4 |
| 256 |
redirect 5 |
| 257 |
echo_req 8 |
| 258 |
router_advert 9 |
| 259 |
router_solicit 10 |
| 260 |
time_exceeded 11 |
| 261 |
param_problem 12 |
| 262 |
ts_req 13 |
| 263 |
ts_reply 14 |
| 264 |
info_req 15 |
| 265 |
info_reply 16 |
| 266 |
addr_mask_req 17 |
| 267 |
addr_mask_reply 18 |
| 268 |
.PP |
| 269 |
.I Source of the packets: |
| 270 |
.PP |
| 271 |
from <host> |
| 272 |
.PP |
| 273 |
where host is specifed as follows: |
| 274 |
x.x.x.x IP address of a host |
| 275 |
x.x.x.x/x.x.x.x IP address, followed by a network mask to specify a |
| 276 |
subnet |
| 277 |
x.x.x.x/n IP address, followed by the number of 1's at the left side of the network mask |
| 278 |
host.net.domain host name (wildcards accepted) |
| 279 |
.PP |
| 280 |
.I Destination of the packets: |
| 281 |
.PP |
| 282 |
to <host> |
| 283 |
.PP |
| 284 |
where host is specified as follows: |
| 285 |
x.x.x.x IP address of the local interface |
| 286 |
host.net.domain host name of the local interface (*no* wildcards accepted) |
| 287 |
.PP |
| 288 |
This rule is useful only if you have multiple interfaces connected |
| 289 |
to your box, or if you use IP aliasing. This can also be useful if you want |
| 290 |
to log or ignore broadcasts. To do so, just use your broadcast address as |
| 291 |
destination IP address. |
| 292 |
.PP |
| 293 |
Please note that rules using IP addresses are faster to check than |
| 294 |
rules using host names. |
| 295 |
.PP |
| 296 |
If you log UDP, it is *strongly* recommended to ignore the broadcasts! |
| 297 |
(until we implement an option for that). |
| 298 |
|
| 299 |
.SH EXPIRATION OF DNS CACHE |
| 300 |
|
| 301 |
The time for which |
| 302 |
.BR ippl |
| 303 |
holds cached DNS data without performing any queries can be changed. |
| 304 |
|
| 305 |
.B Syntax: |
| 306 |
expire <time> |
| 307 |
|
| 308 |
defines how often the DNS data expires. |
| 309 |
.I time |
| 310 |
is specified in seconds (default is 3600). |
| 311 |
|
| 312 |
.SH FILES |
| 313 |
__CONFIGURATION_FILE - configuration file |
| 314 |
/usr/share/doc/ippl/* - files worth reading if you still have a question |
| 315 |
|
| 316 |
.SH SEE ALSO |
| 317 |
ippl(8) |
| 318 |
|
| 319 |
.SH AUTHORS |
| 320 |
Hugo Haas ([email protected]) |
| 321 |
Etienne Bernard ([email protected]) |