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