Traceroute Time Outs - All Hops

Asked by Adam

Howdy,

I'm have this funky issue with traceroute on my Ubuntu Install 7.04 (Feisty Fawn). I'm able to perform PING request fine. Just when I perform any TRACEROUTE request, I get all time out errors. Even on from my local computer to my router shows time out.

I have DSL with modem connected to a router using PPPoE connection. No static IP (everything is dynamic). I'm able to connect to the internet fine, via firefox, gAIM, FTP, SSH, SFTP and so on. Just any TRACEROUTE is not working. Any ideas?

adam@solidnet:~$ traceroute google.com
traceroute: icmp socket: Operation not permitted
adam@solidnet:~$ sudo traceroute google.com
traceroute to google.com (64.233.187.99), 64 hops max, 40 byte packets
 1 * * *
 2 * * *
 3 * * *
 4 * * *
 5 * * *
(and goes on to 64 with time outs)

Any ideas on to what could solve the problem?

Thanks,
Adam

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Wrwrwr
Solved:
Last query:
Last reply:
Revision history for this message
Wrwrwr (wrwrwr) said :
#1

Why wouldn't it run without sudo, that's not normal, like it got suid or sgid, maybe try reinstalling traceroute.

Revision history for this message
Wrwrwr (wrwrwr) said :
#2

Try with different probing methods maybe some firewall blocks default probes (UDP 33434+) or answers (usually ICMP not reachable, time exceeded). Some options to do that: -I, -T, -U. Full list is the manual under "list of available methods".

sudo traceroute -I ... should work whenever ping works

Revision history for this message
Adam (adam12la) said :
#3

Hey,

Still no luck. I removed traceroute than re-installed it. I also tried the -I (upper case i) and still no luck.

Do you think, this has to do anything with my network card? Like etho vs loop (lo)?

adam@solidnet:~$ sudo apt-get install traceroute
Reading package lists... Done
Building dependency tree
Reading state information... Done
traceroute is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
adam@solidnet:~$ sudo apt-get remove traceroute
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
  traceroute
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
Need to get 0B of archives.
After unpacking 115kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 126742 files and directories currently installed.)
Removing traceroute ...
adam@solidnet:~$ sudo apt-get install traceroute
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
  traceroute
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 23.7kB of archives.
After unpacking 115kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com feisty/main traceroute 1.4a12-21build1 [23.7kB]
Fetched 23.7kB in 0s (26.8kB/s)
Selecting previously deselected package traceroute.
(Reading database ... 126732 files and directories currently installed.)
Unpacking traceroute (from .../traceroute_1.4a12-21build1_i386.deb) ...
Setting up traceroute (1.4a12-21build1) ...

adam@solidnet:~$ traceroute google.com
traceroute: icmp socket: Operation not permitted
adam@solidnet:~$ traceroute -I google.com
traceroute: icmp socket: Operation not permitted
adam@solidnet:~$ sudo traceroute google.com
traceroute to google.com (64.233.167.99), 64 hops max, 40 byte packets
 1 * * *
 2 * * *
 3 * * *
 4 * *
adam@solidnet:~$ sudo traceroute -I google.com
unknown protocol google.com
adam@solidnet:~$

Thanks,
Adam

Revision history for this message
Wrwrwr (wrwrwr) said :
#4

Are you sure you're using the traceroute you've just installed?

$ traceroute
Version 1.4a12
Usage: traceroute [-dFIlnrvx] [-g gateway] [-i iface] [-f first_ttl]
 [-m max_ttl] [ -p port] [-q nqueries] [-s src_addr] [-t tos]
 [-w waittime] [-z pausemsecs] host [packetlen]

$ traceroute -I google.com
traceroute: Warning: google.com has multiple addresses; using 72.14.207.99
traceroute to google.com (72.14.207.99), 30 hops max, 40 byte packets
...

Do you maybe have an empty /etc/protocols file?

Revision history for this message
Adam (adam12la) said :
#5

Hey,

/etc/protocols is not empty.

The traceroute I have installed with version if posted below. All I did to install it was use

$ sudo apt-get install traceroute

adam@solidnet:~$ sudo traceroute --help
Password:
6.3.10 GOLD+emf_prototrace0.2+sl_tostrace0.1: TrACESroute
Usage: traceroute [-adnruvAMOPQU] [-w wait] [-S start_ttl] [-m max_ttl] [-p port#] [-q nqueries] [-t tos] [-s src_addr] [-I proto] host [data size]
      -a: Abort after 10 consecutive hops without answer
      -d: Socket level debugging (root only)
      -S: Set start TTL (default 1)
      -m: Set maximum TTL (default 30)
      -n: Report IP addresses only (not hostnames)
      -p: Use an alternate UDP port
      -q: Set the number of queries at each TTL (default 3)
      -r: Set Dont Route option
      -s: Set your source address
      -t: Set the IP TOS field (default 0)
      -u: Use microsecond timestamps
      -v: Verbose
      -w: Set timeout for replies (default 5 sec)
      -A: Report AS# at each hop (from GRR)
      -I: use this IP protocol instead of UDP
      -M: Do RFC1191 path MTU discovery
      -O: Report owner at each hop (from DNS)
      -P: Parallel probing
      -Q: Report delay statistics at each hop (min/avg+-stddev/max) (ms)
      -T: Terminator (line end terminator)
      -U: Go to next hop on any success
adam@solidnet:~$

Thanks,
Adam

Revision history for this message
Best Wrwrwr (wrwrwr) said :
#6

You may have traceroute-nanog (http://packages.ubuntu.com/feisty/net/traceroute-nanog) installed and it takes precedence.

Uninstall it: sudo apt-get remove traceroute-nanog

Or locate the standard one and run it using full path.

Or use galternatives or something similar to select the default one.

Or use this one, i don't really know how do you use it (but it seems to have more capabilities than the standard one).

Revision history for this message
Adam (adam12la) said :
#7

Sweet Wrwrw!

It works. I un-installed the nanog and using the -I works fine :)

Thanks again,
Adam

Revision history for this message
Adam (adam12la) said :
#8

Thanks Wrwrwr, that solved my question.