Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How does local peering work? #418

Closed
ghost opened this issue May 13, 2019 · 7 comments
Closed

How does local peering work? #418

ghost opened this issue May 13, 2019 · 7 comments
Labels
question Help or support needed

Comments

@ghost
Copy link

ghost commented May 13, 2019

I've tried cjdns before and while it worked well when peering over the Internet, I never quite understood how local peering worked. Let's say my router is running Yggdrasil (waiting on that OpenWrt build ;_;) and I want to peer with another router a few blocks away, how would I go about that?

Libremesh has good documentation on this, but I can't find any for Yggdrasil. Much appreciated!

@neilalexander neilalexander added the question Help or support needed label May 14, 2019
@neilalexander
Copy link
Member

Yggdrasil sends out, and listens for, multicast beacons which allow nodes on the same subnet to discover each other for peering. This pretty much works on any link which supports multicast IPv6, including point-to-point Ethernet radio links.

In this case, you could have a router and a wireless station in each building, run Yggdrasil on each router, enable multicast peerings on the interface that connects the router to the wireless station. The two nodes should automatically peer over the air.

@ghost
Copy link
Author

ghost commented May 15, 2019

Does this work even when they're password-protected?

@neilalexander
Copy link
Member

Yggdrasil doesn’t have password protection on peerings like cjdns does. We can optionally whitelist public keys for remote connectivity.

Multicast-discovered peerings are always allowed and take priority over the whitelist.

@ghost
Copy link
Author

ghost commented May 15, 2019

Thanks, but, I meant if the routers/networks are password-protected, not the peers.

@neilalexander
Copy link
Member

If you are using WPA then only devices who know the WPA passphrase will be able to connect and peer. For a point-to-point radio link, both ends of the wireless link would need the same WPA passphrase.

@Arceliar
Copy link
Member

Yggdrasil doesn't see any difference between a wifi and a wired network device, as long as they support link-local multicast. Wifi looks the same as ethernet as far as we're concerned.

If you're trying to use it as a mesh network, then you want to configure the wifi in IBSS ("adhoc") or 802.11s ("mesh point") mode. I'm told that 802.11s is better if your hardware supports it, but few things do, so IBSS is more likely to work. I've never gotten either to work successfully with WPA, but I only tried as a matter of curiosity, so maybe I just overlooked something.

If you only have 2 devices to connect, such as with directional point-to-point links, then it's OK to have one device run as a normal wifi access point, and have the other device connect in client/station mode. This is less flexible, but I would expect it to work a lot better on most hardware.

@ghost
Copy link
Author

ghost commented May 16, 2019

Thank you for the help, I got it now!

@ghost ghost closed this as completed May 16, 2019
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Help or support needed
Projects
None yet
Development

No branches or pull requests

2 participants