[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;">
|
---|
[2f6a5b0] | 16 | <?dbhtml filename="traceroute.html"?>
|
---|
[50b8d8b] | 17 |
|
---|
[2f6a5b0] | 18 | <sect1info>
|
---|
| 19 | <othername>$LastChangedBy$</othername>
|
---|
| 20 | <date>$Date$</date>
|
---|
| 21 | </sect1info>
|
---|
[50b8d8b] | 22 |
|
---|
[2f6a5b0] | 23 | <title>Traceroute-&traceroute-version;</title>
|
---|
[50b8d8b] | 24 |
|
---|
[2f6a5b0] | 25 | <indexterm zone="traceroute">
|
---|
| 26 | <primary sortas="a-Traceroute">Traceroute</primary>
|
---|
| 27 | </indexterm>
|
---|
| 28 |
|
---|
| 29 | <sect2 role="package">
|
---|
| 30 | <title>Introduction to Traceroute</title>
|
---|
[50b8d8b] | 31 |
|
---|
[1065a91] | 32 | <para>The <application>Traceroute</application> package contains a program
|
---|
| 33 | which is used to display the network route that packets take to reach a
|
---|
| 34 | specified host. This is a standard network troubleshooting tool. If you find
|
---|
| 35 | yourself unable to connect to another system, traceroute can help pinpoint
|
---|
[2f6a5b0] | 36 | the problem.</para>
|
---|
[50b8d8b] | 37 |
|
---|
[2f6a5b0] | 38 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 39 | <itemizedlist spacing="compact">
|
---|
| 40 | <listitem>
|
---|
| 41 | <para>Download (HTTP): <ulink url="&traceroute-download-http;"/></para>
|
---|
| 42 | </listitem>
|
---|
| 43 | <listitem>
|
---|
| 44 | <para>Download (FTP): <ulink url="&traceroute-download-ftp;"/></para>
|
---|
| 45 | </listitem>
|
---|
| 46 | <listitem>
|
---|
| 47 | <para>Download MD5 sum: &traceroute-md5sum;</para>
|
---|
| 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>Download size: &traceroute-size;</para>
|
---|
| 51 | </listitem>
|
---|
| 52 | <listitem>
|
---|
| 53 | <para>Estimated disk space required: &traceroute-buildsize;</para>
|
---|
| 54 | </listitem>
|
---|
| 55 | <listitem>
|
---|
| 56 | <para>Estimated build time: &traceroute-time;</para>
|
---|
| 57 | </listitem>
|
---|
| 58 | </itemizedlist>
|
---|
[50b8d8b] | 59 |
|
---|
[2f6a5b0] | 60 | </sect2>
|
---|
[50b8d8b] | 61 |
|
---|
[2f6a5b0] | 62 | <sect2 role="installation">
|
---|
| 63 | <title>Installation of Traceroute</title>
|
---|
| 64 |
|
---|
[1065a91] | 65 | <para>Install <application>Traceroute</application> by running the following
|
---|
[2f6a5b0] | 66 | commands:</para>
|
---|
| 67 |
|
---|
| 68 | <screen><userinput>sed -i -e 's/-o bin/-o root/' Makefile.in &&
|
---|
[3bba7e2] | 69 | ./configure --prefix=/usr &&
|
---|
[2f6a5b0] | 70 | make</userinput></screen>
|
---|
[50b8d8b] | 71 |
|
---|
[2f6a5b0] | 72 | <para>Now, as the <systemitem class="username">root</systemitem> user:</para>
|
---|
| 73 |
|
---|
| 74 | <screen role='root'><userinput>make install &&
|
---|
| 75 | make install-man</userinput></screen>
|
---|
[50b8d8b] | 76 |
|
---|
[2f6a5b0] | 77 | </sect2>
|
---|
[50b8d8b] | 78 |
|
---|
[2f6a5b0] | 79 | <sect2 role="commands">
|
---|
| 80 | <title>Command Explanations</title>
|
---|
[50b8d8b] | 81 |
|
---|
[1065a91] | 82 | <para><command>sed 's/-o bin/-o root/' Makefile.in</command>:
|
---|
| 83 | Adjusts the <filename>Makefile</filename> so that the program is installed
|
---|
[823b1a3] | 84 | with user <systemitem class='username'>root</systemitem> owning the files
|
---|
| 85 | instead of user <systemitem class='username'>bin</systemitem>
|
---|
| 86 | (which doesn't exist on a default LFS system).</para>
|
---|
[50b8d8b] | 87 |
|
---|
| 88 | <para><command>make install</command>: Installs <command>traceroute</command>
|
---|
[1065a91] | 89 | with SUID set to <systemitem class="username">root</systemitem> in the
|
---|
| 90 | <filename class='directory'>/usr/sbin</filename> directory. This makes it
|
---|
| 91 | possible for all users to execute <command>traceroute</command>. For absolute
|
---|
| 92 | security, turn off the SUID bit in <command>traceroute</command>'s file permissions
|
---|
[2f6a5b0] | 93 | with the command:</para>
|
---|
[50b8d8b] | 94 |
|
---|
[e3353b3] | 95 | <screen role='root'><userinput>chmod -v 0755 /usr/sbin/traceroute</userinput></screen>
|
---|
[50b8d8b] | 96 |
|
---|
[1065a91] | 97 | <para>The risk is that if a security problem such as a buffer overflow was
|
---|
| 98 | ever found in the <application>Traceroute</application> code, a regular user
|
---|
[2f6a5b0] | 99 | on your system could gain <systemitem class="username">root</systemitem>
|
---|
[1065a91] | 100 | access if the program is SUID <systemitem class="username">root</systemitem>.
|
---|
| 101 | Of course, removing the SUID permission also makes it impossible for users other
|
---|
| 102 | than <systemitem class="username">root</systemitem> to utilize
|
---|
| 103 | <command>traceroute</command>, so decide what's right for
|
---|
[2f6a5b0] | 104 | your individual situation.</para>
|
---|
[50b8d8b] | 105 |
|
---|
[1065a91] | 106 | <para>The goal of BLFS is to be completely FHS compliant, so if you do leave the
|
---|
| 107 | <command>traceroute</command> binary SUID <systemitem
|
---|
| 108 | class="username">root</systemitem>, then you should move
|
---|
[50b8d8b] | 109 | <filename>traceroute</filename> to <filename class='directory'>/usr/bin</filename>
|
---|
[2f6a5b0] | 110 | with the following command:</para>
|
---|
[50b8d8b] | 111 |
|
---|
[e3353b3] | 112 | <screen role='root'><userinput>mv -v /usr/sbin/traceroute /usr/bin</userinput></screen>
|
---|
[50b8d8b] | 113 |
|
---|
[2f6a5b0] | 114 | <para>This ensures that the binary is in the path for non-root users.</para>
|
---|
[50b8d8b] | 115 |
|
---|
[2f6a5b0] | 116 | </sect2>
|
---|
[50b8d8b] | 117 |
|
---|
[2f6a5b0] | 118 | <sect2 role="content">
|
---|
| 119 | <title>Contents</title>
|
---|
| 120 |
|
---|
| 121 | <segmentedlist>
|
---|
| 122 | <segtitle>Installed Program</segtitle>
|
---|
| 123 | <segtitle>Installed Libraries</segtitle>
|
---|
| 124 | <segtitle>Installed Directories</segtitle>
|
---|
[50b8d8b] | 125 |
|
---|
[2f6a5b0] | 126 | <seglistitem>
|
---|
| 127 | <seg>traceroute</seg>
|
---|
| 128 | <seg>None</seg>
|
---|
| 129 | <seg>None</seg>
|
---|
| 130 | </seglistitem>
|
---|
| 131 | </segmentedlist>
|
---|
[50b8d8b] | 132 |
|
---|
[2f6a5b0] | 133 | <variablelist>
|
---|
| 134 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 135 | <?dbfo list-presentation="list"?>
|
---|
| 136 | <?dbhtml list-presentation="table"?>
|
---|
[50b8d8b] | 137 |
|
---|
[2f6a5b0] | 138 | <varlistentry id="traceroute-prog">
|
---|
| 139 | <term><command>traceroute</command></term>
|
---|
| 140 | <listitem>
|
---|
[1065a91] | 141 | <para>does basically what it says: it traces the route your packets
|
---|
| 142 | take from the host you are working on to another host on a network, showing
|
---|
[2f6a5b0] | 143 | all the intermediate hops (gateways) along the way.</para>
|
---|
| 144 | <indexterm zone="traceroute traceroute-prog">
|
---|
| 145 | <primary sortas="b-traceroute">traceroute</primary>
|
---|
| 146 | </indexterm>
|
---|
| 147 | </listitem>
|
---|
| 148 | </varlistentry>
|
---|
[50b8d8b] | 149 |
|
---|
[2f6a5b0] | 150 | </variablelist>
|
---|
| 151 |
|
---|
| 152 | </sect2>
|
---|
[f45b1953] | 153 |
|
---|
| 154 | </sect1>
|
---|
| 155 |
|
---|