All of lore.kernel.org
 help / color / mirror / Atom feed
From: Joseph Card jcard@card-net.org
To: lartc@vger.kernel.org
Subject: [LARTC] help policy rule matching (not?)
Date: Wed, 10 Jan 2001 00:39:17 +0000	[thread overview]
Message-ID: <marc-lartc-98373940416848@msgid-missing> (raw)

<PRE>It seems that ip rules are not matchinig.  Here's what I have:

I start with default rules:
0:	from all lookup local 
32766:	from all lookup main 
32767:	from all lookup default

Then I create a rule with this to catch stuff coming in on eth2 to use
the &quot;mytable2&quot; routing table:
ip ru add from 192.x.x.0/24 dev eth2 table mytable2 pref 200
ip route flush cache

which yeilds:
0:	from all lookup local 
200:	from all iif eth2 lookup mytable2 
32766:	from all lookup main 
32767:	from all lookup default 

mytable2 is (not that it really matters):
216.x.x.56/29 dev eth3  proto kernel  scope link  src 216.x.x.61 
192.x.x.0/24 dev eth2  proto kernel  scope link  src 192.x.x.24 
24.x.x.0/24 dev eth0  proto kernel  scope link  src 24.x.x.60 
default via 216.x.x.57 dev eth3

I ping something through here from 192.x.x.6 but it doesn't use
&quot;mytable2&quot; it just uses the main routing table.  Help, does anybody have
any ideas?

thanks,
Scott


</PRE>

                 reply	other threads:[~2001-01-10  0:39 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-98373940416848@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.