Networking Forums

Networking Forums > Computer Networking > Linux Networking > traceroute reply in both incomming and outgoing interface

Reply
Thread Tools Display Modes

traceroute reply in both incomming and outgoing interface

 
 
Jan-Willem Michels
Guest
Posts: n/a

 
      04-01-2004, 12:12 PM

Hi there all,

I want my linux-box when i use traceroute to reply with both on my incomming
interface and my outgoing interface.

Now when i use traceroute my linux only responds once, and with the nearest
interface to me
Let's say eth0 10.0.0.10. But I want to also see wich outgoing interface it
uses. For instance eth1 xx.xx.xx.xx or eth2 yy.yy.yy.yy. So the same box has
to respond twice.
On a cisco router this is not a strange thing to do.
Is this possible on a Linux?

Thanks for your time

Jan-Willem


 
Reply With Quote
 
 
 
 
Alex Harsch
Guest
Posts: n/a

 
      04-01-2004, 01:50 PM
Jan-Willem Michels wrote:

>
> Hi there all,
>
> I want my linux-box when i use traceroute to reply with both on my
> incomming interface and my outgoing interface.
>
> Now when i use traceroute my linux only responds once, and with the
> nearest interface to me
> Let's say eth0 10.0.0.10. But I want to also see wich outgoing interface
> it uses. For instance eth1 xx.xx.xx.xx or eth2 yy.yy.yy.yy. So the same
> box has to respond twice.
> On a cisco router this is not a strange thing to do.
> Is this possible on a Linux?
>
> Thanks for your time
>
> Jan-Willem

Hi,

traceroute increases the time-to-live one-by-one to get one step further
each time. So you have to decrease the TTL twice.
iptables -t mangle -A PREROUTING -j TTL --ttl-dec 1
iptables -t mangle -A POSTROUTING -j TTL --ttl-dec 1

Never tried it before, though. ;-)
Alex


 
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tie UDP reply to incoming interface pk Linux Networking 15 09-16-2009 04:48 PM
Ping reply through the same interface Dmitry Perets Windows Networking 2 08-30-2007 03:31 PM
IP Tables, SNAT, and routing: selecting the outgoing interface galionlibrary@gmail.com Linux Networking 0 03-30-2007 08:58 PM
Bluetooth incomming connections SM Wireless Networks 0 03-30-2006 11:34 AM
IP Alias default outgoing interface? agentbullvi@gmail.com Linux Networking 3 12-28-2005 06:25 PM



1 2 3 4 5 6 7 8 9 10 11