From: Andrew andrewd@uccsda.org
To: lartc@vger.kernel.org
Subject: [LARTC] Can't one filter based on a single destination address?
Date: Mon, 11 Dec 2000 19:58:08 +0000 [thread overview]
Message-ID: <marc-lartc-98373938217024@msgid-missing> (raw)
<PRE>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:
><i>ip rule add from 0.0.0.0/0 to 192.168.107.28 lookup main prio 110
</I>
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:
><i>ip rule add from 0.0.0.0/0 to 192.168.107.0/24 lookup main prio 110
</I>
then I can ping fine. Thinking that I might be required to specify a mask,
I even tried the following version:
><i>ip rule add from 0.0.0.0/0 to 192.168.107.28/32 lookup main prio 110
</I>
No luck. Does any one know what's going on?
-Andrew
--
<A HREF="mailto:depaan@bibleinfo.com">depaan@bibleinfo.com</A>
--------------------------------------------------------------
Want answers to life's big questions? Visit www.bibleinfo.com.
</PRE>
reply other threads:[~2000-12-11 19:58 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-lartc-98373938217024@msgid-missing \
--to=lartc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.