All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC] Multicast and IPv6 Link Local Addresses
@ 2017-04-07 14:02 Jason A. Donenfeld
  2017-04-07 14:31 ` Jason A. Donenfeld
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Jason A. Donenfeld @ 2017-04-07 14:02 UTC (permalink / raw)
  To: WireGuard mailing list
  Cc: Toke Høiland-Jørgensen, Dave Täht, Juliusz Chroboczek

Hey list,

Various networking people have been poking and prodding about
supporting IPv6 Link Local addresses and about supporting special
multicast addresses. *I MAY VERY WELL NEVER CHOOSE TO IMPLEMENT THIS*
but in case I do, I wanted to start spec'ing out what this might look
like in order to think about it better. There are a lot of odd
concerns to take into account, so I doubt that the below will wind up
as a final solution.

For these two options below, I introduce them with corresponding
configuration nobs. Since I don't really like adding nobs, it's
entirely likely that on the small chance I do wind up implementing
this, it would be without the nobs and just always on.


== Multicast ==

# wg set wg0 multicast on

When multicast mode is turned on, packets sent to the special address
ranges 224.0.0.0/24 or fe02::/16 are sent to every peer on that
interface.


== IPv6 Link Local Addresses ==

# wg set wg0 llv6 on

This command fails and returns -ENOTUNIQ if two existing peers have
the same value of hash(pubkey). When this command succeeds:, the wg0
interface receives an automatically assigned IP address of
fe80::hash(interfacepubkey)/64. Every peer has
fe80::hash(peerpubkey)/128 implicitly added to their allowed-ips. When
adding a new peer, if hash(pubkey) is the same value of an existing
peer, the command fails and returns -ENOTUNIQ.


I'm open to thoughts and suggestions about the above ideas.

Thanks,
Jason

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2017-04-17 16:48 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-07 14:02 [RFC] Multicast and IPv6 Link Local Addresses Jason A. Donenfeld
2017-04-07 14:31 ` Jason A. Donenfeld
     [not found]   ` <03B23E99-75C4-4598-AC0A-3C65F346675F@gmail.com>
2017-04-07 20:42     ` Jason A. Donenfeld
2017-04-08 12:43       ` Toke Høiland-Jørgensen
2017-04-08 15:44       ` George Walker
2017-04-08  9:39 ` Dan Lüdtke
2017-04-08 17:15   ` Juliusz Chroboczek
2017-04-08 19:05     ` Juliusz Chroboczek
2017-04-17 14:11 ` Baptiste Jonglez
2017-04-17 16:55   ` Toke Høiland-Jørgensen

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.