Skip to content

Improve NAT traversal #3

Open
Open

Description

@danderson

Meta-bug for getting traffic through more types of NATs.

Our current traversal logic works fairly well with NATs that use endpoint-independent mapping (aka "full cone NAT" to use the old terminology) and endpoint-dependent firewalling. This covers most linux-based routers and basic enterprise NATs.

We don't yet work when both nodes are behind endpoint-dependent mapping (aka "Restricted Cone" or "Port-restricted").

We don't yet work reliably when both nodes are behind the same NAT, but have to hairpin through the NAT device to get connectivity.

Activity

  1. added
    enhancement
    connectivity
    on Feb 10, 2020
  2. DentonGentry commented on Sep 4, 2021

    @DentonGentry
    Contributor

    Related, for residential and SMB use-cases, the last few releases have added more support to ask the firewall to open a port:

    • (long ago) implement NAT-PMP
    • 1.12: implement UPnP-IGD
    • 1.14: implement PCP support for NAT-PMP

    This made a substantial difference.

  3. DentonGentry commented on Oct 13, 2021

    @DentonGentry
    Contributor

    Remaining possibilities for improving NAT traversal:

    • implementation of the birthday paradox for NAT probing.
    • SIP ALG
    • WebRTC ALG
  4. added
    portmap
    on Sep 11, 2023
  5. added a commit that references this issue on Mar 13, 2024
  6. aschw commented on Apr 4, 2024

    @aschw

    In the original issue -- when you wrote "endpoint-dependent firewalling," did you actually mean "endpoint-dependent filtering"?

  7. kokroo commented on Jul 6, 2024

    @kokroo
    • implementation of the birthday paradox for NAT probing.

    Was this ever implemented? What is the rate of probed ports per second? The Tailscale blog article mentioned sending 256 probes per second from both sides, although Wireshark does not show me anything like that going on!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    L4 Most usersP2 AggravatingT3 Performance/Debuggingconnectivityenhancementportmap

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions