2002-03-22 10:21:17

by Joerg

[permalink] [raw]
Subject: I want my martians

Hi List,
as I wrote in
http://marc.theaimsgroup.com/?l=linux-net&m=101672497502530&w=2 I'm trying
to send packets from one network interface to another one on the same
machine over the external network. This almost works except for the fact
that the Linux IP stack considers these packets to be "martians" and drops
them. While this might be a good idea for normal operation it prevents me
from doing what I want: network latency and reliability measurements.

So, is there a way to convince the Linux kernel that these martians are
not here to take over the world but just harmless little packets that
should be delivered to the waiting application?

Regards
J?rg

=====
--
Regards
Joerg


__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards?
http://movies.yahoo.com/


2002-03-22 21:41:09

by Vojtech Pavlik

[permalink] [raw]
Subject: Re: I want my martians

On Fri, Mar 22, 2002 at 02:20:58AM -0800, Joerg Pommnitz wrote:
> Hi List,
> as I wrote in
> http://marc.theaimsgroup.com/?l=linux-net&m=101672497502530&w=2 I'm trying
> to send packets from one network interface to another one on the same
> machine over the external network. This almost works except for the fact
> that the Linux IP stack considers these packets to be "martians" and drops
> them. While this might be a good idea for normal operation it prevents me
> from doing what I want: network latency and reliability measurements.
>
> So, is there a way to convince the Linux kernel that these martians are
> not here to take over the world but just harmless little packets that
> should be delivered to the waiting application?

for a in /proc/sys/net/ipv4/conf/*/rp_filter; do echo 0 > $a; done

--
Vojtech Pavlik
SuSE Labs

2002-03-27 11:23:22

by Joerg

[permalink] [raw]
Subject: Re: I want my martians

"Emmanuel Papirakis" <[email protected]>

> echo 0 > /proc/sys/net/ipv4/conf/eth0/rp_filter
>
> (You want to disable reverse-path filtering.)
>
> And maybe:
>
> echo 0 > /proc/sys/net/ipv4/conf/eth0/log_martians
>
> Papi

"Vojtech Pavlik" <[email protected]>

>
> for a in /proc/sys/net/ipv4/conf/*/rp_filter; do echo 0 > $a; done
>

I tried this before. It does not help for packets destined for the
same host.

Regards
J?rg

__________________________________________________________________

Gesendet von Yahoo! Mail - http://mail.yahoo.de
Ihre E-Mail noch individueller? - http://domains.yahoo.de