File: gettingstarted.html

package info (click to toggle)
iptraf 2.7.0-7
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,484 kB
  • ctags: 1,211
  • sloc: ansic: 12,154; makefile: 144; sh: 126; awk: 1
file content (784 lines) | stat: -rw-r--r-- 12,713 bytes parent folder | download
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
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<HTML
><HEAD
><TITLE
>Getting Started</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.64
"><LINK
REL="HOME"
TITLE="IPTraf User's Manual"
HREF="manual.html"><LINK
REL="PREVIOUS"
TITLE="Document Conventions"
HREF="conventions.html"><LINK
REL="NEXT"
TITLE="  Upgrading from Earlier Versions"
HREF="upgrading.html"></HEAD
><BODY
CLASS="CHAPTER"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>IPTraf User's Manual</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="conventions.html"
>&#60;&#60;&#60; Previous</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="upgrading.html"
>Next &#62;&#62;&#62;</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="CHAPTER"
><H1
><A
NAME="GETTINGSTARTED"
>Getting Started</A
></H1
><P
>IPTraf is a network monitoring utility for IP networks. It
intercepts packets on the network and gives out various pieces
of information about the current IP traffic over it. Information returned
by IPTraf include:</P
><P
></P
><UL
COMPACT="COMPACT"
><LI
STYLE="list-style-type: disc"
><P
>   Total, IP, TCP, UDP, ICMP, and non-IP byte counts</P
></LI
><LI
STYLE="list-style-type: disc"
><P
>   TCP source and destination addresses and ports</P
></LI
><LI
STYLE="list-style-type: disc"
><P
>   TCP packet and byte counts</P
></LI
><LI
STYLE="list-style-type: disc"
><P
>   TCP flag statuses</P
></LI
><LI
STYLE="list-style-type: disc"
><P
>   UDP source and destination information</P
></LI
><LI
STYLE="list-style-type: disc"
><P
>   ICMP type information</P
></LI
><LI
STYLE="list-style-type: disc"
><P
>   OSPF source and destination information</P
></LI
><LI
STYLE="list-style-type: disc"
><P
>   TCP and UDP service statistics</P
></LI
><LI
STYLE="list-style-type: disc"
><P
>   Interface packet counts</P
></LI
><LI
STYLE="list-style-type: disc"
><P
>   Interface IP checksum error counts</P
></LI
><LI
STYLE="list-style-type: disc"
><P
>   Interface activity indicators</P
></LI
><LI
STYLE="list-style-type: disc"
><P
>   LAN station statistics</P
></LI
></UL
><P
>IPTraf can be used to monitor the load on an IP network, the most
used types of network services, the proceedings of TCP
connections, and others.</P
><P
>  IPTraf is a software-only analyzer. It utilizes the built-in raw packet
  capture interface of the Linux kernel, allowing it to be used with a
  wide range of Ethernet cards, supported FDDI adapters, supported
  ISDN adapters, Token Ring, asynchronous SLIP/ PPP interfaces and
  other network devices. No special hardware is required.</P
><P
>  Basic knowledge of the important TCP/IP protocols (IP, TCP, UDP, ICMP,
  etc.) is necessary for you to best understand the information generated
  by the program.</P
><DIV
CLASS="SECT1"
><H1
CLASS="SECT1"
><A
NAME="INSTALLATION"
>Installation</A
></H1
><P
>  IPTraf is most readily available on the Internet, but some may receive
  it on a diskette. Here are the instructions for both types
  of distributions.</P
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN98"
>System Requirements</A
></H2
><P
>IPTraf requires:</P
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="AEN101"
>Hardware Requirements</A
></H3
><P
></P
><UL
COMPACT="COMPACT"
><LI
STYLE="list-style-type: disc"
><P
>     16 megabytes of physical RAM (more recommended, at least 64 MB for very busy networks)</P
></LI
><LI
STYLE="list-style-type: disc"
><P
>     2 megabytes of free disk space for installation (more will be needed if you log high amounts of traffic over time)</P
></LI
><LI
STYLE="list-style-type: disc"
><P
>     Pentium-class processor or higher (Pentium-II 200 MHz or higher recommended) or equivalent.</P
></LI
><LI
STYLE="list-style-type: disc"
><P
>     One or more of the supported network interfaces.</P
></LI
></UL
></DIV
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="AEN112"
>Operating System Requirements</A
></H3
><P
></P
><UL
COMPACT="COMPACT"
><LI
STYLE="list-style-type: disc"
><P
>     Linux kernel 2.2.0 or higher</P
></LI
><LI
STYLE="list-style-type: disc"
><P
>     GNU C Library 2.1 or later</P
></LI
><LI
STYLE="list-style-type: disc"
><P
>&#13;     ncurses 4.2 or later with the complete terminfo database in
     <TT
CLASS="FILENAME"
>/usr/share/terminfo</TT
>. Support for
     <TT
