tech-net archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Temporary IPv6 addresses vs. netgroups

On Thu, Jan 31, 2013 at 10:27:53PM +1100, Darren Reed wrote:
> wrote:
> >On Thu, Jan 31, 2013 at 09:57:17PM +1100, Darren Reed wrote:
> >
> >>I wonder if focusing on addresses is the correct thing to do.
> >>
> >>Should we in fact be focusing on network interfaces instead?
> >
> >No. At least that's a different problem.
> >
> >We started talking about multiple addresses on the same LAN, some being
> >randomized and only intended for pseudonymous access to untrusted peers.
> >
> >The desire is to have an application tell it doesn't want to use them;
> >think address-authorized lpr or nfs.
> What about being able to give an address a "metric" that enabled
> a sorting order for address selection?
> # ifconfig bge0 alias netmask weight 15
> # ifconfig bge0 alais netmask weight 50

You can set an address preference using ifconfig, but it is only
considered by the kernel if you set 'options IPSELSRC' in your kernel.
'options IPSELSRC' contains solutions to some of the problems mentioned
in this thread.  See in_getifa(9).

I forgot to document the 'preference' keyword in ifconfig(8) and I think
that a PR recently may have been filed on that.

It would be nice if one could create more than one source-selection
policy and select one for the default global policy, a default for
a particular interface, a default for a process and its descendants,
and so on.

BTW, 'options IPSELSRC' is not enabled by default because it will
override a route's preferred source address set using 'route add ...
-ifa ...' and that's not desirable.  One day I will fix that, but it
requires messing some with routing code and in order to mess with
routing code one has to decipher it, no easy feat. :-) Also, I have
found that it is useful to select a source address because it is on the
same local subnet as the destination, but the implementation doesn't yet
allow for that because no routing entry is passed to in_getifa().


David Young    Urbana, IL    (217) 721-9981

Home | Main Index | Thread Index | Old Index