All of lore.kernel.org
 help / color / mirror / Atom feed
From: Mike Fedyk mfedyk@matchmail.com
To: lartc@vger.kernel.org
Subject: [LARTC] A complicated routing scenario (for me at least)
Date: Fri, 17 Nov 2000 21:25:44 +0000	[thread overview]
Message-ID: <marc-lartc-98373938216948@msgid-missing> (raw)
In-Reply-To: <marc-lartc-98373938216914@msgid-missing>

<PRE>Arthur van Leeuwen wrote:
&gt;<i> 
</I>&gt;<i> On Thu, 16 Nov 2000, Andrew wrote:
</I>&gt;<i> 
</I>&gt;<i> &gt; Hey, I'm working on the rules and routes to implement what I've been talking
</I>&gt;<i> &gt; about, and I've got a small question about the ip rule add.
</I>&gt;<i> 
</I>&gt;<i> &gt; I'm trying to add a blackhole route, and ip rule add seems to insist that I
</I>&gt;<i> &gt; provide a lookup table with the route.
</I>&gt;<i> &gt;
</I>&gt;<i> &gt; For instance If I execute the command:
</I>&gt;<i> &gt;
</I>&gt;<i> &gt; &quot;ip rule add from 0.0.0.0/0 type blackhole.&quot;
</I>&gt;<i> &gt;
</I>&gt;<i> &gt; when I look at what it did with &quot;ip rule ls&quot; I see
</I>&gt;<i> &gt;
</I>&gt;<i> &gt; &quot;from all lookup main blackhole&quot;
</I>&gt;<i> 
</I>&gt;<i> Try using   ip rule add priority 256 from 0.0.0.0/0 type blackhole
</I>&gt;<i> 
</I>&gt;<i> Doei, Arthur. (There's some hints as to the priority being required in the
</I>&gt;<i>                IP command reference)
</I>
ip rule add lookup 256 from 0.0.0.0/0 type blackhole

or replace &quot;lookup&quot; with &quot;table&quot;, same thing.

If you use priority, you are affecting the location of that rule in the rule
search.  In the above case, it should blackhole everything, unless there are any
&quot;ip rule&quot;s with a priority below 256.  This is in theory, I didn't want to try
it on my one linux box.


</PRE>

  parent reply	other threads:[~2000-11-17 21:25 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-11-13 22:58 [LARTC] A complicated routing scenario (for me at least) Andrew
2000-11-14 14:34 ` Arthur
2000-11-14 14:44 ` Wingtung.Leung
2000-11-14 20:15 ` Andrew
2000-11-14 21:47 ` Whit
2000-11-14 23:10 ` Wingtung.Leung
2000-11-15 10:49 ` Arthur
2000-11-15 11:27 ` Arthur
2000-11-15 14:57 ` Warren
2000-11-15 19:20 ` Andrew
2000-11-15 19:30 ` Arthur
2000-11-15 20:11 ` Andrew
2000-11-17  1:07 ` Andrew
2000-11-17 12:11 ` Mike
2000-11-17 12:24 ` Mike
2000-11-17 13:00 ` Arthur
2000-11-17 21:25 ` Mike [this message]
2000-11-18 16:28 ` Warren

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-98373938216948@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.