LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 09-27-2004, 08:58 AM   #1
gottin
Member
 
Registered: May 2004
Location: Sofia / Bulgaria
Distribution: Fedora Core 5
Posts: 38

Rep: Reputation: 15
mtr / traceroute confusion :(


hi u all,

Today I faced a kind of strange problem for me.

I'll start with a simble topology.
WinPC - linux router - access concentrator - PC

There's an Apache web server on the WinPC. From the linux router I have access to the web server, from the PC I have ping to the WinPC. However, traceroutes from PC to WinPC can reach only the access concentrator, mtr from PC to WinPC traces the pat to the WinPC.

Also, when I try #nmap -p 80 <winPC ip> -> host down. At the same time I can lynx from the linux router and access the web serer.

Is there someone who has an idea why this difference is between the work of traceroute and mtr, and of course an idea why all these strange problems could be!
 
Old 09-27-2004, 01:25 PM   #2
bastard23
Member
 
Registered: Mar 2003
Distribution: Debian
Posts: 275

Rep: Reputation: 30
Hello,

It's hard to tell what's going on from your description. Could you describe the links a little more? What are the IP addresses (mangle them if you don't want to show internet IPs). Is the access concentrator a layer 2 device (an ethernet switch/hub/repeater) or a layer 3 (IP networking, cisco/linux box)?

Now for my guess. Assuming the access concentrator is like an ethernet hub, it only knows about ethernet (or your device's) MAC address. You need to turn on proxy arp. This would be if the linux router, winPC, and PC are on the same IP subnet. The linux router knows to forward packets from the WinPC, but the PC and concentrator don't know how to get to the WinPC (as it is hidden on the physical level by the linux router).

So try, as root:
echo 1 > /proc/sys/net/ipv4/conf/all/proxy_arp

I really don't know if this is the proper solution (or a solution at all) unless you describe the network a little more.

Hope this helps,
chris
 
Old 09-27-2004, 02:21 PM   #3
gottin
Member
 
Registered: May 2004
Location: Sofia / Bulgaria
Distribution: Fedora Core 5
Posts: 38

Original Poster
Rep: Reputation: 15
ok bastard23, I'll try to decribe the net with ips

winPC - ip1 212.36.29.108
ip2 192.168.7.4

192.168.7.1 eth0 - linux router - eth1 10.10.0.200

AC - ip 10.10.0.1

PC - conected to AC with ip 10.10.0.236
-----------------------------------------------------------
in the AC I have a static route: dst-address=212.36.29.108 gw=10.10.0.200
in the linux router I have S route: dst-address=212.36.29.108 gw=<dev>eth0

and again what I do:
PC#mtr 212.36.29.108
1. 10.10.0.1
2. 10.10.0.200
3 . 212.36.29.108

PC#traceroute 212.36.29.108
1. 10.10.0.1
2. *.*.*.*
3 * * * *

PC# ping 212.36.29.108
-> everything is fine

PC# try to access the web server on 212.36.29.108 -> nothing, just nothing
Linux router#lynx 212.36.29.108 -> everyghing works fine and OK
------------------------------------------------------------------------------------------------------------

So, I just have no idea. It smells like a kind of bug, but I'm still not sure and don't want it to be a bug .

again, any ideas?
 
Old 09-28-2004, 12:59 AM   #4
bastard23
Member
 
Registered: Mar 2003
Distribution: Debian
Posts: 275

Rep: Reputation: 30
It's late for me, but different traceroute's use different protocols to test this.

Originally it used icmp, but with the use of NAT's icmp ends up being blocked too often. It may be using UDP. If UDP doesn't make it through, then TCP might not make it through.

I may get a chance to test this theory tomorrow (if debian has mtr).

Good Luck,
chris

PS I'm pretty sure my current DSL setup is a little borked with icmp's. Not uncommon.

PPS (edit): run "tcpdump -s0 -w <some file name> -i eth1 host 10.10.0.236" while you test it. Use "ethereal" to look at the output in <some file name>

Last edited by bastard23; 09-28-2004 at 01:02 AM.
 
  


Reply



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
best har/drv for suse 9.2 on a dfi mtr/brd sierra92108 Linux - Hardware 6 01-11-2005 08:25 PM
If I use MTR when SUed into root, am I at risk on the net? eBopBob Linux - Software 1 08-24-2004 12:47 PM
traceroute or mtr Alien18 Linux - Newbie 0 05-26-2004 08:50 PM
? about MTR "matts traceroute" text mode. Joi Linux - Newbie 2 11-24-2003 12:09 AM
Traceroute for RH 7.3 aushelp Linux - Networking 2 08-11-2002 02:40 PM

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

All times are GMT -5. The time now is 10:19 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
Open Source Consulting | Domain Registration