我如何使用 stun 检查我的 nat 类型?新的这个

How do i check my nat type using stun? New on this

我想知道我的 nat 类型,我正在尝试使用这个命令“netsh interface Teredo show state”但是有人建议我应该让服务器或客户端更好地了解我的 nat。但是我对此没有任何想法,我只是想有一个开放的nat来玩游戏,所以请耐心等待我:)

顺便说一句,我在我的调制解调器上启用了 DMZ 和 UPNP。

Server Name             : win1910.ipv6.microsoft.com.
Client Refresh Interval : 20 seconds
Client Port             : unspecified
State                   : qualified
Client Type             : teredo client
Network                 : unmanaged
NAT                     : symmetric (port)
NAT Special Behaviour   : UPNP: Yes, PortPreserving: Yes

我在谷歌上搜索了 stun 客户端或服务器,但他们没有任何关于如何安装或使用它们的信息,就像这个 https://github.com/moien007/STUN 所以如果有人可以帮助我开发一个易于安装或请提供一些关于如何安装 stun 服务器或客户端的说明。

非常感谢。

编辑运行 stuntcode.exe 知道了

Result of CTestDataStream: PASS
Result of CTestReader: PASS
Result of CTestBuilder: PASS
Result of CTestIntegrity: PASS
Result of CTestMessageHandler: PASS
Result of CTestCmdLineParser: PASS
Testing detection for DirectMapping
Testing detection for EndpointIndependent mapping
Testing detection for AddressDependentMapping
Testing detection for AddressAndPortDependentMapping
Testing detection for EndpointIndependentFiltering
Testing detection for AddressDependentFiltering
Testing detection for AddressAndPortDependentFiltering
Result of CTestClientLogic: PASS
Result of CTestRecvFromEx(IPV4): PASS
Result of CTestRecvFromEx(IPV6): PASS
Result of CTestFastHash: PASS
Result of CTestPolling: PASS
Result of CTestAtomicHelpers: PASS
Result of CTestRateLimiter: PASS

您可以在 https://www.stunprotocol.org 获得适用于所有平台的 STUN 客户端应用程序(Windows 和 Mac 命令行应用程序的预构建 EXE 客户端也在那里!)

示范:

C:\StunServer> stunclient.exe stun.stunprotocol.org --mode behavior
Binding test: success
Local address: 192.168.1.7:52707
Mapped address: 101.102.33.44:52707
Behavior test: success
Nat behavior: Endpoint Independent Mapping


C:\StunServer> stunclient.exe stun.stunprotocol.org --mode filtering
Binding test: success
Local address: 192.168.1.7:39843
Mapped address: 101.102.33.44:39843
Filtering test: success
Nat filtering: Address Dependent Filtering

运行 这两种测试模式,揭示了端点独立映射和地址相关过滤,如 RFC 5780 中所述,用于对 NAT 进行分类。