-
Notifications
You must be signed in to change notification settings - Fork 5
/
iplog.8
416 lines (323 loc) · 8.58 KB
/
iplog.8
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
.\" $Id: iplog.8,v 1.25 2001/01/02 23:07:44 odin Exp $
.TH iplog 8 "03 December 2000" "iplog 2.2.3"
.SH NAME
iplog \- TCP/IP traffic logger.
.SH SYNOPSIS
.BI "iplog [options]"
.sp
.B "[\-DFILNPRSTUVbcdefhkmnopqstvwxyz]"
.br
.B "[\-a <network,network2,...>]"
.br
.B "[\-g <group>]"
.br
.B "[\-i <interface1,...,interfaceN>]"
.br
.B "[\-l <logfile>]"
.br
.B "[\-\-pid\-file=<file>]"
.br
.B "[\-u <user>]"
.br
.B "[\-\-tcp[=argument]]"
.br
.B "[\-\-udp[=argument]]"
.br
.B "[\-\-icmp[=argument]]"
.br
.B "[\-\-facility=syslog facility]"
.br
.B "[\-\-priority=syslog priority]"
.SH DESCRIPTION
.B iplog
is a TCP/IP traffic logger. Currently, it is capable of logging
TCP, UDP and ICMP traffic. Adding support for other protocols
should be relatively easy.
.B iplog's
capabilities include the ability to detect TCP port scans, TCP null scans,
FIN scans, UDP and ICMP "smurf" attacks,
bogus TCP flags (used by scanners to detect the operating system in use),
TCP SYN scans, TCP "Xmas" scans, ICMP ping floods, UDP scans, and IP
fragment attacks.
.B iplog
is able to run in promiscuous mode and monitor traffic to all hosts
on a network.
.B iplog
uses libpcap to read data from the network and can be ported
to any system that supports pthreads and on which libpcap will function.
.SH NOTATION
Throughout this document, required parameters will be denoted by enclosing the parameter in angle brackets <like this>.
Optional parameters will be denoted by enclosing the parameter in square brackets [like this].
The '|' character is used to express exclusive or. For example [true|false] means you may give "true" or "false", but not both.
.SH OPTIONS
.TP
.B "\-\-tcp=true (default)"
Log TCP traffic.
.TP
.B "\-\-tcp=false"
Do not log TCP traffic.
.TP
.B "\-\-udp=true (default)"
Log UDP traffic.
.TP
.B "\-\-udp=false"
Do not log UDP traffic.
.TP
.B "\-\-icmp=true (default)"
Log ICMP traffic.
.TP
.B "\-\-icmp=false"
Do not log ICMP traffic.
.TP
.B "\-\-facility=syslog facility"
Use the specified facility for openlog(3).
.TP
.B "\-\-priority=syslog priority"
Use the specified priority for syslog(3).
.TP
.B "\-D, \-\-log\-dest=true"
Log the destination address of IP packets.
.TP
.B "\-\-log\-dest=false (default)"
Do not log the destination address of IP packets.
.TP
.B "\-F, \-\-detect\-udp\-scan=true (default)"
Detect and log UDP scans.
.TP
.B "\-\-detect\-udp\-scan=false"
Neither detect nor log UDP scans.
.TP
.B "\-\-log\-udp\-scan"
Same as \-\-detect\-udp\-scan.
.TP
.B "\-I, \-\-icmp\-resolve=true (default)"
Perform host name resolution for ICMP traffic.
.TP
.B "\-L, \-\-stdout"
Log to stdout.
.TP
.B "\-\-icmp\-resolve=false"
Do not perform host name resolution for ICMP traffic.
.TP
.B "\-N, \-\-disable\-resolver"
Do not perform host name resolution for any traffic.
.TP
.B "\-P, \-\-detect\-ping\-flood=true (default)"
Detect ping (ICMP echo) flood attacks.
.TP
.B "\-\-detect\-ping\-flood=false"
Do not detect ping flood attacks.
.TP
.B "\-\-log\-ping\-flood"
Same as \-\-detect\-ping\-flood.
.TP
.B "\-R, \-\-restart"
Restart
.B iplog,
if it is running.
.TP
.B "\-S, \-\-detect\-smurf=true (default)"
Detect "smurf" attacks.
.TP
.B "\-\-detect\-smurf=false"
Do not detect "smurf" attacks.
.TP
.B "\-\-log\-smurf"
Same as \-\-detect\-smurf.
.TP
.B "\-T, \-\-tcp\-resolve=true (default)"
Perform host name resolution for TCP traffic.
.TP
.B "\-\-tcp\-resolve=false"
Do not perform host name resolution for TCP traffic.
.TP
.B "\-U, \-\-udp\-resolve=true (default)"
Perform host name resolution for UDP traffic.
.TP
.B "\-\-udp\-resolve=false"
Do not perform host name resolution for UDP traffic.
.TP
.B "\-V, \-\-verbose=true"
Verbose - Log packets with a bad checksum and packets with a short header length.
.TP
.B "\-\-verbose=false (default)"
Do not be verbose.
.TP
.B "\-a <network,network2,...>, \-\-promisc=<network,network2,...>"
Put all monitored interfaces into promiscuous mode and log traffic destined to all hosts on the specified network(s).
.TP
.B "\-b, \-\-detect\-bogus=true (default)"
Detect bogus TCP flags. Programs such as nmap and queso may set these flags while trying to perform OS detection.
.TP
.B "\-\-detect\-bogus=false"
Do not detect bogus TCP flags.
.TP
.B "\-\-log\-bogus"
Same as \-\-detect\-bogus.
.TP
.B "\-c, \-\-dns\-cache=true (default)"
Use a built-in DNS cache (allows host lookups to be faster).
.TP
.B "\-\-dns\-cache=false"
Do not use the built-in DNS cache.
.TP
.B "\-d, \-\-ignore"
Ignore DNS traffic from hosts listed in
.B /etc/resolv.conf.
.TP
.B "\-e, \-\-get\-ident=true"
Perform ident (RFC 1413) lookups on connections destined to a listening port. This is only available on Linux.
.TP
.B "\-\-get\-ident=false (default)"
Do not perform ident lookups.
.TP
.B "\-f, \-\-detect\-fin\-scan=true (default)"
Detect TCP FIN scans (a "stealth scan" used by nmap and other scanners).
.TP
.B "\-\-detect\-fin\-scan=false"
Do not detect TCP FIN scans.
.TP
.B "\-\-log\-fin\-scan"
Same as \-\-detect\-fin\-scan.
.TP
.B "\-q, \-\-detect\-syn\-scan=true (default)"
Detect TCP SYN scans (a "stealth scan" used by nmap and other scanners).
.TP
.B "\-\-detect\-syn\-scan=false"
Do not detect TCP SYN scans.
.TP
.B "\-\-log\-syn\-scan"
Same as \-\-detect\-syn\-scan.
.TP
.B "\-g <group|GID>, \-\-group=<group|GID>"
Run with the specified group or GID.
.TP
.B "\-h, \-\-help"
Print a summary of available options and exit.
.TP
.B "\-i <interface(s)>, \-\-interface=<interface(s)>"
Listen on only the specified interfaces. This option takes a comma-delimited list of interfaces. By default,
.B iplog
will listen on any interfaces that are up, except loopback.
.TP
.B "\-k, \-\-kill"
Kill
.B iplog,
if it is running.
.TP
.B "\-l <logfile>, \-\-logfile=<logfile>"
Log to the specified file instead of logging via
.BR syslog (3)
.TP
.B "\-\-pid\-file=<file>"
Use <file> as the pid file.
.br
This option should be used when starting
.B iplog
as a user who doesn't have write access to /var/run.
.br
This option must be used with the -k and -R options when an instance of
.B iplog
is running that was started with the \-\-pid\-file option. Also note the
\-\-pid\-file option must be given before the \-k and \-R options.
.TP
.B "\-m, \-\-scans\-only=true"
Only log scans and floods. Do not log other traffic.
.TP
.B "\-n, \-\-detect\-null\-scan=true (default)"
Detect null scans (a "stealth scan" used by nmap and other scanners).
.TP
.B "\-\-detect\-null\-scan=false"
Do not detect null scans.
.TP
.B "\-\-log\-null\-scan"
Same as \-\-detect\-null\-scan.
.TP
.B "\-o, \-\-no\-fork"
Run in the foreground.
.TP
.B "\-p, \-\-detect\-portscan=true (default)"
Detect port scans (connect(2) scans and SYN (half open) scans).
.TP
.B "\-\-detect\-portscan=false"
Do not detect port scans.
.TP
.B "\-\-log\-portscan"
Same as \-\-detect\-portscan.
.TP
.B "\-s, \-\-detect\-syn\-flood=true (default)"
Stop resolving IP addresses (until the flood ends) if a SYN flood is detected.
.TP
.B "\-\-detect\-syn\-flood=false"
Do not stop resolving IP addresses if a SYN flood is detected.
.TP
.B "\-t, \-\-detect\-traceroute=true (default)"
Detect (and log) traceroute.
.TP
.B "\-\-detect\-traceroute=false"
Do not detect traceroute.
.TP
.B "\-\-log\-traceroute"
Same as \-\-detect\-traceroute.
.TP
.B "\-u <user|UID>, \-\-user=<user|UID>"
Run as the user or with the UID specified.
.TP
.B "\-v, \-\-version"
Print version information and exit.
.TP
.B "\-w, \-\-log-ip"
Log the IP addresses as well as the hostnames of hosts that are looked up.
.TP
.B "\-x, \-\-detect\-xmas\-scan=true (default)"
Detect Xmas scans (a "stealth" scan used by nmap and other scanners).
.TP
.B "\-\-detect-xmas-scan=false"
Do not detect Xmas scans.
.TP
.B "\-\-log\-xmas\-scan"
Same as \-\-detect\-xmas\-scan.
.TP
.B "\-y, \-\-detect\-frag=true"
Detect fragment attacks.
.TP
.B "\-\-detect\-frag=false"
Do not detect fragment attacks.
.TP
.B "\-\-log\-frag"
Same as \-\-detect\-frag.
.TP
.B "\-z, \-\-fool\-nmap=true"
Attempt to fool programs, such as nmap and queso, that perform remote OS detection. As a side effect, this option will also cause most of nmap's "stealth" scans to fail.
.TP
.B WARNING
This option is dangerous and can set off network traffic storms.
.TP
.B "\-\-fool\-nmap=false (default)"
Do not attempt to fool nmap's OS detection.
.SH FILES
.TP
.B /etc/iplog.conf
The
.B iplog
configuration file.
.SH BUGS
Report any bugs to [email protected]
.SH AUTHOR
Ryan McCabe <[email protected]>
.SH AVAILABILITY
The primary distribution site for
.B iplog
is http://ojnk.sourceforge.net
.SH MIRROR LIST
.br
ftp://ojnk.sourceforge.net/pub/ojnk/iplog
.br
http://www.numb.org/~odin
.SH SEE ALSO
.BR iplog.conf (5)
.BR tcpdump (1)
.BR syslog (3)
.BR openlog (3)
.BR pcap (3)
.BR nmap (8)