From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew andrewd@uccsda.org Date: Mon, 11 Dec 2000 19:58:08 +0000 Subject: [LARTC] Can't one filter based on a single destination address? Message-Id: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org
Greetings:

I'm running kernel 2.2.17 and I've been trying to add a rule which looks up
table main based on a single destination address. Here it is:

>ip rule add from 0.0.0.0/0 to 192.168.107.28 lookup main prio 110


The rule adds fine however it seems that the kernel fails to match the
destination condition. 
Incidentally 192.168.107.28 is the local address of an interface on 
the box where I'm adding the rule. The machine I'm testing from is
on the same physical network and has address 192.168.107.27. I'm using 
ping to test.

With the above rule in place, and a blackhole rule immediately following
it. I can't ping 192.168.107.28 from .27. However if I change the rule 
above to read:

>ip rule add from 0.0.0.0/0 to 192.168.107.0/24 lookup main prio 110

then I can ping fine. Thinking that I might be required to specify a mask,
I even tried the following version:

>ip rule add from 0.0.0.0/0 to 192.168.107.28/32 lookup main prio 110


No luck. Does any one know what's going on?

-Andrew
-- 
depaan@bibleinfo.com
--------------------------------------------------------------
Want answers to life's big questions? Visit www.bibleinfo.com.