Re: Kernel Routing sequence

From: Martijn van Oosterhout
Date: Fri Aug 12 2005 - 01:48:51 EST


On Fri, Aug 12, 2005 at 08:49:02AM +0300, Al Boldi wrote:
> Al Boldi wrote:
> >
> > ping from 10.0.2.1/8 to 10.0.0.1 should route out to 10.0.0.0/8 and
> > not to 10.0.1.0/24 even if the route lists before 10.0.0.0/8!
> >
> Correction:
> ping from 10.0.1.2/8 to 10.0.0.1 should route out to 10.0.0.0/8 and
> not to 10.0.1.0/24 even if the route lists before 10.0.0.0/8!

It does. I'm afraid you have people very confused. You posted your
routing table and then asked why a packet *from* somewhere did
something. Where the packet is from is irrelevent (unless you have
rules), only the destination IP.

Now, from the beginning:
- What is your routing table
- Where are you trying to get to and
- Why do you think it's going out the wrong interface? Show tcpdump
output or something?

Hope this helps,
--
Martijn van Oosterhout <kleptog@xxxxxxxxx> http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

Attachment: pgp00000.pgp
Description: PGP signature