CLASS="COMPUTEROUTPUT"
>linux</TT
>, <TT
CLASS="COMPUTEROUTPUT"
>vt100</TT
>,
     <TT
CLASS="COMPUTEROUTPUT"
>xterm</TT
>,
     <TT
CLASS="COMPUTEROUTPUT"
>xterm-color</TT
> recommended.&#13;</P
></LI
></UL
></DIV
><DIV
CLASS="SECT3"
><H3
CLASS="SECT3"
><A
NAME="AEN126"
>Compilation Requirements</A
></H3
><P
>The following components are required when compiling IPTraf from the
source code.</P
><P
></P
><UL
COMPACT="COMPACT"
><LI
STYLE="list-style-type: disc"
><P
>     gcc 2.7.2.3 or later</P
></LI
><LI
STYLE="list-style-type: disc"
><P
>&#13;     GNU C (glibc) development library 2.1 or later</P
></LI
><LI
STYLE="list-style-type: disc"
><P
>&#13;     ncurses development libraries 4.2 or later</P
></LI
></UL
></DIV
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN136"
>Availability</A
></H2
><P
>  IPTraf can be downloaded from the Internet from the official FTP site at
 <A
HREF="ftp://iptraf.seul.org/pub/iptraf/"
TARGET="_top"
>ftp://iptraf.seul.org/pub/iptraf/</A
>.</P
><P
>&#13;  The software is available in source form in
  compressed
<TT
CLASS="FILENAME"
>.tar.gz</TT
> files named
<TT
CLASS="FILENAME"
>iptraf-<TT
CLASS="REPLACEABLE"
><I
>x.y.z</I
></TT
>.tar.gz</TT
> where
<TT
CLASS="FILENAME"
><TT
CLASS="REPLACEABLE"
><I
>x.y.z</I
></TT
></TT
> 
  is the version number. Precompiled ready-to-run software is available in
  the
<TT
CLASS="FILENAME"
>iptraf-<TT
CLASS="REPLACEABLE"
><I
>x.y.z.machinetype</I
></TT
>.bin.tar.gz</TT
>
 files. (<TT
CLASS="FILENAME"
><TT
CLASS="REPLACEABLE"
><I
>machinetype</I
></TT
></TT
> indicates
  what platform the precompiled binaries run on. The official distribution
  will only be for the Intel x86 architecture indicated as
<TT
CLASS="FILENAME"
>i386</TT
>.)</P
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN151"
>Installing Downloaded Packages</A
></H2
><P
>  You will need to have GNU tar and GNU zip installed. All
  modern Linux installations already have these utilities ready.</P
><P
></P
><OL
TYPE="1"
><LI
><P
>   
  Decompress the <TT
CLASS="FILENAME"
>.tar.gz</TT
> file by entering</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="90%"
><TR
><TD
><PRE
CLASS="SYNOPSIS"
>tar zxvf iptraf-<TT
CLASS="REPLACEABLE"
><I
>x.y.z</I
></TT
>.tar.gz</PRE
></TD
></TR
></TABLE
><P
>      for the source code or</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="90%"
><TR
><TD
><PRE
CLASS="SYNOPSIS"
>tar zxvf iptraf-<TT
CLASS="REPLACEABLE"
><I
>x.y.z</I
></TT
>.i386.bin.tar.gz</PRE
></TD
></TR
></TABLE
><P
>for the precompiled x86 programs.</P
><P
>If your tar doesn't support the z option, you can separately
decompress the <TT
CLASS="FILENAME"
>.tar.gz</TT
> file
then extract the resulting <TT
CLASS="FILENAME"
>.tar</TT
> archive.</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="90%"
><TR
><TD
><PRE
CLASS="SYNOPSIS"
>gunzip iptraf-<TT
CLASS="REPLACEABLE"
><I
>x.y.z</I
></TT
>.tar.gz
tar xvf iptraf-<TT
CLASS="REPLACEABLE"
><I
>x.y.z</I
></TT
>.tar</PRE
></TD
></TR
></TABLE
><P
>This will decompress the sources into a directory called
<TT
CLASS="FILENAME"
>iptraf-<TT
CLASS="REPLACEABLE"
><I
>x.y.z</I
></TT
></TT
> (source code)
or
<TT
CLASS="FILENAME"
>iptraf-<TT
CLASS="REPLACEABLE"
><I
>x.y.z</I
></TT
>.bin</TT
>
(precompiled).
    (<TT
CLASS="REPLACEABLE"
><I
>x.y.z</I
></TT
> here should be the IPTraf version number
you're installing, like <TT
CLASS="FILENAME"
>2.7.0</TT
>).</P
></LI
><LI
><P
>Change to the created top level directory.</P
></LI
><LI
><P
>To compile and install the software, run the Setup program by entering</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="90%"
><TR
><TD
><PRE
CLASS="SYNOPSIS"
>./Setup</PRE
></TD
></TR
></TABLE
><P
>    while you are logged in as root. The Setup script will recognize the
    source distribution and compile the software before installing. It
    will immediately install a precompiled distribution.</P
></LI
></OL
><P
>    The resulting binaries will be placed in the
<TT
CLASS="FILENAME"
>/usr/local/bin</TT
> directory.
    All needed directories will also be created.</P
><P
>  After installation, you will be asked if you want to
  read the <TT
CLASS="FILENAME"
>RELEASE-NOTES</TT
> file. It is recommended that you do so at
  that point, since the <TT
CLASS="FILENAME"
>RELEASE-NOTES</TT
> file
  contains important information about the new version.</P
></DIV
><DIV
CLASS="SECT2"
><H2
CLASS="SECT2"
><A
NAME="AEN188"
>Installing a Floppy Distribution</A
></H2
><P
>  If you received IPTraf
  on a diskette, the sources are already decompressed. The diskette is
  in Second Extended filesystem format. Perform the following steps to
  install the software. </P
><P
></P
><OL
TYPE="1"
><LI
><P
>Insert the floppy in the drive.</P
></LI
><LI
><P
>Mount the floppy on an empty directory. For example, to
mount the floppy in the first floppy drive under a directory
called <TT
CLASS="FILENAME"
>/mnt</TT
>, enter</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="90%"
><TR
><TD
><PRE
CLASS="SYNOPSIS"
>mount -t ext2 /dev/fd0 /mnt</PRE
></TD
></TR
></TABLE
><P
>    This assumes your floppy is in
 <TT
CLASS="FILENAME"
>/dev/fd0</TT
>. You can use any empty directory in place
 of <TT
CLASS="FILENAME"
>/mnt</TT
>. With most Linux installations, this will work fine.</P
></LI
><LI
><P
>&#13;After mounting, change
to the <TT
CLASS="FILENAME"
>/mnt</TT
> (or whatever) directory.</P
></LI
><LI
><P
>Enter</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="90%"
><TR
><TD
><PRE
CLASS="SYNOPSIS"
>./Setup</PRE
></TD
></TR
></TABLE
><P
>    while logged in as root. Setup will determine whether the diskette
    contains a source code distribution or
    ready-to-run precompiled software.  This will copy the binaries to
    <TT
CLASS="FILENAME"
>/usr/local/bin</TT
>, and
    create the necessary working directories.</P
></LI
><LI
><P
>Unmount the diskette by typing</P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
WIDTH="90%"
><TR
><TD
><PRE
CLASS="SYNOPSIS"
>umount /mnt</PRE
></TD
></TR
></TABLE
><P
>    (That's <I
CLASS="EMPHASIS"
>u</I
>mount, not <I
CLASS="EMPHASIS"
>un</I
>mount.)</P
><P
>    You can then eject the diskette. Store it in a safe place.</P
><P
>  You will also be asked if you want to view the
<TT
CLASS="FILENAME"
>RELEASE-NOTES</TT
> file. It is
  recommended that you do so at that point.</P
><P
>  In both cases (downloaded and floppy), the installation will store the
  program in <TT
CLASS="FILENAME"
>/usr/local/bin</TT
> with the binaries owned by
  user root, readable, writable, and executable by the owner,
  no permissions for the group, no permissions for all others. (700 octal,
  or <TT
CLASS="COMPUTEROUTPUT"
>-rwx------</TT
>).</P
><DIV
CLASS="NOTE"
><P
></P
><TABLE
CLASS="NOTE"
WIDTH="90%"
BORDER="0"
><TR
><TD
WIDTH="25"
ALIGN="CENTER"
VALIGN="TOP"
><IMG
SRC="./stylesheet-images/note.gif"
HSPACE="5"
ALT="Note"></TD
><TH
ALIGN="LEFT"
VALIGN="CENTER"
><B
>Note</B
></TH
></TR
><TR
><TD
>&nbsp;</TD
><TD
ALIGN="LEFT"
VALIGN="TOP"
><P
>  You must be <TT
CLASS="FILENAME"
>root</TT
> to
  do the installation. The old style of installation (<B
CLASS="COMMAND"
>cd src;make
  install</B
>)
  is still supported.</P
></TD
></TR
></TABLE
></DIV
></LI
></OL
><P
>  Be sure <TT
CLASS="FILENAME"
>/usr/local/bin</TT
> is included in
  your environment's <TT
CLASS="ENVAR"
>PATH</TT
> variable. You can
  edit the appropriate command in your login customization
  file (<TT
CLASS="FILENAME"
>.profile</TT
> for the Bourne-type shells,
  <TT
CLASS="FILENAME"
>.cshrc</TT
> for the C shell and its relatives).</P
></DIV
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="conventions.html"
>&#60;&#60;&#60; Previous</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="manual.html"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="upgrading.html"
>Next &#62;&#62;&#62;</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Document Conventions</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Upgrading from Earlier Versions</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>