source: networking/netutils/wireshark.xml@ 4eaa7c4

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.4 7.5 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 4eaa7c4 was 4eaa7c4, checked in by Bruce Dubbs <bdubbs@…>, 12 years ago

Update to wireshark-1.8.3

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

  • Property mode set to 100644
File size: 16.4 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 "898b4c60e32efcd77ecf875a6ad07a92">
10 <!ENTITY wireshark-size "23 MB">
11 <!ENTITY wireshark-buildsize "1.0 GB">
12 <!ENTITY wireshark-time "6.0 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 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 &lfs72_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"><!--<xref linkend="GLib"/> or --><xref linkend="glib2"/>
81 (to build the TTY-mode front-end only)</para>
82
83 <para>Note that if you don't have <application>Gtk+</application>
84 installed, you will need to pass <option>--disable-wireshark</option>
85 to the <command>configure</command> command.</para>
86
87 <bridgehead renderas="sect4">Recommended</bridgehead>
88 <para role="recommended">
89 <xref linkend="libpcap"/> (required to capture data)
90 </para>
91
92 <bridgehead renderas="sect4">Optional</bridgehead>
93 <para role="optional"><!-- <xref linkend="pkgconfig"/>, -->
94 <xref linkend="gtk2"/> or <xref linkend="gtk3"/> (to build the GUI front-end),
95 <xref linkend="openssl"/>,
96 <xref linkend="mitkrb"/>,
97 <xref linkend="python2"/>,
98 <xref linkend="pcre"/>,
99 <xref linkend="gnutls"/>,
100 <ulink url="http://www.portaudio.com/download.html">PortAudio</ulink>,
101 <ulink url="http://www.maxmind.com/app/c">GeoIP</ulink>,
102 <!-- <ulink url="http://www.net-snmp.org/">Net-SNMP</ulink>, -->
103 <ulink url="http://www.gnu.org/software/adns/adns.html">adns</ulink>, and
104 <ulink url="http://www.lua.org/">Lua</ulink>
105 </para>
106
107 <para condition="html" role="usernotes">User Notes:
108 <ulink url="&blfs-wiki;/wireshark"/></para>
109
110 </sect2>
111
112 <sect2 role="kernel" id="wireshark-kernel">
113 <title>Kernel Configuration</title>
114
115 <para>The kernel must have the Packet protocol enabled for
116 <application>Wireshark</application> to capture live packets from the
117 network. Enable the Packet protocol by choosing <quote>Y</quote> in the
118 <quote>Networking</quote> &ndash; <quote>Packet socket</quote>
119 configuration parameter. Alternatively, build the
120 <filename>af_packet.ko</filename> module by choosing <quote>M</quote> in
121 this parameter.</para>
122
123 <indexterm zone="wireshark wireshark-kernel">
124 <primary sortas="d-Capturing-network-packets">Capturing network
125 packets</primary>
126 </indexterm>
127
128 </sect2>
129
130 <sect2 role="installation">
131 <title>Installation of Wireshark</title>
132
133 <para>Optionally, fix the description of the program in the title.
134 The first change overwrites the default "SVN Unknown" in the title
135 and the secong overwrites a utility script that resets the version
136 to "unknown".</para>
137
138<screen><userinput>cat > svnversion.h &lt;&lt; "EOF"
139#define SVNVERSION "BLFS"
140#define SVNPATH "source"
141EOF
142
143cat > make-version.pl &lt;&lt; "EOF"
144#!/usr/bin/perl
145EOF</userinput></screen>
146
147 <para><application>Wireshark</application> is a very large and complex
148 application. These instructions provide additional security measures to
149 ensure that only trusted users are allowed to view network traffic. First,
150 set up a system groub for wireshark. As the <systemitem
151 class="username">root</systemitem> user:</para>
152
153<screen role="root"><userinput>groupadd -g 62 wireshark</userinput></screen>
154
155 <para>Continue to install <application>Wireshark</application> by running
156 the following commands:</para>
157
158<screen><userinput>./configure --prefix=/usr --sysconfdir=/etc &amp;&amp;
159make</userinput></screen>
160
161 <para>This package does not come with a test suite.</para>
162
163 <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
164
165<screen role="root"><userinput>make install &amp;&amp;
166
167install -v -m755 -d /usr/share/doc/wireshark-&wireshark-version; &amp;&amp;
168install -v -m755 -d /usr/share/pixmaps/wireshark &amp;&amp;
169
170install -v -m644 README{,.linux} doc/README.* doc/*.{pod,txt} \
171 /usr/share/doc/wireshark-&wireshark-version; &amp;&amp;
172
173pushd /usr/share/doc/wireshark-&wireshark-version; &amp;&amp;
174 for FILENAME in ../../wireshark/*.html; do
175 ln -s -v $FILENAME .
176 done &amp;&amp;
177popd &amp;&amp;
178
179install -v -m644 -D wireshark.desktop \
180 /usr/share/applications/wireshark.desktop &amp;&amp;
181
182install -v -m644 -D image/wsicon48.png \
183 /usr/share/pixmaps/wireshark.png &amp;&amp;
184
185install -v -m644 image/*.{png,ico,xpm,bmp} \
186 /usr/share/pixmaps/wireshark</userinput></screen>
187
188 <para>If you downloaded any of the documentation files from the page
189 listed in the 'Additional Downloads', install them by issuing the following
190 commands as the <systemitem class="username">root</systemitem> user:</para>
191
192<screen role="root"><userinput>install -v -m644 <replaceable>&lt;Downloaded_Files&gt;</replaceable> /usr/share/doc/wireshark-&wireshark-version;</userinput></screen>
193
194 <para>Now, set ownership and permissions of sensitive applications to
195 only allow authorized users. As the <systemitem
196 class="username">root</systemitem> user:</para>
197
198<screen role="root"><userinput>chown -v root:wireshark /usr/bin/{tshark,dumpcap} &amp;&amp;
199chmod -v 6550 /usr/bin/{tshark,dumpcap}</userinput></screen>
200
201 <para>Finally, add any users to the wireshark group with <userinput>usermod -a -G
202 wireshark &lt;username&gt;</userinput>.</para>
203
204 </sect2>
205
206 <sect2 role="commands">
207 <title>Command Explanations</title>
208
209 <para><parameter>--enable-threads</parameter>: This parameter enables the
210 use of threads in <command>wireshark</command>.</para>
211
212 <para><option>--with-ssl</option>: This parameter is required if you
213 are linking Kerberos libraries into the build so that the
214 <application>OpenSSL</application>
215 <filename class='libraryfile'>libcrypto</filename> library is found.</para>
216
217 <para><option>--with-python</option>: This parameter is required if you
218 want Python bindings built.</para>
219
220 </sect2>
221
222 <sect2 role="configuration">
223 <title>Configuring Wireshark</title>
224
225 <sect3 id="wireshark-config">
226 <title>Config Files</title>
227
228 <para><filename>/etc/wireshark.conf</filename> and
229 <filename>~/.wireshark/*</filename></para>
230
231 <indexterm zone="wireshark wireshark-config">
232 <primary sortas="e-AA.wireshark-star">~/.wireshark/*</primary>
233 </indexterm>
234
235 <indexterm zone="wireshark wireshark-config">
236 <primary sortas="e-etc-wireshark.conf">/etc/wireshark.conf</primary>
237 </indexterm>
238
239 </sect3>
240
241 <sect3>
242 <title>Configuration Information</title>
243
244 <para>Though the default configuration parameters are very sane,
245 reference the configuration section of the
246 <ulink url="http://www.wireshark.org/docs/wsug_html/">Wireshark User's
247 Guide</ulink> for configuration information. Most of
248 <application>Wireshark</application>'s configuration can be accomplished
249 using the menu options of the <command>wireshark</command>
250 graphical interface.</para>
251
252 <note>
253 <para>If you want to look at packets, make sure you don't filter
254 them out with <xref linkend="iptables"/>. If you want to exclude
255 certain classes of packets, it is more efficient to do it with
256 <application>iptables</application> than it is with
257 <application>Wireshark</application>.</para>
258 </note>
259
260 </sect3>
261
262 </sect2>
263
264 <sect2 role="content">
265 <title>Contents</title>
266
267 <segmentedlist>
268 <segtitle>Installed Programs</segtitle>
269 <segtitle>Installed Libraries</segtitle>
270 <segtitle>Installed Directories</segtitle>
271
272 <seglistitem>
273 <seg>capinfos, dftest, dumpcap, editcap, idl2wrs, mergecap, randpkt,
274 rawshark, text2pcap, tshark and wireshark</seg>
275 <seg>libwireshark.so, libwiretap.so, libwsutil.so, and
276 numerous plugin modules</seg>
277 <seg>/usr/lib/wireshark, /usr/share/doc/wireshark-&wireshark-version;,
278 /usr/share/pixmaps/wireshark and /usr/share/wireshark</seg>
279 </seglistitem>
280 </segmentedlist>
281
282 <variablelist>
283 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
284 <?dbfo list-presentation="list"?>
285 <?dbhtml list-presentation="table"?>
286
287 <varlistentry id="capinfos">
288 <term><command>capinfos</command></term>
289 <listitem>
290 <para>reads a saved capture file and returns any or all of several
291 statistics about that file. It is able to detect and read any capture
292 supported by the <application>Wireshark</application> package.</para>
293 <indexterm zone="wireshark capinfos">
294 <primary sortas="b-capinfos">capinfos</primary>
295 </indexterm>
296 </listitem>
297 </varlistentry>
298
299 <varlistentry id="dftest">
300 <term><command>dftest</command></term>
301 <listitem>
302 <para>is a display-filter-compiler test program.</para>
303 <indexterm zone="wireshark dftest">
304 <primary sortas="b-dftest">dftest</primary>
305 </indexterm>
306 </listitem>
307 </varlistentry>
308
309 <varlistentry id="dumpcap">
310 <term><command>dumpcap</command></term>
311 <listitem>
312 <para>is a network traffic dump tool. It lets you capture packet data
313 from a live network and write the packets to a file.</para>
314 <indexterm zone="wireshark dumpcap">
315 <primary sortas="b-dumpcap">dumpcap</primary>
316 </indexterm>
317 </listitem>
318 </varlistentry>
319
320 <varlistentry id="editcap">
321 <term><command>editcap</command></term>
322 <listitem>
323 <para>edits and/or translates the format of capture files. It knows
324 how to read <application>libpcap</application> capture files,
325 including those of <command>tcpdump</command>,
326 <application>Wireshark</application> and other tools that write
327 captures in that format.</para>
328 <indexterm zone="wireshark editcap">
329 <primary sortas="b-editcap">editcap</primary>
330 </indexterm>
331 </listitem>
332 </varlistentry>
333
334 <varlistentry id="idl2wrs">
335 <term><command>idl2wrs</command></term>
336 <listitem>
337 <para>takes a user specified CORBA
338 IDL file and generates <quote>C</quote> source code that
339 can be used to create an <application>Wireshark</application>
340 plugin.</para>
341 <indexterm zone="wireshark idl2wrs">
342 <primary sortas="b-idl2wrs">idl2wrs</primary>
343 </indexterm>
344 </listitem>
345 </varlistentry>
346
347 <varlistentry id="mergecap">
348 <term><command>mergecap</command></term>
349 <listitem>
350 <para>combines multiple saved capture files into a single output
351 file.</para>
352 <indexterm zone="wireshark mergecap">
353 <primary sortas="b-mergecap">mergecap</primary>
354 </indexterm>
355 </listitem>
356 </varlistentry>
357
358 <varlistentry id="randpkt">
359 <term><command>randpkt</command></term>
360 <listitem>
361 <para>creates random-packet capture files.</para>
362 <indexterm zone="wireshark randpkt">
363 <primary sortas="b-randpkt">randpkt</primary>
364 </indexterm>
365 </listitem>
366 </varlistentry>
367
368 <varlistentry id="rawshark">
369 <term><command>rawshark</command></term>
370 <listitem>
371 <para>dump and analyze raw libpcap data.</para>
372 <indexterm zone="wireshark rawshark">
373 <primary sortas="b-rawshark">rawshark</primary>
374 </indexterm>
375 </listitem>
376 </varlistentry>
377
378 <varlistentry id="text2pcap">
379 <term><command>text2pcap</command></term>
380 <listitem>
381 <para>reads in an ASCII hex dump and writes the
382 data described into a <application>libpcap</application>-style
383 capture file.</para>
384 <indexterm zone="wireshark text2pcap">
385 <primary sortas="b-text2pcap">text2pcap</primary>
386 </indexterm>
387 </listitem>
388 </varlistentry>
389
390 <varlistentry id="tshark">
391 <term><command>tshark</command></term>
392 <listitem>
393 <para>is a TTY-mode network protocol analyzer. It lets you capture
394 packet data from a live network or read packets from a
395 previously saved capture file.</para>
396 <indexterm zone="wireshark tshark">
397 <primary sortas="b-tshark">tshark</primary>
398 </indexterm>
399 </listitem>
400 </varlistentry>
401
402 <varlistentry id="wireshark-prog">
403 <term><command>wireshark</command></term>
404 <listitem>
405 <para>is a GUI network protocol analyzer. It lets you interactively
406 browse packet data from a live network or from a previously
407 saved capture file.</para>
408 <indexterm zone="wireshark wireshark-prog">
409 <primary sortas="b-wireshark">wireshark</primary>
410 </indexterm>
411 </listitem>
412 </varlistentry>
413
414 <varlistentry id="libwireshark">
415 <term><filename class='libraryfile'>libwireshark.so</filename></term>
416 <listitem>
417 <para>contains functions used by the
418 <application>Wireshark</application> programs to perform filtering and
419 packet capturing.</para>
420 <indexterm zone="wireshark libwireshark">
421 <primary sortas="c-libwireshark">libwireshark.so</primary>
422 </indexterm>
423 </listitem>
424 </varlistentry>
425
426 <varlistentry id="libwiretap">
427 <term><filename class='libraryfile'>libwiretap.so</filename></term>
428 <listitem>
429 <para>is a library being developed as a future replacement for
430 <filename class='libraryfile'>libpcap</filename>, the current
431 standard Unix library for packet capturing. For more information,
432 see the <filename>README</filename> file in the source
433 <filename class='directory'>wiretap</filename> directory.</para>
434 <indexterm zone="wireshark libwiretap">
435 <primary sortas="c-libwiretap">libwiretap.so</primary>
436 </indexterm>
437 </listitem>
438 </varlistentry>
439
440 </variablelist>
441
442 </sect2>
443
444</sect1>
Note: See TracBrowser for help on using the repository browser.