source: networking/netutils/wireshark.xml@ ef78b5f

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts krejzi/svn lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition systemd-11177 systemd-13485 trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since ef78b5f was ef78b5f, checked in by Fernando de Oliveira <fernando@…>, 10 years ago

wireshark-1.10.8.

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@13233 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 16.9 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY wireshark-download-http "http://www.wireshark.org/download/src/all-versions/wireshark-&wireshark-version;.tar.bz2">
8 <!ENTITY wireshark-download-ftp " ">
9 <!ENTITY wireshark-md5sum "510dc3b063785549b41ebc748ac21055">
10 <!ENTITY wireshark-size "26 MB">
11 <!ENTITY wireshark-buildsize "840 MB">
12 <!ENTITY wireshark-time "5.1 SBU">
13]>
14
15<sect1 id="wireshark" xreflabel="Wireshark-&wireshark-version;">
16 <?dbhtml filename="wireshark.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>Wireshark-&wireshark-version;</title>
24
25 <indexterm zone="wireshark">
26 <primary sortas="a-Wireshark">Wireshark</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to Wireshark</title>
31
32 <para>The <application>Wireshark</application> package contains a network
33 protocol analyzer, also known as a <quote>sniffer</quote>. This is useful
34 for analyzing data captured <quote>off the wire</quote> from a live network
35 connection, or data read from a capture file.
36 <application>Wireshark</application> provides both a graphical and a TTY-mode
37 front-end for examining captured network packets from over 500 protocols,
38 as well as the capability to read capture files from many other popular
39 network analyzers.</para>
40
41 &lfs75_checked;
42
43 <bridgehead renderas="sect3">Package Information</bridgehead>
44 <itemizedlist spacing="compact">
45 <listitem>
46 <para>Download (HTTP): <ulink url="&wireshark-download-http;"/></para>
47 </listitem>
48 <listitem>
49 <para>Download (FTP): <ulink url="&wireshark-download-ftp;"/></para>
50 </listitem>
51 <listitem>
52 <para>Download MD5 sum: &wireshark-md5sum;</para>
53 </listitem>
54 <listitem>
55 <para>Download size: &wireshark-size;</para>
56 </listitem>
57 <listitem>
58 <para>Estimated disk space required: &wireshark-buildsize;</para>
59 </listitem>
60 <listitem>
61 <para>Estimated build time: &wireshark-time;</para>
62 </listitem>
63 </itemizedlist>
64
65 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
66 <itemizedlist spacing="compact">
67 <listitem>
68 <para>Additional Documentation:
69 <ulink url="http://www.wireshark.org/download/docs/"/>
70 </para>
71 </listitem>
72 </itemizedlist>
73
74 <para>From this page you can download many different docs in a variety
75 of formats.</para>
76
77 <bridgehead renderas="sect3">Wireshark dependencies</bridgehead>
78
79 <bridgehead renderas="sect4">Required</bridgehead>
80 <para role="required">
81 <xref linkend="glib2"/> (to build the TTY-mode front-end only)
82 </para>
83
84 <para>Note that you need <application>Gtk+</application> or
85 <application>Qt4</application> installed, otherwise, you will need to pass
86 <option>--disable-wireshark</option> to the
87 <command>configure</command> command.</para>
88
89 <bridgehead renderas="sect4">Recommended</bridgehead>
90 <para role="recommended">
91 <xref linkend="libpcap"/> (required to capture data)
92 </para>
93
94 <bridgehead renderas="sect4">Optional</bridgehead>
95 <para role="optional">
96 <ulink url="http://www.gnu.org/software/adns/adns.html">adns</ulink>,
97 <ulink url="http://www.maxmind.com/app/c">GeoIP</ulink>,
98 <xref linkend="gnutls"/>,
99 <xref linkend="libgcrypt"/>,
100 <xref linkend="lua"/>,
101 <xref linkend="mitkrb"/>,
102 <xref linkend="openssl"/>, and
103 <ulink url="http://www.portaudio.com/download.html">PortAudio</ulink>
104 </para>
105
106 <bridgehead renderas="sect4">Optional (to build the GUI front-end)</bridgehead>
107 <para role="optional">
108 <xref linkend="gtk2"/>,
109 <xref linkend="gtk3"/>, or
110 <xref linkend="qt4"/>
111 </para>
112
113 <para condition="html" role="usernotes">User Notes:
114 <ulink url="&blfs-wiki;/wireshark"/></para>
115
116 </sect2>
117
118 <sect2 role="kernel" id="wireshark-kernel">
119 <title>Kernel Configuration</title>
120
121 <para>The kernel must have the Packet protocol enabled for
122 <application>Wireshark</application> to capture live packets from the
123 network.</para>
124
125<screen><literal>Networking support: Y
126 Networking options:
127 Packet: sockets monitoring interface: M or Y</literal></screen>
128
129 <para>If built as a module, the name is
130 <filename>af_packet.ko</filename>.</para>
131
132 <indexterm zone="wireshark wireshark-kernel">
133 <primary sortas="d-Capturing-network-packets">Capturing network
134 packets</primary>
135 </indexterm>
136
137 </sect2>
138
139 <sect2 role="installation">
140 <title>Installation of Wireshark</title>
141
142 <para>Optionally, fix the description of the program in the title.
143 The first change overwrites the default "SVN Unknown" in the title
144 and the second overwrites a utility script that resets the version
145 to "unknown".</para>
146
147<screen><userinput>cat > svnversion.h &lt;&lt; "EOF"
148#define SVNVERSION "BLFS"
149#define SVNPATH "source"
150EOF
151
152cat > make-version.pl &lt;&lt; "EOF"
153#!/usr/bin/perl
154EOF</userinput></screen>
155
156 <para><application>Wireshark</application> is a very large and complex
157 application. These instructions provide additional security measures to
158 ensure that only trusted users are allowed to view network traffic. First,
159 set up a system group for wireshark. As the <systemitem
160 class="username">root</systemitem> user:</para>
161
162<screen role="root"><userinput>groupadd -g 62 wireshark</userinput></screen>
163
164 <para>If you want an unpriviledged user to execute
165 <application>wireshark</application>, run the following command as the
166 <systemitem class="username">root</systemitem> user:</para>
167
168<screen><userinput>usermod -a -G wireshark <replaceable>&lt;username&gt;</replaceable></userinput></screen>
169
170 <para>Continue to install <application>Wireshark</application> by running
171 the following commands:</para>
172
173<screen><userinput>./configure --prefix=/usr --sysconfdir=/etc &amp;&amp;
174make</userinput></screen>
175
176 <para>This package does not come with a test suite.</para>
177
178 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
179
180<screen role="root"><userinput>make install &amp;&amp;
181
182install -v -m755 -d /usr/share/doc/wireshark-&wireshark-version; &amp;&amp;
183install -v -m755 -d /usr/share/pixmaps/wireshark &amp;&amp;
184
185install -v -m644 README{,.linux} doc/README.* doc/*.{pod,txt} \
186 /usr/share/doc/wireshark-&wireshark-version; &amp;&amp;
187
188pushd /usr/share/doc/wireshark-&wireshark-version; &amp;&amp;
189 for FILENAME in ../../wireshark/*.html; do
190 ln -s -v -f $FILENAME .
191 done &amp;&amp;
192popd &amp;&amp;
193
194install -v -m644 -D wireshark.desktop \
195 /usr/share/applications/wireshark.desktop &amp;&amp;
196
197install -v -m644 -D image/wsicon48.png \
198 /usr/share/pixmaps/wireshark.png &amp;&amp;
199
200install -v -m644 image/*.{png,ico,xpm,bmp} \
201 /usr/share/pixmaps/wireshark</userinput></screen>
202
203 <para>If you downloaded any of the documentation files from the page
204 listed in the 'Additional Downloads', install them by issuing the following
205 commands as the <systemitem class="username">root</systemitem> user:</para>
206
207<screen role="root"><userinput>install -v -m644 <replaceable>&lt;Downloaded_Files&gt;</replaceable> /usr/share/doc/wireshark-&wireshark-version;</userinput></screen>
208
209 <para>Now, set ownership and permissions of sensitive applications to
210 only allow authorized users. As the <systemitem
211 class="username">root</systemitem> user:</para>
212
213<screen role="root"><userinput>chown -v root:wireshark /usr/bin/{tshark,dumpcap} &amp;&amp;
214chmod -v 6550 /usr/bin/{tshark,dumpcap}</userinput></screen>
215
216 <para>Finally, add any users to the wireshark group with <userinput>usermod -a -G
217 wireshark &lt;username&gt;</userinput>.</para>
218
219 </sect2>
220
221 <sect2 role="commands">
222 <title>Command Explanations</title>
223
224 <para><parameter>--enable-threads</parameter>: This parameter enables the
225 use of threads in <command>wireshark</command>.</para>
226
227 <para><option>--disable-wireshark</option>: This option is required if you
228 have <application>GTK+</application> installed but do not want to build
229 the GUI.</para>
230
231 <para><option>--with-gtk3=yes</option>: This option is required if you want
232 to use <application>GTK+</application>3 instead of 2, for the GUI.</para>
233
234 <para><option>--with-qt=yes</option>: This option is required if you want to
235 use <application>Qt</application> instead of
236 <application>GTK+</application>, for the GUI.</para>
237
238 <para><option>--with-ssl</option>: This option is required if you
239 are linking Kerberos libraries into the build so that the
240 <application>OpenSSL</application>
241 <filename class='libraryfile'>libcrypto</filename> library is found.</para>
242
243 </sect2>
244
245 <sect2 role="configuration">
246 <title>Configuring Wireshark</title>
247
248 <sect3 id="wireshark-config">
249 <title>Config Files</title>
250
251 <para><filename>/etc/wireshark.conf</filename> and
252 <filename>~/.wireshark/*</filename></para>
253
254 <indexterm zone="wireshark wireshark-config">
255 <primary sortas="e-AA.wireshark-star">~/.wireshark/*</primary>
256 </indexterm>
257
258 <indexterm zone="wireshark wireshark-config">
259 <primary sortas="e-etc-wireshark.conf">/etc/wireshark.conf</primary>
260 </indexterm>
261
262 </sect3>
263
264 <sect3>
265 <title>Configuration Information</title>
266
267 <para>Though the default configuration parameters are very sane,
268 reference the configuration section of the
269 <ulink url="http://www.wireshark.org/docs/wsug_html/">Wireshark User's
270 Guide</ulink> for configuration information. Most of
271 <application>Wireshark</application>'s configuration can be accomplished
272 using the menu options of the <command>wireshark</command>
273 graphical interface.</para>
274
275 <note>
276 <para>If you want to look at packets, make sure you don't filter
277 them out with <xref linkend="iptables"/>. If you want to exclude
278 certain classes of packets, it is more efficient to do it with
279 <application>iptables</application> than it is with
280 <application>Wireshark</application>.</para>
281 </note>
282
283 </sect3>
284
285 </sect2>
286
287 <sect2 role="content">
288 <title>Contents</title>
289
290 <segmentedlist>
291 <segtitle>Installed Programs</segtitle>
292 <segtitle>Installed Libraries</segtitle>
293 <segtitle>Installed Directories</segtitle>
294
295 <seglistitem>
296 <seg>capinfos, dftest, dumpcap, editcap, mergecap, randpkt, rawshark,
297 reordercap, text2pcap, tshark, and wireshark</seg>
298 <seg>libwireshark.so, libwiretap.so, libwsutil.so, and
299 numerous modules under /usr/lib/wireshark/plugins</seg>
300 <seg>/usr/lib/wireshark, /usr/share/doc/wireshark-&wireshark-version;,
301 /usr/share/pixmaps/wireshark, and /usr/share/wireshark</seg>
302 </seglistitem>
303 </segmentedlist>
304
305 <variablelist>
306 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
307 <?dbfo list-presentation="list"?>
308 <?dbhtml list-presentation="table"?>
309
310 <varlistentry id="capinfos">
311 <term><command>capinfos</command></term>
312 <listitem>
313 <para>reads a saved capture file and returns any or all of several
314 statistics about that file. It is able to detect and read any capture
315 supported by the <application>Wireshark</application> package.</para>
316 <indexterm zone="wireshark capinfos">
317 <primary sortas="b-capinfos">capinfos</primary>
318 </indexterm>
319 </listitem>
320 </varlistentry>
321
322 <varlistentry id="dftest">
323 <term><command>dftest</command></term>
324 <listitem>
325 <para>is a display-filter-compiler test program.</para>
326 <indexterm zone="wireshark dftest">
327 <primary sortas="b-dftest">dftest</primary>
328 </indexterm>
329 </listitem>
330 </varlistentry>
331
332 <varlistentry id="dumpcap">
333 <term><command>dumpcap</command></term>
334 <listitem>
335 <para>is a network traffic dump tool. It lets you capture packet data
336 from a live network and write the packets to a file.</para>
337 <indexterm zone="wireshark dumpcap">
338 <primary sortas="b-dumpcap">dumpcap</primary>
339 </indexterm>
340 </listitem>
341 </varlistentry>
342
343 <varlistentry id="editcap">
344 <term><command>editcap</command></term>
345 <listitem>
346 <para>edits and/or translates the format of capture files. It knows
347 how to read <application>libpcap</application> capture files,
348 including those of <command>tcpdump</command>,
349 <application>Wireshark</application> and other tools that write
350 captures in that format.</para>
351 <indexterm zone="wireshark editcap">
352 <primary sortas="b-editcap">editcap</primary>
353 </indexterm>
354 </listitem>
355 </varlistentry>
356
357 <varlistentry id="mergecap">
358 <term><command>mergecap</command></term>
359 <listitem>
360 <para>combines multiple saved capture files into a single output
361 file.</para>
362 <indexterm zone="wireshark mergecap">
363 <primary sortas="b-mergecap">mergecap</primary>
364 </indexterm>
365 </listitem>
366 </varlistentry>
367
368 <varlistentry id="randpkt">
369 <term><command>randpkt</command></term>
370 <listitem>
371 <para>creates random-packet capture files.</para>
372 <indexterm zone="wireshark randpkt">
373 <primary sortas="b-randpkt">randpkt</primary>
374 </indexterm>
375 </listitem>
376 </varlistentry>
377
378 <varlistentry id="rawshark">
379 <term><command>rawshark</command></term>
380 <listitem>
381 <para>dump and analyze raw libpcap data.</para>
382 <indexterm zone="wireshark rawshark">
383 <primary sortas="b-rawshark">rawshark</primary>
384 </indexterm>
385 </listitem>
386 </varlistentry>
387
388 <varlistentry id="reordercap">
389 <term><command>reordercap</command></term>
390 <listitem>
391 <para>reorder timestamps of input file frames into output file.</para>
392 <indexterm zone="wireshark reordercap">
393 <primary sortas="b-reordercap">reordercap</primary>
394 </indexterm>
395 </listitem>
396 </varlistentry>
397
398 <varlistentry id="text2pcap">
399 <term><command>text2pcap</command></term>
400 <listitem>
401 <para>reads in an ASCII hex dump and writes the
402 data described into a <application>libpcap</application>-style
403 capture file.</para>
404 <indexterm zone="wireshark text2pcap">
405 <primary sortas="b-text2pcap">text2pcap</primary>
406 </indexterm>
407 </listitem>
408 </varlistentry>
409
410 <varlistentry id="tshark">
411 <term><command>tshark</command></term>
412 <listitem>
413 <para>is a TTY-mode network protocol analyzer. It lets you capture
414 packet data from a live network or read packets from a
415 previously saved capture file.</para>
416 <indexterm zone="wireshark tshark">
417 <primary sortas="b-tshark">tshark</primary>
418 </indexterm>
419 </listitem>
420 </varlistentry>
421
422 <varlistentry id="wireshark-prog">
423 <term><command>wireshark</command></term>
424 <listitem>
425 <para>is a GUI network protocol analyzer. It lets you interactively
426 browse packet data from a live network or from a previously
427 saved capture file.</para>
428 <indexterm zone="wireshark wireshark-prog">
429 <primary sortas="b-wireshark">wireshark</primary>
430 </indexterm>
431 </listitem>
432 </varlistentry>
433
434 <varlistentry id="libwireshark">
435 <term><filename class='libraryfile'>libwireshark.so</filename></term>
436 <listitem>
437 <para>contains functions used by the
438 <application>Wireshark</application> programs to perform filtering and
439 packet capturing.</para>
440 <indexterm zone="wireshark libwireshark">
441 <primary sortas="c-libwireshark">libwireshark.so</primary>
442 </indexterm>
443 </listitem>
444 </varlistentry>
445
446 <varlistentry id="libwiretap">
447 <term><filename class='libraryfile'>libwiretap.so</filename></term>
448 <listitem>
449 <para>is a library being developed as a future replacement for
450 <filename class='libraryfile'>libpcap</filename>, the current
451 standard Unix library for packet capturing. For more information,
452 see the <filename>README</filename> file in the source
453 <filename class='directory'>wiretap</filename> directory.</para>
454 <indexterm zone="wireshark libwiretap">
455 <primary sortas="c-libwiretap">libwiretap.so</primary>
456 </indexterm>
457 </listitem>
458 </varlistentry>
459
460 </variablelist>
461
462 </sect2>
463
464</sect1>
Note: See TracBrowser for help on using the repository browser.