nebula icon indicating copy to clipboard operation
nebula copied to clipboard

Integrate PCP and NAT-PMP

Open rawdigits opened this issue 5 years ago • 2 comments

I can't find evidence this is in wide use, but worth supporting these, as it may help folks behind NAT.

rawdigits avatar Jan 02 '20 15:01 rawdigits

I have created a PR on this, you can try testing it https://github.com/slackhq/nebula/pull/579

I am running a test setup with it and works fine with miniupnpd on the gateway.

Config needed:

punchy:
  port_mappings.pcp:
    enabled: true

SlyngDK avatar Nov 25 '21 11:11 SlyngDK

For what it's worth, my Xfinity-provided home router:

  • Has a 'port restricted cone' NAT, i.e. sending a UDP packet to a given IP and port only allows responses from that specific IP and port. Thus UDP hole punching is not possible.
  • Does not support PCP or NAT-PMP, as far as I can tell.
  • Does support UPnP IGD.

So there do exist common setups where hole punching does not work but automated port forwarding does work (though not specifically PCP or NAT-PMP). I can make do with manual port forwarding, but it would be nice if Nebula 'just worked' in this situation.

comex avatar Apr 20 '22 19:04 comex