测试当前网络的 NAT 类型(STUN)

renovate[bot] 52d30e5e35 dep: Update ReactiveUI to v19.5.39 1 year ago
.github ec8da19326 dep: Update actions/upload-artifact action to v4 (#223) 1 year ago
Build 111e4f4adc housekeeping: Update build scripts 3 years ago
NatTypeTester 52d30e5e35 dep: Update ReactiveUI to v19.5.39 1 year ago
NatTypeTester.Models 52d30e5e35 dep: Update ReactiveUI to v19.5.39 1 year ago
NatTypeTester.ViewModels 52d30e5e35 dep: Update ReactiveUI to v19.5.39 1 year ago
NatTypeTester.WinUI 52d30e5e35 dep: Update ReactiveUI to v19.5.39 1 year ago
STUN f65de9245c feat: Add i18n for WinUI 2 years ago
UnitTest 474f56b327 dep: Update dependency Moq to v4.20.70 2 years ago
pic f65de9245c feat: Add i18n for WinUI 2 years ago
.editorconfig 0b857a128c housekeeping: Update .editorconfig 3 years ago
.gitattributes 93159da643 housekeeping: Update framework to .net5.0 4 years ago
.gitignore 22a115f142 style: Update code style 4 years ago
LICENSE 3fe3bbf5c4 Initial commit 7 years ago
NatTypeTester.sln 105168d060 feat: Add WinUI3 2 years ago
NuGet.Config 75422b3531 housekeeping: Update to .net6.0 4 years ago
README.md f65de9245c feat: Add i18n for WinUI 2 years ago
build.WinUI.ps1 f65de9245c feat: Add i18n for WinUI 2 years ago
build.ps1 84439b593b dep: Update to .NET 8.0 2 years ago
common.props 84439b593b dep: Update to .NET 8.0 2 years ago

README.md

NatTypeTester

Channel | Status -|- CI | CI Stun.Net | NuGet.org

RFC

Internet Protocol

  • IPv4
  • IPv6

Transmission Protocol

  • UDP
  • TCP
  • TLS-over-TCP

RFC3489

![](pic/RFC3489.png)

RFC5389

Binding Test

Checking for UDP Connectivity with the STUN Server ![](pic/RFC5780_4.2.png)

Mapping Behavior

Determining NAT Mapping Behavior ![](pic/RFC5780_4.3.png)

Filtering Behavior

Determining NAT Filtering Behavior ![](pic/RFC5780_4.4.png)

Combining Tests

![](pic/RFC5780_4.5.png)