netdev
[Top] [All Lists]

Re: icmp_unreachable uses wrong ip

To: "J. Simonetti" <jeroens@xxxxxxxxxxxxxxxxx>
Subject: Re: icmp_unreachable uses wrong ip
From: Hasso Tepper <hasso@xxxxxxxxx>
Date: Mon, 2 May 2005 16:59:05 +0300
Cc: netdev@xxxxxxxxxxx
In-reply-to: <1115040079.5620.11.camel@jeroens.office.netland.nl>
Organization: Elion Enterprises Ltd.
References: <1115040079.5620.11.camel@jeroens.office.netland.nl>
Sender: netdev-bounce@xxxxxxxxxxx
User-agent: KMail/1.8
J. Simonetti wrote:
> I've recently come to notice that traceroutes through a linux router use
> the wrong ip (ip of exitting interface) wich should actually be the ip
> of the incomming interface.

There is nothing _wrong_ with this behaviour. Linux just behaves this way.

> I've found a trivial patch (attached) wich resolves this. Perhaps this
> is something to include (or have a sysctl to toggle this behaviour). I
> unfortunately have no knowledge of programming, so the sysctl option
> would have te be done by a volunteer.

Similar patches have been posted to the list repeatedly AFAIK with no any 
response from developers. Can someone enlighten us why? Is there something 
wrong with it? This is the feature people administrating routers would like 
to have. It makes debugging complicated topologies much easier and all 
routers I have seen behave this way.

I'm attaching patch which was posted to the list some time ago. I'm using it 
for some time already. I can't find the post from the archive though at the 
moment.


-- 
Hasso Tepper
Elion Enterprises Ltd.
WAN administrator

Attachment: linux-2.4.26-icmperrors.patch
Description: Text Data

<Prev in Thread] Current Thread [Next in Thread>