Conversation
Is there some way to have Wireguard peers discover eachother without either explicitly having an Endpoint configuration?
1
0
0

@lispi314 No, but there are lots of workarounds you could do to make it seem as if that was the case, especially if a non-mobile or possibly rooted mobile OS is used? sorry in advance for if this response isn't what's desired

1
0
0
@9pfs It is indeed for messing with non-rooted mobile.

In my current LAN, it has a static DHCP address and can be addressed as an endpoint.

But being bound to my current configuration irks me in other ways.

There is one desktop system, which for various reasons isn't practical as an endpoint.
1
0
0

@lispi314 wouldn't at all be a good solution, but I'd think, if you're willing to accept non-wireguard software and possibly building said software from source, you might be able to somehow get a yggdrasil build with support for routing user-provided IP prefixes through a host, then let yggdrasil manage host discovery? probably misunderstood though

2
0
0
@9pfs Unfortunately that would defeat the point of other parts of the setup. Going through as few external relays as possible matters for data transfers (local network condition shenanigans).
0
0
0
@9pfs @lispi314 if you're willing to accept non-wireguard software you could also use tinc instead of yggdrasil (which natively supports routing user-provided IP prefixes unlike yggdrasil, no need to do some other tunnel on top)
1
0
1
@noisytoot @9pfs I had been under the impression tinc2 was more like a precursor to Wireguard in most ways. It included discovery?
1
0
0

@lispi314 @9pfs I haven’t used it myself, but yes, I believe so. According to the website:

Automatic full mesh routing

Regardless of how you set up the tinc daemons to connect to each other, VPN traffic is always (if possible) sent directly to the destination, without going through intermediate hops.

[…]

Easily expand your VPN

When you want to add nodes to your VPN, all you have to do is add an extra configuration file, there is no need to start new daemons or create and configure new devices or network interfaces.

0
0
1