From: Ben Greear <greearb@candelatech.com>
To: Joe Buehler <aspam@cox.net>
Cc: Chris Friesen <chris.friesen@genband.com>, netdev@vger.kernel.org
Subject: Re: source route ignored in favor of local interface
Date: Wed, 02 Mar 2011 10:55:09 -0800 [thread overview]
Message-ID: <4D6E928D.6030806@candelatech.com> (raw)
In-Reply-To: <4D6D49AE.2030303@cox.net>
On 03/01/2011 11:31 AM, Joe Buehler wrote:
>> If you really want to modify things, have you looked at your ip rules?
>> "ip ru" will dump them. Typically it looks something like
>>
>> 0: from all lookup local
>> 32766: from all lookup main
>> 32767: from all lookup default
>>
>> The last item in each row is the name of the routing table. As you can
>> see, the first rule is for local interfaces, and a later rule deals with
>> the main and default routing tables.
>>
>> You could move the local lookup to rule 1 and add in a new rule 0
>> specifically dealing with your situation.
>
> We have tried some variations on modifications to ip rules, but the
> kernel appears to treat rule 0 specially -- it cannot be deleted, for
> example. This results in the enforcing of local interfaces before
> source routes -- surely something that should be a policy decision, not
> hard-coded.
>
> Let me rephrase and ask: Does anyone know how to replace the priority 0
> rule?
You can do this on more modern kernels (2.6.36 and later definately works..not sure
about earlier).
ip rule add pref 512 lookup local
ip rule del pref 0 lookup local
Thanks,
Ben
>
> Joe Buehler
> --
> To unsubscribe from this list: send the line "unsubscribe netdev" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc http://www.candelatech.com
next prev parent reply other threads:[~2011-03-02 18:55 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-01 14:57 source route ignored in favor of local interface Joe Buehler
2011-03-01 19:05 ` Chris Friesen
2011-03-01 19:31 ` Joe Buehler
2011-03-02 18:55 ` Ben Greear [this message]
2011-06-09 16:27 ` Joe Buehler
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=4D6E928D.6030806@candelatech.com \
--to=greearb@candelatech.com \
--cc=aspam@cox.net \
--cc=chris.friesen@genband.com \
--cc=netdev@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).