Skip to content

Factor port mapping protocols into NAT classification - #11

Open
rajsinghtech wants to merge 1 commit into
jaxxstorm:mainfrom
rajsinghtech:rajsinghtech/port-mapping-nat-classification
Open

Factor port mapping protocols into NAT classification#11
rajsinghtech wants to merge 1 commit into
jaxxstorm:mainfrom
rajsinghtech:rajsinghtech/port-mapping-nat-classification

Conversation

@rajsinghtech

@rajsinghtech rajsinghtech commented Mar 3, 2026

Copy link
Copy Markdown

Summary

  • When UPnP/NAT-PMP/PCP is detected, upgrade effective NAT type to "No NAT (via )"
  • Port mapping makes the host directly reachable, matching observed behavior (tailscale establishes direct connections)
  • No regression for public IP, easy NAT without portmap, or UDP blocked cases

When UPnP/NAT-PMP/PCP is available, upgrade effective NAT type
to "No NAT (via <protocol>)" since port mapping makes the host
directly reachable.

Signed-off-by: Raj Singh <rajsinghcpre@gmail.com>
@rajsinghtech rajsinghtech changed the title Factor port mapping into NAT classification Factor port mapping protocols into NAT classification Mar 3, 2026
@rajsinghtech

Copy link
Copy Markdown
Author

Without natpmp
image

With natpmp
image
image

Before
image
After
image

@jaxxstorm

Copy link
Copy Markdown
Owner

this isn't no nat, it's still east nat, just with direct connections

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants