source: networking/netutils/wireshark.xml@ ac67709

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 12.2 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gimp3 kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/for-12.3 xry111/intltool xry111/llvm18 xry111/soup3 xry111/spidermonkey128 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since ac67709 was a48f17f5, checked in by Bruce Dubbs <bdubbs@…>, 7 years ago

Update to ffmpeg-3.3.2.
Update to feh-2.19.
Update to libepoxy-1.4.3.
Update to p11-kit-0.23.7.
Update to sudo-1.8.20p2.
Update to wireshark-2.2.7.
Update to nghttp2-1.23.0.
+

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

  • Property mode set to 100644
File size: 18.3 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
[54103ae]7 <!ENTITY wireshark-download-http "https://www.wireshark.org/download/src/all-versions/wireshark-&wireshark-version;.tar.bz2">
[7fd159db]8 <!ENTITY wireshark-download-ftp " ">
[a48f17f5]9 <!ENTITY wireshark-md5sum "a4d880554c7f925dafef60fa313b580d">
[2e868a4]10 <!ENTITY wireshark-size "31 MB">
[a48f17f5]11 <!ENTITY wireshark-buildsize "1.6 GB (with default GUI front-ends, and SBC codec)">
12 <!ENTITY wireshark-time "3.5 SBU (with parallelism=4 and default GUI front-ends)">
[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
[7014c9d]32 <para>
33 The <application>Wireshark</application> package contains a network
34 protocol analyzer, also known as a <quote>sniffer</quote>. This is useful
35 for analyzing data captured <quote>off the wire</quote> from a live
36 network connection, or data read from a capture file.
37 </para>
38
39 <para>
40 <application>Wireshark</application> provides both a graphical and a
41 TTY-mode front-end for examining captured network packets from over 500
42 protocols, as well as the capability to read capture files from many
43 other popular network analyzers.
44 </para>
[50b8d8b]45
[169834cb]46 &lfs80_checked;
[a48f17f5]47 &gcc7_checked;
[a079e73c]48
[13659efc]49 <bridgehead renderas="sect3">Package Information</bridgehead>
50 <itemizedlist spacing="compact">
51 <listitem>
[894de226]52 <para>Download (HTTP): <ulink url="&wireshark-download-http;"/></para>
[13659efc]53 </listitem>
54 <listitem>
[894de226]55 <para>Download (FTP): <ulink url="&wireshark-download-ftp;"/></para>
[13659efc]56 </listitem>
57 <listitem>
[894de226]58 <para>Download MD5 sum: &wireshark-md5sum;</para>
[13659efc]59 </listitem>
60 <listitem>
[894de226]61 <para>Download size: &wireshark-size;</para>
[13659efc]62 </listitem>
63 <listitem>
[894de226]64 <para>Estimated disk space required: &wireshark-buildsize;</para>
[13659efc]65 </listitem>
66 <listitem>
[894de226]67 <para>Estimated build time: &wireshark-time;</para>
[2174baa]68 </listitem>
[13659efc]69 </itemizedlist>
[50b8d8b]70
[3932f297]71 <bridgehead renderas="sect3">Additional Downloads</bridgehead>
[9f12e36]72 <itemizedlist spacing="compact">
[646a42e]73 <listitem>
74 <para>
[7014c9d]75 Optional patch:
76 <ulink url=
[791e3e7d]77 "&patch-root;/wireshark-&wireshark-version;-lua_5_3_1-1.patch"/>
[625769d2]78 (allows building the LUA bindings if <xref linkend="lua"/> is
[7014c9d]79 installed and LUA is not disabled by passing <option>--without-lua
80 </option> to <command>configure</command>)
[646a42e]81 </para>
82 </listitem>
[b11e915]83 <listitem>
[7014c9d]84 <para>
85 Additional Documentation:
86 <ulink url="https://www.wireshark.org/download/docs/"/>
87 (contains links to several different docs in a variety of formats)
[b11e915]88 </para>
89 </listitem>
[3932f297]90 </itemizedlist>
91
[894de226]92 <bridgehead renderas="sect3">Wireshark dependencies</bridgehead>
[50b8d8b]93
[13659efc]94 <bridgehead renderas="sect4">Required</bridgehead>
[6b14cb2]95 <para role="required">
[7014c9d]96 <xref linkend="glib2"/>
[6b14cb2]97 </para>
[50b8d8b]98
[13659efc]99 <bridgehead renderas="sect4">Recommended</bridgehead>
[a079e73c]100 <para role="recommended">
[791e3e7d]101 <xref linkend="gtk3"/> (for the <application>Gtk+3</application> GUI),
102 <xref linkend="libpcap"/> (required to capture data), and
103 <xref linkend="qt5"/> (for the <application>Qt5</application> GUI)
[a079e73c]104 </para>
[50b8d8b]105
[13659efc]106 <bridgehead renderas="sect4">Optional</bridgehead>
[9ef15dba]107 <para role="optional">
[4464d405]108 <xref linkend="c-ares"/>,
[94e2b39a]109 <xref linkend="gnutls"/>,
110 <xref linkend="libgcrypt"/>,
[791e3e7d]111 <xref linkend="libnl"/>,
[94e2b39a]112 <xref linkend="lua"/>,
[a079e73c]113 <xref linkend="mitkrb"/>,
[b85a77f]114 <xref linkend="openssl"/>,
[791e3e7d]115 <xref linkend="sbc"/>,
[b85a77f]116 <ulink url="http://www.gnu.org/software/adns/adns.html">adns</ulink>,
[791e3e7d]117 <ulink url="http://www.ibr.cs.tu-bs.de/projects/libsmi/">libsmi</ulink>,
[b85a77f]118 <ulink url="http://www.maxmind.com/app/c">GeoIP</ulink>, and
[791e3e7d]119 <ulink url="http://www.portaudio.com/">PortAudio</ulink>
120 (for GTK+ RTP player)
[2061231]121 </para>
122
[791e3e7d]123 <bridgehead renderas="sect4">Optional (for GUI front-ends)
[7014c9d]124 </bridgehead>
[2061231]125 <para role="optional">
[eb3dbe3]126 <xref linkend="gtk2"/>
[a079e73c]127 </para>
[28d83dbc]128
[7014c9d]129 <note>
130 <para>
131 The <application>GTK+</application> GUI needs one of <xref linkend=
132 "gtk2"/> or <xref linkend="gtk3"/>. If both are installed, GTK+3
133 is used by default.
134 </para>
135
136 <para>
[eb3dbe3]137 The <application>Qt</application> GUI needs <xref linkend="qt5"/>.
[7014c9d]138 </para>
139
140 <para>
[791e3e7d]141 Both GTK+ and Qt GUI front-ends are built, as recommended by the
142 upstream developers. If you want to override the defaults, some
143 configure switches have to be set (see <quote>Command
144 Explanations</quote>).
[7014c9d]145 </para>
146 </note>
147
148 <para condition="html" role="usernotes">
149 User Notes: <ulink url="&blfs-wiki;/wireshark"/>
150 </para>
[061ec9d]151
[13659efc]152 </sect2>
[50b8d8b]153
[894de226]154 <sect2 role="kernel" id="wireshark-kernel">
[13659efc]155 <title>Kernel Configuration</title>
[50b8d8b]156
[7014c9d]157 <para>
158 The kernel must have the Packet protocol enabled for <application>
159 Wireshark</application> to capture live packets from the network:
160 </para>
[6d772cc]161
[196d393]162<screen><literal>[*] Networking support ---&gt; [CONFIG_NET]
163 Networking options ---&gt;
164 &lt;*/M&gt; Packet socket [CONFIG_PACKET]</literal></screen>
[6b14cb2]165
[7014c9d]166 <para>
167 If built as a module, the name is <filename>af_packet.ko</filename>.
168 </para>
[50b8d8b]169
[7014c9d]170 <indexterm zone="wireshark wireshark-kernel">
171 <primary sortas="d-Capturing-network-packets">
172 Capturing network packets
173 </primary>
174 </indexterm>
[50b8d8b]175
[13659efc]176 </sect2>
[50b8d8b]177
[13659efc]178 <sect2 role="installation">
[894de226]179 <title>Installation of Wireshark</title>
[13659efc]180
[7014c9d]181 <para>
182 <application>Wireshark</application> is a very large and complex
183 application. These instructions provide additional security measures to
184 ensure that only trusted users are allowed to view network traffic. First,
185 set up a system group for wireshark. As the <systemitem
186 class="username">root</systemitem> user:
187 </para>
[a079e73c]188
189<screen role="root"><userinput>groupadd -g 62 wireshark</userinput></screen>
190
[7014c9d]191 <para>
192 Continue to install <application>Wireshark</application> by running
193 the following commands:
194 </para>
[13659efc]195
[791e3e7d]196<screen><userinput>patch -Np1 -i ../wireshark-&wireshark-version;-lua_5_3_1-1.patch &amp;&amp;
197
198./configure --prefix=/usr --sysconfdir=/etc &amp;&amp;
[13659efc]199make</userinput></screen>
[28d83dbc]200
[7014c9d]201 <para>
202 This package does not come with a test suite.
203 </para>
[50b8d8b]204
[7014c9d]205 <para>
206 Now, as the <systemitem class="username">root</systemitem> user:
207 </para>
[50b8d8b]208
[28d83dbc]209<screen role="root"><userinput>make install &amp;&amp;
[894de226]210
211install -v -m755 -d /usr/share/doc/wireshark-&wireshark-version; &amp;&amp;
[a079e73c]212install -v -m644 README{,.linux} doc/README.* doc/*.{pod,txt} \
[894de226]213 /usr/share/doc/wireshark-&wireshark-version; &amp;&amp;
[a079e73c]214
[894de226]215pushd /usr/share/doc/wireshark-&wireshark-version; &amp;&amp;
[0d7900a]216 for FILENAME in ../../wireshark/*.html; do
[2061231]217 ln -s -v -f $FILENAME .
[a079e73c]218 done &amp;&amp;
[791e3e7d]219popd
220unset FILENAME</userinput></screen>
[3932f297]221
[7014c9d]222 <para>
223 If you downloaded any of the documentation files from the page
224 listed in the 'Additional Downloads', install them by issuing the
225 following commands as the <systemitem class="username">root</systemitem>
226 user:
227 </para>
[3932f297]228
[6d772cc]229<screen role="root"><userinput>install -v -m644 <replaceable>&lt;Downloaded_Files&gt;</replaceable> \
230 /usr/share/doc/wireshark-&wireshark-version;</userinput></screen>
[50b8d8b]231
[7014c9d]232 <para>
233 Now, set ownership and permissions of sensitive applications to only
234 allow authorized users. As the <systemitem class="username">root
235 </systemitem> user:
236 </para>
[a079e73c]237
238<screen role="root"><userinput>chown -v root:wireshark /usr/bin/{tshark,dumpcap} &amp;&amp;
239chmod -v 6550 /usr/bin/{tshark,dumpcap}</userinput></screen>
240
[7014c9d]241 <para>
242 Finally, add any users to the wireshark group (as <systemitem class=
243 "username">root</systemitem> user):
244 </para>
[b85a77f]245
246<screen role="root"><userinput>usermod -a -G wireshark &lt;username&gt;</userinput></screen>
[a079e73c]247
[791e3e7d]248 <para>
249 If you are installing wireshark for the first time, it will be necessary
250 to leave the session and login again, thus you will now have wireshark
251 between your groups, otherwise, it will not run properly.
252 </para>
253
[13659efc]254 </sect2>
[50b8d8b]255
[13659efc]256 <sect2 role="commands">
257 <title>Command Explanations</title>
[50b8d8b]258
[6d772cc]259 <para>
[791e3e7d]260 <option>--with-gtk2=[yes/no]</option>: For the Gtk+2 GUI. If both Gtk+2
261 and 3 are installed, default is no. Notice that the GUI for only one Gtk+
262 version (either 2 or 3) can be built.
[6d772cc]263 </para>
264
[7014c9d]265 <para>
[791e3e7d]266 <option>--with-gtk3=[yes/no]</option>: For the Gtk+3 GUI. If both Gtk+2
267 and 3 are installed, default is yes.
[7014c9d]268 </para>
[50b8d8b]269
[7014c9d]270 <para>
[791e3e7d]271 <option>--with-qt=[yes/no/4/5]</option>: For the Qt GUI. Default is yes.
[7014c9d]272 </para>
[7f77bc6]273
[7014c9d]274 <para>
275 <option>--disable-wireshark</option>: Use this switch if you
276 have <application>GTK+</application> installed but do not want to build
277 any of the GUIs.
278 </para>
[7f77bc6]279
[13659efc]280 </sect2>
[50b8d8b]281
[13659efc]282 <sect2 role="configuration">
[894de226]283 <title>Configuring Wireshark</title>
[13659efc]284
[894de226]285 <sect3 id="wireshark-config">
[13659efc]286 <title>Config Files</title>
[50b8d8b]287
[894de226]288 <para><filename>/etc/wireshark.conf</filename> and
[791e3e7d]289 <filename>~/.config/wireshark/*</filename> (unless there is already
290 <filename>~/.wireshark/*</filename> in the system)</para>
[50b8d8b]291
[894de226]292 <indexterm zone="wireshark wireshark-config">
293 <primary sortas="e-AA.wireshark-star">~/.wireshark/*</primary>
[13659efc]294 </indexterm>
[50b8d8b]295
[894de226]296 <indexterm zone="wireshark wireshark-config">
297 <primary sortas="e-etc-wireshark.conf">/etc/wireshark.conf</primary>
[13659efc]298 </indexterm>
[50b8d8b]299
[13659efc]300 </sect3>
[50b8d8b]301
[13659efc]302 <sect3>
303 <title>Configuration Information</title>
[50b8d8b]304
[791e3e7d]305 <para>Though the default configuration parameters are very sane, reference
306 the configuration section of the <ulink
307 url="http://www.wireshark.org/docs/wsug_html/">Wireshark User's
[1065a91]308 Guide</ulink> for configuration information. Most of
[894de226]309 <application>Wireshark</application>'s configuration can be accomplished
[791e3e7d]310 using the menu options of the <command>wireshark</command> graphical
311 interfaces.</para>
[50b8d8b]312
[13659efc]313 <note>
[791e3e7d]314 <para>If you want to look at packets, make sure you don't filter them
315 out with <xref linkend="iptables"/>. If you want to exclude certain
316 classes of packets, it is more efficient to do it with
[894de226]317 <application>iptables</application> than it is with
318 <application>Wireshark</application>.</para>
[13659efc]319 </note>
[50b8d8b]320
[13659efc]321 </sect3>
[50b8d8b]322
[13659efc]323 </sect2>
[50b8d8b]324
[13659efc]325 <sect2 role="content">
326 <title>Contents</title>
327
328 <segmentedlist>
329 <segtitle>Installed Programs</segtitle>
330 <segtitle>Installed Libraries</segtitle>
331 <segtitle>Installed Directories</segtitle>
[50b8d8b]332
[13659efc]333 <seglistitem>
[791e3e7d]334 <seg>
[7fd159db]335 capinfos, captype, dftest, dumpcap, editcap, idl2wrs,
[791e3e7d]336 mergecap, randpkt, rawshark, reordercap, text2pcap, tshark, wireshark,
337 and wireshark-gtk
338 </seg>
339 <seg>
[7fd159db]340 libwireshark.so, libwiretap.so, libwscodecs.so (optional),
341 libwsutil.so, and numerous modules under /usr/lib/wireshark/plugins
[791e3e7d]342 </seg>
343 <seg>
344 /usr/{lib,share}/wireshark and
345 /usr/share/doc/wireshark-&wireshark-version;
346 </seg>
[13659efc]347 </seglistitem>
348 </segmentedlist>
[50b8d8b]349
[13659efc]350 <variablelist>
351 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
352 <?dbfo list-presentation="list"?>
353 <?dbhtml list-presentation="table"?>
[50b8d8b]354
[13659efc]355 <varlistentry id="capinfos">
356 <term><command>capinfos</command></term>
357 <listitem>
[1065a91]358 <para>reads a saved capture file and returns any or all of several
359 statistics about that file. It is able to detect and read any capture
[894de226]360 supported by the <application>Wireshark</application> package.</para>
361 <indexterm zone="wireshark capinfos">
[13659efc]362 <primary sortas="b-capinfos">capinfos</primary>
363 </indexterm>
364 </listitem>
365 </varlistentry>
[50b8d8b]366
[b85a77f]367 <varlistentry id="captype">
368 <term><command>captype</command></term>
369 <listitem>
370 <para>prints the file types of capture files.</para>
371 <indexterm zone="wireshark captype">
372 <primary sortas="b-captype">captype</primary>
373 </indexterm>
374 </listitem>
375 </varlistentry>
376
[13659efc]377 <varlistentry id="dftest">
378 <term><command>dftest</command></term>
379 <listitem>
380 <para>is a display-filter-compiler test program.</para>
[894de226]381 <indexterm zone="wireshark dftest">
[13659efc]382 <primary sortas="b-dftest">dftest</primary>
383 </indexterm>
384 </listitem>
385 </varlistentry>
[50b8d8b]386
[894de226]387 <varlistentry id="dumpcap">
388 <term><command>dumpcap</command></term>
389 <listitem>
390 <para>is a network traffic dump tool. It lets you capture packet data
391 from a live network and write the packets to a file.</para>
392 <indexterm zone="wireshark dumpcap">
393 <primary sortas="b-dumpcap">dumpcap</primary>
394 </indexterm>
395 </listitem>
396 </varlistentry>
397
[13659efc]398 <varlistentry id="editcap">
399 <term><command>editcap</command></term>
400 <listitem>
[1065a91]401 <para>edits and/or translates the format of capture files. It knows
402 how to read <application>libpcap</application> capture files,
403 including those of <command>tcpdump</command>,
[894de226]404 <application>Wireshark</application> and other tools that write
[28d83dbc]405 captures in that format.</para>
[894de226]406 <indexterm zone="wireshark editcap">
[13659efc]407 <primary sortas="b-editcap">editcap</primary>
408 </indexterm>
409 </listitem>
410 </varlistentry>
[50b8d8b]411
[13659efc]412 <varlistentry id="mergecap">
413 <term><command>mergecap</command></term>
414 <listitem>
[1065a91]415 <para>combines multiple saved capture files into a single output
[13659efc]416 file.</para>
[894de226]417 <indexterm zone="wireshark mergecap">
[13659efc]418 <primary sortas="b-mergecap">mergecap</primary>
419 </indexterm>
420 </listitem>
421 </varlistentry>
[50b8d8b]422
[13659efc]423 <varlistentry id="randpkt">
424 <term><command>randpkt</command></term>
425 <listitem>
426 <para>creates random-packet capture files.</para>
[894de226]427 <indexterm zone="wireshark randpkt">
[13659efc]428 <primary sortas="b-randpkt">randpkt</primary>
429 </indexterm>
430 </listitem>
431 </varlistentry>
[50b8d8b]432
[a079e73c]433 <varlistentry id="rawshark">
434 <term><command>rawshark</command></term>
435 <listitem>
436 <para>dump and analyze raw libpcap data.</para>
437 <indexterm zone="wireshark rawshark">
438 <primary sortas="b-rawshark">rawshark</primary>
439 </indexterm>
440 </listitem>
441 </varlistentry>
442
[2061231]443 <varlistentry id="reordercap">
444 <term><command>reordercap</command></term>
445 <listitem>
446 <para>reorder timestamps of input file frames into output file.</para>
447 <indexterm zone="wireshark reordercap">
448 <primary sortas="b-reordercap">reordercap</primary>
449 </indexterm>
450 </listitem>
451 </varlistentry>
452
[894de226]453 <varlistentry id="text2pcap">
454 <term><command>text2pcap</command></term>
455 <listitem>
456 <para>reads in an ASCII hex dump and writes the
457 data described into a <application>libpcap</application>-style
458 capture file.</para>
459 <indexterm zone="wireshark text2pcap">
460 <primary sortas="b-text2pcap">text2pcap</primary>
461 </indexterm>
462 </listitem>
463 </varlistentry>
464
465 <varlistentry id="tshark">
466 <term><command>tshark</command></term>
[13659efc]467 <listitem>
[1065a91]468 <para>is a TTY-mode network protocol analyzer. It lets you capture
469 packet data from a live network or read packets from a
[13659efc]470 previously saved capture file.</para>
[894de226]471 <indexterm zone="wireshark tshark">
472 <primary sortas="b-tshark">tshark</primary>
[13659efc]473 </indexterm>
474 </listitem>
475 </varlistentry>
[50b8d8b]476
[894de226]477 <varlistentry id="wireshark-prog">
478 <term><command>wireshark</command></term>
[13659efc]479 <listitem>
[791e3e7d]480 <para>
481 is the Qt GUI network protocol analyzer. It lets you interactively
482 browse packet data from a live network or from a previously saved
483 capture file.
484 </para>
[894de226]485 <indexterm zone="wireshark wireshark-prog">
486 <primary sortas="b-wireshark">wireshark</primary>
[13659efc]487 </indexterm>
488 </listitem>
489 </varlistentry>
[50b8d8b]490
[791e3e7d]491 <varlistentry id="wireshark-gtk-prog">
492 <term><command>wireshark-gtk</command></term>
[b85a77f]493 <listitem>
[791e3e7d]494 <para>
495 is the Gtk+ GUI network protocol analyzer. It lets you interactively
496 browse packet data from a live network or from a previously saved
497 capture file.
498 </para>
499 <indexterm zone="wireshark wireshark-gtk-prog">
500 <primary sortas="b-wireshark-gtk">wireshark-gtk</primary>
[b85a77f]501 </indexterm>
502 </listitem>
503 </varlistentry>
504
[894de226]505 <varlistentry id="libwireshark">
506 <term><filename class='libraryfile'>libwireshark.so</filename></term>
[13659efc]507 <listitem>
[1065a91]508 <para>contains functions used by the
[894de226]509 <application>Wireshark</application> programs to perform filtering and
[13659efc]510 packet capturing.</para>
[894de226]511 <indexterm zone="wireshark libwireshark">
512 <primary sortas="c-libwireshark">libwireshark.so</primary>
[13659efc]513 </indexterm>
514 </listitem>
515 </varlistentry>
[50b8d8b]516
[13659efc]517 <varlistentry id="libwiretap">
518 <term><filename class='libraryfile'>libwiretap.so</filename></term>
519 <listitem>
[1065a91]520 <para>is a library being developed as a future replacement for
521 <filename class='libraryfile'>libpcap</filename>, the current
522 standard Unix library for packet capturing. For more information,
523 see the <filename>README</filename> file in the source
[13659efc]524 <filename class='directory'>wiretap</filename> directory.</para>
[894de226]525 <indexterm zone="wireshark libwiretap">
[13659efc]526 <primary sortas="c-libwiretap">libwiretap.so</primary>
527 </indexterm>
528 </listitem>
529 </varlistentry>
[50b8d8b]530
[13659efc]531 </variablelist>
532
533 </sect2>
[1a3dd316]534
535</sect1>
Note: See TracBrowser for help on using the repository browser.