* martian packet checks breaks multi-homing
@ 2003-07-01 7:37 Niklas Edmundsson
2003-07-01 9:11 ` Stefan Rompf
2003-07-01 9:22 ` Niklas Edmundsson
0 siblings, 2 replies; 3+ messages in thread
From: Niklas Edmundsson @ 2003-07-01 7:37 UTC (permalink / raw)
To: netdev
Hi!
We are setting up a multi homed server (currently running Linux
2.4.18) connected to several physical networks (due to the fact that
the server is a dhcp server too).
All clients talks to the main interface on the machine, routing is
done by the network equipment.
The problem is that when a client tries to talk to the main interface
of the server (not on the same network), the server tags the packets
as martian source and discards them! It's a perfectly valid packet
since the client is not even aware of the servers extra interface on
the network at this point and thus talks to the main interface via the
default gateway and the normal routing on the campus network.
This feature is desirable if you are doing some sort of routing or
firewalling when there are no reason to talk to the other interface,
but when doing multi-homing it's not what you want if you have an
environment where clients talks to a main interface of a machine to
establish communication (due to higher bandwidth or other reasons).
I haven't even been able to find a way to disable or circumvent the
check other than edit the source (fib_validate_source() is rather hard
to read by the way). It would be nice if there existed a runtime way
to disable it.
I have done this setup a number of times using Solaris and AIX boxes,
and it's a simple thing that really ought to work...
If things are unclear or I have forgotten/missed something just tell
me so and I'll try to clarify.
/Nikke
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Niklas Edmundsson, Admin @ {acc,hpc2n,ing}.umu.se | nikke@hpc2n.umu.se
---------------------------------------------------------------------------
Egotist: Thinks he's in the groove when he's in a rut
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: martian packet checks breaks multi-homing
2003-07-01 7:37 martian packet checks breaks multi-homing Niklas Edmundsson
@ 2003-07-01 9:11 ` Stefan Rompf
2003-07-01 9:22 ` Niklas Edmundsson
1 sibling, 0 replies; 3+ messages in thread
From: Stefan Rompf @ 2003-07-01 9:11 UTC (permalink / raw)
To: Niklas Edmundsson, netdev
Am Dienstag, 1. Juli 2003 09:37 schrieb Niklas Edmundsson:
> The problem is that when a client tries to talk to the main interface
> of the server (not on the same network), the server tags the packets
> as martian source and discards them! It's a perfectly valid packet
> If things are unclear or I have forgotten/missed something just tell
> me so and I'll try to clarify.
Have a look at linux/Documentation/networking/ip-sysctl.txt, rp_filter
Stefan
--
"doesn't work" is not a magic word to explain everything.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: martian packet checks breaks multi-homing
2003-07-01 7:37 martian packet checks breaks multi-homing Niklas Edmundsson
2003-07-01 9:11 ` Stefan Rompf
@ 2003-07-01 9:22 ` Niklas Edmundsson
1 sibling, 0 replies; 3+ messages in thread
From: Niklas Edmundsson @ 2003-07-01 9:22 UTC (permalink / raw)
To: netdev
On Tue, 1 Jul 2003, Niklas Edmundsson wrote:
>
> Hi!
>
> We are setting up a multi homed server (currently running Linux
> 2.4.18) connected to several physical networks (due to the fact that
> the server is a dhcp server too).
<snip>
> I haven't even been able to find a way to disable or circumvent the
> check other than edit the source (fib_validate_source() is rather hard
> to read by the way). It would be nice if there existed a runtime way
> to disable it.
Ignore me. Just after I sent this mail I found
/proc/sys/net/ipv4/conf/*/rp_filter which solves all my problems.
Sorry for the inconvenience.
/Nikke - spanks the paranoid debian startup scripts a bit.
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Niklas Edmundsson, Admin @ {acc,hpc2n,ing}.umu.se | nikke@ing.umu.se
---------------------------------------------------------------------------
There once was a man from Nantucket.You've been talking to Garibaldi!
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-07-01 9:22 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-01 7:37 martian packet checks breaks multi-homing Niklas Edmundsson
2003-07-01 9:11 ` Stefan Rompf
2003-07-01 9:22 ` Niklas Edmundsson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).