LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-26-2011, 08:25 AM   #1
pawwa
LQ Newbie
 
Registered: Dec 2008
Posts: 15

Rep: Reputation: 0
TCP traceroute with port number


Hi all,

I am wondering why is it that the standard traceroute command that is available in Linux distributions cannot trace with TCP method using some port. For example, I am interested which node in route path is blocking port 22 to some IP:

$ sudo traceroute -nT -p 80 IP
traceroute to IP (IP), 30 hops max, 60 byte packets
1 192.168.1.1 0.253 ms 0.458 ms 0.401 ms
2 * * *
3 * * *
4 * * *
5 * * *
6 * * *

^ It gets stuck on my first router. BUT, if I for example use the tcptraceroute command, it goes further and shows me what node is blocking my access. Of course, I am interested in using standard available commands (prefer traceroute over tcptraceroute in this case) to troubleshoot problems.

What am I missing something here?
 
Old 08-26-2011, 02:56 PM   #2
Skaperen
Senior Member
 
Registered: May 2009
Location: WV, USA
Distribution: Slackware, Ubuntu, Amazon Linux
Posts: 1,850
Blog Entries: 21

Rep: Reputation: 119Reputation: 119
Just use tcptraceroute, then. Or the tcptrace command. Both are available in Ubuntu and some others. Why fret over traceroute which uses ICMP?

Last edited by Skaperen; 08-26-2011 at 02:57 PM.
 
Old 08-27-2011, 04:53 AM   #3
pawwa
LQ Newbie
 
Registered: Dec 2008
Posts: 15

Original Poster
Rep: Reputation: 0
On my workstation and laptop I can use tcptraceroute for sure, but for example on a server that is not connected to the internet I will have to use standard commands, and traceroute has a TCP method (-T or -M tcp) for tracing right?
 
Old 08-29-2011, 11:18 AM   #4
Skaperen
Senior Member
 
Registered: May 2009
Location: WV, USA
Distribution: Slackware, Ubuntu, Amazon Linux
Posts: 1,850
Blog Entries: 21

Rep: Reputation: 119Reputation: 119
Quote:
Originally Posted by pawwa View Post
On my workstation and laptop I can use tcptraceroute for sure, but for example on a server that is not connected to the internet I will have to use standard commands, and traceroute has a TCP method (-T or -M tcp) for tracing right?
That is a newer added feature as far as I know, so not all systems would have that option. Is it not working where it should work?
 
Old 08-30-2011, 03:31 AM   #5
pawwa
LQ Newbie
 
Registered: Dec 2008
Posts: 15

Original Poster
Rep: Reputation: 0
^ Nop, it is not working. I just thought that someone had already stumbled upon this issue and resolved the mystery :-)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
tcp client socket : how to get own port number ?? vlyamtse Programming 2 10-01-2010 08:26 PM
[SOLVED] average number of hosts that respond to pings during a traceroute icygalz Linux - Newbie 1 02-27-2010 04:21 AM
specification of local and foreign ip addresses and port number for tcp adilturbo Linux - Networking 7 12-20-2006 06:20 AM
How to limit the number of TCP connections for a certain port? mussons Linux - Security 1 01-28-2004 07:27 AM
close port 6000/tcp 515/tcp SchwipSchwap Linux - Newbie 1 09-12-2002 09:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration