2 ms·
Can nodes communicate with each other directly even if they're behind NAT, without port mappings or UPnP? I know there are ways to make this happen (e.g. using
by rahimnathwani 7y ago
Can nodes communicate with each other directly even if they're behind NAT, without port mappings or UPnP?
I know there are ways to make this happen (e.g. using the techniques from Samy Kamkar's pwnat/chownat), but am not sure whether Nebula is designed to work within this constraint.
- TheDong 7y agoHaving two nodes communicate to each other when you have a cooperating third-party server (a lighthouse or discovery node) that isn't behind a nat isn't hard. That's what STUN servers and other forms of UDP hole punching accomplish. pwnat is notable because it doesn't require having a public stun-like server, but nebula already assumes there's public servers, so traversing nat is a non-issue. The readme says "Discovery nodes allow individual peers to find each other and optionally use UDP hole punching to establish connections from behind most firewalls or NATs". In practice, I didn't see any code that implements it, but I didn't look too hard.
- sanxiyn 7y agoIt's there in lighthouse.go.