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

Bruce Wayne 21aa2cb542 fix: diagrams 2 years ago
.github ae28a4a63e dep: Update actions/checkout action to v4 (#214) 2 years ago
Build 111e4f4adc housekeeping: Update build scripts 3 years ago
NatTypeTester 3d38c81f59 fix: warnings 2 years ago
NatTypeTester.Models 7fc57b3b46 dep: Update ABP to v7.3.2 2 years ago
NatTypeTester.ViewModels 3d38c81f59 fix: warnings 2 years ago
STUN f7c7d79787 dep: Update dependency Socks5 to v1.0.1 2 years ago
UnitTest dc152dfca7 dep: Update dependency Microsoft.NET.Test.Sdk to v17.7.2 2 years ago
pic 21aa2cb542 fix: diagrams 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 3 years ago
LICENSE 3fe3bbf5c4 Initial commit 7 years ago
NatTypeTester.sln e1ad9c5627 refactor: drop console 3 years ago
NuGet.Config 75422b3531 housekeeping: Update to .net6.0 4 years ago
README.md 656690dd34 Update README.md 2 years ago
build.ps1 dbaf4d2fee dep: Update TargetFramework 2 years ago
common.props 22a115f142 style: Update code style 3 years ago

README.md

NatTypeTester

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

RFC supports

Internet Protocol

  • IPv4
  • IPv6

Transmission Protocol

  • UDP
  • TCP
  • TLS-over-TCP
  • DTLS-over-UDP

Preview

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)