source: networking/netutils/wireshark.xml@ 1a4285bc

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 1a4285bc 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
RevLine 
[1a3dd316]1<?xml version="1.0" encoding="ISO-8859-1"?>
[6732c094]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[1a3dd316]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
[d0151ee]7 <!ENTITY wireshark-download-http "http://www.wireshark.org/download/src/all-versions/wireshark-&wireshark-version;.tar.bz2">
[a079e73c]8 <!ENTITY wireshark-download-ftp " ">
[ef78b5f]9 <!ENTITY wireshark-md5sum "510dc3b063785549b41ebc748ac21055">
[2061231]10 <!ENTITY wireshark-size "26 MB">
[ef78b5f]11 <!ENTITY wireshark-buildsize "840 MB">
12 <!ENTITY wireshark-time "5.1 SBU">
[1a3dd316]13]>
14
[894de226]15<sect1 id="wireshark" xreflabel="Wireshark-&wireshark-version;">
16 <?dbhtml filename="wireshark.html"?>
[50b8d8b]17
[13659efc]18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
[50b8d8b]22
[894de226]23 <title>Wireshark-&wireshark-version;</title>
[50b8d8b]24
[894de226]25 <indexterm zone="wireshark">
26 <primary sortas="a-Wireshark">Wireshark</primary>
[13659efc]27 </indexterm>
28
29 <sect2 role="package">
[894de226]30 <title>Introduction to Wireshark</title>
[13659efc]31
[894de226]32 <para>The <application>Wireshark</application> package contains a network
[1065a91]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.
[6b14cb2]36 <application>Wireshark</application> provides both a graphical and a TTY-mode
[c3ee07c]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>
[50b8d8b]40
[283854e4]41 &lfs75_checked;
[a079e73c]42
[13659efc]43 <bridgehead renderas="sect3">Package Information</bridgehead>
44 <itemizedlist spacing="compact">
45 <listitem>
[894de226]46 <para>Download (HTTP): <ulink url="&wireshark-download-http;"/></para>
[13659efc]47 </listitem>
48 <listitem>
[894de226]49 <para>Download (FTP): <ulink url="&wireshark-download-ftp;"/></para>
[13659efc]50 </listitem>
51 <listitem>
[894de226]52 <para>Download MD5 sum: &wireshark-md5sum;</para>
[13659efc]53 </listitem>
54 <listitem>
[894de226]55 <para>Download size: &wireshark-size;</para>
[13659efc]56 </listitem>
57 <listitem>
[894de226]58 <para>Estimated disk space required: &wireshark-buildsize;</para>
[13659efc]59 </listitem>
60 <listitem>
[894de226]61 <para>Estimated build time: &wireshark-time;</para>
[2174baa]62 </listitem>
[13659efc]63 </itemizedlist>
[50b8d8b]64
[3932f297]65 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
[9f12e36]66 <itemizedlist spacing="compact">
[b11e915]67 <listitem>
68 <para>Additional Documentation:
69 <ulink url="http://www.wireshark.org/download/docs/"/>
70 </para>
71 </listitem>
[3932f297]72 </itemizedlist>
73
74 <para>From this page you can download many different docs in a variety
75 of formats.</para>
76
[894de226]77 <bridgehead renderas="sect3">Wireshark dependencies</bridgehead>
[50b8d8b]78
[13659efc]79 <bridgehead renderas="sect4">Required</bridgehead>
[6b14cb2]80 <para role="required">
81 <xref linkend="glib2"/> (to build the TTY-mode front-end only)
82 </para>
[50b8d8b]83
[2061231]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>
[894de226]88
[13659efc]89 <bridgehead renderas="sect4">Recommended</bridgehead>
[a079e73c]90 <para role="recommended">
91 <xref linkend="libpcap"/> (required to capture data)
92 </para>
[50b8d8b]93
[13659efc]94 <bridgehead renderas="sect4">Optional</bridgehead>
[9ef15dba]95 <para role="optional">
[94e2b39a]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"/>,
[a079e73c]101 <xref linkend="mitkrb"/>,
[072a49e]102 <xref linkend="openssl"/>, and
[2061231]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"/>
[a079e73c]111 </para>
[28d83dbc]112
[061ec9d]113 <para condition="html" role="usernotes">User Notes:
[894de226]114 <ulink url="&blfs-wiki;/wireshark"/></para>
[061ec9d]115
[13659efc]116 </sect2>
[50b8d8b]117
[894de226]118 <sect2 role="kernel" id="wireshark-kernel">
[13659efc]119 <title>Kernel Configuration</title>
[50b8d8b]120
[1065a91]121 <para>The kernel must have the Packet protocol enabled for
[894de226]122 <application>Wireshark</application> to capture live packets from the
[6b14cb2]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>
[50b8d8b]131
[894de226]132 <indexterm zone="wireshark wireshark-kernel">
[1065a91]133 <primary sortas="d-Capturing-network-packets">Capturing network
[13659efc]134 packets</primary>
135 </indexterm>
[50b8d8b]136
[13659efc]137 </sect2>
[50b8d8b]138
[13659efc]139 <sect2 role="installation">
[894de226]140 <title>Installation of Wireshark</title>
[13659efc]141
[0d7900a]142 <para>Optionally, fix the description of the program in the title.
[a079e73c]143 The first change overwrites the default "SVN Unknown" in the title
[7365b6c]144 and the second overwrites a utility script that resets the version
[a079e73c]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,
[6b14cb2]159 set up a system group for wireshark. As the <systemitem
[a079e73c]160 class="username">root</systemitem> user:</para>
161
162<screen role="root"><userinput>groupadd -g 62 wireshark</userinput></screen>
163
[ef78b5f]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
[a079e73c]170 <para>Continue to install <application>Wireshark</application> by running
171 the following commands:</para>
[13659efc]172
[2061231]173<screen><userinput>./configure --prefix=/usr --sysconfdir=/etc &amp;&amp;
[13659efc]174make</userinput></screen>
[28d83dbc]175
176 <para>This package does not come with a test suite.</para>
[50b8d8b]177
[13659efc]178 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
[50b8d8b]179
[28d83dbc]180<screen role="root"><userinput>make install &amp;&amp;
[894de226]181
182install -v -m755 -d /usr/share/doc/wireshark-&wireshark-version; &amp;&amp;
[a079e73c]183install -v -m755 -d /usr/share/pixmaps/wireshark &amp;&amp;
184
185install -v -m644 README{,.linux} doc/README.* doc/*.{pod,txt} \
[894de226]186 /usr/share/doc/wireshark-&wireshark-version; &amp;&amp;
[a079e73c]187
[894de226]188pushd /usr/share/doc/wireshark-&wireshark-version; &amp;&amp;
[0d7900a]189 for FILENAME in ../../wireshark/*.html; do
[2061231]190 ln -s -v -f $FILENAME .
[a079e73c]191 done &amp;&amp;
[894de226]192popd &amp;&amp;
193
194install -v -m644 -D wireshark.desktop \
195 /usr/share/applications/wireshark.desktop &amp;&amp;
[a079e73c]196
[894de226]197install -v -m644 -D image/wsicon48.png \
198 /usr/share/pixmaps/wireshark.png &amp;&amp;
[a079e73c]199
200install -v -m644 image/*.{png,ico,xpm,bmp} \
201 /usr/share/pixmaps/wireshark</userinput></screen>
[3932f297]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
[894de226]207<screen role="root"><userinput>install -v -m644 <replaceable>&lt;Downloaded_Files&gt;</replaceable> /usr/share/doc/wireshark-&wireshark-version;</userinput></screen>
[50b8d8b]208
[e958dbb2]209 <para>Now, set ownership and permissions of sensitive applications to
[a079e73c]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
[13659efc]219 </sect2>
[50b8d8b]220
[13659efc]221 <sect2 role="commands">
222 <title>Command Explanations</title>
[50b8d8b]223
[1065a91]224 <para><parameter>--enable-threads</parameter>: This parameter enables the
[894de226]225 use of threads in <command>wireshark</command>.</para>
[50b8d8b]226
[7f77bc6]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
[13927bc]235 use <application>Qt</application> instead of
236 <application>GTK+</application>, for the GUI.</para>
[7f77bc6]237
[359fdb62]238 <para><option>--with-ssl</option>: This option is required if you
[894de226]239 are linking Kerberos libraries into the build so that the
[50b8d8b]240 <application>OpenSSL</application>
[894de226]241 <filename class='libraryfile'>libcrypto</filename> library is found.</para>
[50b8d8b]242
[13659efc]243 </sect2>
[50b8d8b]244
[13659efc]245 <sect2 role="configuration">
[894de226]246 <title>Configuring Wireshark</title>
[13659efc]247
[894de226]248 <sect3 id="wireshark-config">
[13659efc]249 <title>Config Files</title>
[50b8d8b]250
[894de226]251 <para><filename>/etc/wireshark.conf</filename> and
252 <filename>~/.wireshark/*</filename></para>
[50b8d8b]253
[894de226]254 <indexterm zone="wireshark wireshark-config">
255 <primary sortas="e-AA.wireshark-star">~/.wireshark/*</primary>
[13659efc]256 </indexterm>
[50b8d8b]257
[894de226]258 <indexterm zone="wireshark wireshark-config">
259 <primary sortas="e-etc-wireshark.conf">/etc/wireshark.conf</primary>
[13659efc]260 </indexterm>
[50b8d8b]261
[13659efc]262 </sect3>
[50b8d8b]263
[13659efc]264 <sect3>
265 <title>Configuration Information</title>
[50b8d8b]266
[1065a91]267 <para>Though the default configuration parameters are very sane,
268 reference the configuration section of the
[894de226]269 <ulink url="http://www.wireshark.org/docs/wsug_html/">Wireshark User's
[1065a91]270 Guide</ulink> for configuration information. Most of
[894de226]271 <application>Wireshark</application>'s configuration can be accomplished
272 using the menu options of the <command>wireshark</command>
[c3ee07c]273 graphical interface.</para>
[50b8d8b]274
[13659efc]275 <note>
[1065a91]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
[894de226]279 <application>iptables</application> than it is with
280 <application>Wireshark</application>.</para>
[13659efc]281 </note>
[50b8d8b]282
[13659efc]283 </sect3>
[50b8d8b]284
[13659efc]285 </sect2>
[50b8d8b]286
[13659efc]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>
[50b8d8b]294
[13659efc]295 <seglistitem>
[2061231]296 <seg>capinfos, dftest, dumpcap, editcap, mergecap, randpkt, rawshark,
297 reordercap, text2pcap, tshark, and wireshark</seg>
[0d7900a]298 <seg>libwireshark.so, libwiretap.so, libwsutil.so, and
[ef78b5f]299 numerous modules under /usr/lib/wireshark/plugins</seg>
[894de226]300 <seg>/usr/lib/wireshark, /usr/share/doc/wireshark-&wireshark-version;,
[6b14cb2]301 /usr/share/pixmaps/wireshark, and /usr/share/wireshark</seg>
[13659efc]302 </seglistitem>
303 </segmentedlist>
[50b8d8b]304
[13659efc]305 <variablelist>
306 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
307 <?dbfo list-presentation="list"?>
308 <?dbhtml list-presentation="table"?>
[50b8d8b]309
[13659efc]310 <varlistentry id="capinfos">
311 <term><command>capinfos</command></term>
312 <listitem>
[1065a91]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
[894de226]315 supported by the <application>Wireshark</application> package.</para>
316 <indexterm zone="wireshark capinfos">
[13659efc]317 <primary sortas="b-capinfos">capinfos</primary>
318 </indexterm>
319 </listitem>
320 </varlistentry>
[50b8d8b]321
[13659efc]322 <varlistentry id="dftest">
323 <term><command>dftest</command></term>
324 <listitem>
325 <para>is a display-filter-compiler test program.</para>
[894de226]326 <indexterm zone="wireshark dftest">
[13659efc]327 <primary sortas="b-dftest">dftest</primary>
328 </indexterm>
329 </listitem>
330 </varlistentry>
[50b8d8b]331
[894de226]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
[13659efc]343 <varlistentry id="editcap">
344 <term><command>editcap</command></term>
345 <listitem>
[1065a91]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>,
[894de226]349 <application>Wireshark</application> and other tools that write
[28d83dbc]350 captures in that format.</para>
[894de226]351 <indexterm zone="wireshark editcap">
[13659efc]352 <primary sortas="b-editcap">editcap</primary>
353 </indexterm>
354 </listitem>
355 </varlistentry>
[50b8d8b]356
[13659efc]357 <varlistentry id="mergecap">
358 <term><command>mergecap</command></term>
359 <listitem>
[1065a91]360 <para>combines multiple saved capture files into a single output
[13659efc]361 file.</para>
[894de226]362 <indexterm zone="wireshark mergecap">
[13659efc]363 <primary sortas="b-mergecap">mergecap</primary>
364 </indexterm>
365 </listitem>
366 </varlistentry>
[50b8d8b]367
[13659efc]368 <varlistentry id="randpkt">
369 <term><command>randpkt</command></term>
370 <listitem>
371 <para>creates random-packet capture files.</para>
[894de226]372 <indexterm zone="wireshark randpkt">
[13659efc]373 <primary sortas="b-randpkt">randpkt</primary>
374 </indexterm>
375 </listitem>
376 </varlistentry>
[50b8d8b]377
[a079e73c]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
[2061231]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
[894de226]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>
[13659efc]412 <listitem>
[1065a91]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
[13659efc]415 previously saved capture file.</para>
[894de226]416 <indexterm zone="wireshark tshark">
417 <primary sortas="b-tshark">tshark</primary>
[13659efc]418 </indexterm>
419 </listitem>
420 </varlistentry>
[50b8d8b]421
[894de226]422 <varlistentry id="wireshark-prog">
423 <term><command>wireshark</command></term>
[13659efc]424 <listitem>
[894de226]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>
[13659efc]430 </indexterm>
431 </listitem>
432 </varlistentry>
[50b8d8b]433
[894de226]434 <varlistentry id="libwireshark">
435 <term><filename class='libraryfile'>libwireshark.so</filename></term>
[13659efc]436 <listitem>
[1065a91]437 <para>contains functions used by the
[894de226]438 <application>Wireshark</application> programs to perform filtering and
[13659efc]439 packet capturing.</para>
[894de226]440 <indexterm zone="wireshark libwireshark">
441 <primary sortas="c-libwireshark">libwireshark.so</primary>
[13659efc]442 </indexterm>
443 </listitem>
444 </varlistentry>
[50b8d8b]445
[13659efc]446 <varlistentry id="libwiretap">
447 <term><filename class='libraryfile'>libwiretap.so</filename></term>
448 <listitem>
[1065a91]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
[13659efc]453 <filename class='directory'>wiretap</filename> directory.</para>
[894de226]454 <indexterm zone="wireshark libwiretap">
[13659efc]455 <primary sortas="c-libwiretap">libwiretap.so</primary>
456 </indexterm>
457 </listitem>
458 </varlistentry>
[50b8d8b]459
[13659efc]460 </variablelist>
461
462 </sect2>
[1a3dd316]463
464</sect1>
Note: See TracBrowser for help on using the repository browser.