[3bba7e2] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[ff769b8c] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
[3bba7e2] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
| 7 | <!ENTITY traceroute-download-http "http://gd.tuwien.ac.at/platform/sun/packages/solaris/freeware/SOURCES/traceroute-&traceroute-version;.tar.gz">
|
---|
| 8 | <!ENTITY traceroute-download-ftp "ftp://ftp.ee.lbl.gov/traceroute-&traceroute-version;.tar.gz">
|
---|
[28ce643] | 9 | <!ENTITY traceroute-md5sum "964d599ef696efccdeebe7721cd4828d">
|
---|
[726be18] | 10 | <!ENTITY traceroute-size "74 KB">
|
---|
| 11 | <!ENTITY traceroute-buildsize "540 KB">
|
---|
| 12 | <!ENTITY traceroute-time "0.01 SBU">
|
---|
[3bba7e2] | 13 | ]>
|
---|
| 14 |
|
---|
[6998c44a] | 15 | <sect1 id="traceroute" xreflabel="Traceroute-&traceroute-version;">
|
---|
[a0f03b0] | 16 | <sect1info>
|
---|
[5cd0959d] | 17 | <othername>$LastChangedBy$</othername>
|
---|
| 18 | <date>$Date$</date>
|
---|
[a0f03b0] | 19 | </sect1info>
|
---|
[00bb024c] | 20 | <?dbhtml filename="traceroute.html"?>
|
---|
[6998c44a] | 21 | <title>Traceroute-&traceroute-version;</title>
|
---|
[7887ef0e] | 22 | <indexterm zone="traceroute">
|
---|
| 23 | <primary sortas="a-Traceroute">Traceroute</primary></indexterm>
|
---|
[f45b1953] | 24 |
|
---|
[3bba7e2] | 25 | <sect2>
|
---|
| 26 | <title>Introduction to <application>Traceroute</application></title>
|
---|
| 27 |
|
---|
| 28 | <para>The <application>Traceroute</application> package contains a program
|
---|
| 29 | which is used to display the network route that packets take to reach a
|
---|
| 30 | specified host. This is a standard network troubleshooting tool. If you find
|
---|
| 31 | yourself unable to connect to another system, traceroute can help pinpoint
|
---|
| 32 | the problem.</para>
|
---|
| 33 |
|
---|
| 34 | <sect3><title>Package information</title>
|
---|
| 35 | <itemizedlist spacing='compact'>
|
---|
| 36 | <listitem><para>Download (HTTP): <ulink
|
---|
| 37 | url="&traceroute-download-http;"/></para></listitem>
|
---|
| 38 | <listitem><para>Download (FTP): <ulink
|
---|
| 39 | url="&traceroute-download-ftp;"/></para></listitem>
|
---|
[28ce643] | 40 | <listitem><para>Download MD5 sum: &traceroute-md5sum;</para></listitem>
|
---|
[3bba7e2] | 41 | <listitem><para>Download size: &traceroute-size;</para></listitem>
|
---|
[726be18] | 42 | <listitem><para>Estimated disk space required:
|
---|
[3bba7e2] | 43 | &traceroute-buildsize;</para></listitem>
|
---|
| 44 | <listitem><para>Estimated build time:
|
---|
| 45 | &traceroute-time;</para></listitem></itemizedlist>
|
---|
| 46 | </sect3>
|
---|
| 47 |
|
---|
| 48 | </sect2>
|
---|
| 49 |
|
---|
| 50 | <sect2>
|
---|
| 51 | <title>Installation of <application>Traceroute</application></title>
|
---|
| 52 |
|
---|
| 53 | <para>Install <application>Traceroute</application> by running the following
|
---|
| 54 | commands:</para>
|
---|
| 55 |
|
---|
[c54e3c9] | 56 | <screen><userinput><command>sed -i -e 's/-o bin/-o root/' Makefile.in &&
|
---|
[3bba7e2] | 57 | ./configure --prefix=/usr &&
|
---|
[7887ef0e] | 58 | make</command></userinput></screen>
|
---|
| 59 |
|
---|
| 60 | <para>Now, as the root user:</para>
|
---|
| 61 |
|
---|
| 62 | <screen><userinput role='root'><command>make install &&
|
---|
[3bba7e2] | 63 | make install-man</command></userinput></screen>
|
---|
| 64 |
|
---|
| 65 | </sect2>
|
---|
| 66 |
|
---|
| 67 | <sect2>
|
---|
| 68 | <title>Command explanations</title>
|
---|
| 69 |
|
---|
[c54e3c9] | 70 | <para><command>sed 's/-o bin/-o root/' Makefile.in</command>:
|
---|
[3bba7e2] | 71 | Adjusts the <filename>Makefile</filename> so that the program is installed
|
---|
[726be18] | 72 | with user root instead of user bin (which doesn't exist on a default
|
---|
[3bba7e2] | 73 | <acronym>LFS</acronym> system).</para>
|
---|
| 74 |
|
---|
| 75 | <para><command>make install</command>: Installs <command>traceroute</command>
|
---|
[726be18] | 76 | with <acronym>SUID</acronym> set to root in the
|
---|
| 77 | <filename class='directory'>/usr/sbin</filename> directory. This makes it
|
---|
| 78 | possible for all users to execute <command>traceroute</command>. For absolute
|
---|
| 79 | security, turn off the <acronym>SUID</acronym> bit in
|
---|
| 80 | <command>traceroute</command>'s file permissions with the command:</para>
|
---|
| 81 |
|
---|
[7887ef0e] | 82 | <screen><userinput role='root'><command>chmod 0755 /usr/sbin/traceroute</command></userinput></screen>
|
---|
[3bba7e2] | 83 |
|
---|
| 84 | <para>The risk is that if a security problem such as a buffer overflow was
|
---|
| 85 | ever found in the <application>Traceroute</application> code, a regular user
|
---|
| 86 | on your system could gain root access if the program is
|
---|
| 87 | <acronym>SUID</acronym> root. Of course, removing
|
---|
[c54e3c9] | 88 | the <acronym>SUID</acronym> permission also makes it impossible for users other
|
---|
| 89 | than root to utilize <command>traceroute</command>, so decide what's right for
|
---|
| 90 | your individual situation.</para>
|
---|
| 91 |
|
---|
| 92 | <para>The goal of <acronym>BLFS</acronym> is to be completely
|
---|
| 93 | <acronym>FHS</acronym> compliant, so if you do leave the
|
---|
| 94 | <command>traceroute</command> binary <acronym>SUID</acronym> root, then you
|
---|
| 95 | should move <filename>traceroute</filename> to
|
---|
| 96 | <filename class='directory'>/usr/bin</filename> with the following command:
|
---|
| 97 | </para>
|
---|
[726be18] | 98 |
|
---|
[7887ef0e] | 99 | <screen><userinput role='root'><command>mv /usr/sbin/traceroute /usr/bin</command></userinput></screen>
|
---|
[3bba7e2] | 100 |
|
---|
| 101 | <para>This ensures that the binary is in the path for non-root users.</para>
|
---|
| 102 |
|
---|
| 103 | </sect2>
|
---|
| 104 |
|
---|
| 105 | <sect2>
|
---|
| 106 | <title>Contents</title>
|
---|
| 107 |
|
---|
[7887ef0e] | 108 | <segmentedlist>
|
---|
| 109 | <segtitle>Installed Program</segtitle>
|
---|
| 110 | <segtitle>Installed Libraries</segtitle>
|
---|
| 111 | <segtitle>Installed Directories</segtitle>
|
---|
| 112 |
|
---|
| 113 | <seglistitem>
|
---|
| 114 | <seg>traceroute</seg>
|
---|
| 115 | <seg>None</seg>
|
---|
| 116 | <seg>None</seg>
|
---|
| 117 | </seglistitem>
|
---|
| 118 | </segmentedlist>
|
---|
| 119 |
|
---|
| 120 | <variablelist>
|
---|
| 121 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 122 | <?dbfo list-presentation="list"?>
|
---|
| 123 |
|
---|
| 124 | <varlistentry id="traceroute-prog">
|
---|
| 125 | <term><command>traceroute</command></term>
|
---|
| 126 | <listitem><para>does basically what it says: it traces the route your packets
|
---|
| 127 | take from the host you are working on to another host on a network, showing
|
---|
| 128 | all the intermediate hops (gateways) along the way.</para>
|
---|
| 129 | <indexterm zone="traceroute traceroute-prog">
|
---|
| 130 | <primary sortas="b-traceroute">traceroute</primary>
|
---|
| 131 | </indexterm></listitem>
|
---|
| 132 | </varlistentry>
|
---|
| 133 | </variablelist>
|
---|
[3bba7e2] | 134 |
|
---|
| 135 | </sect2>
|
---|
[f45b1953] | 136 |
|
---|
| 137 | </sect1>
|
---|
| 138 |
|
---|