spiritlhl e5c88790fb Merge pull request #2 from chesha1/main
fix: architecture of macos in apple silicon
2024-05-21 16:05:52 +08:00
2024-05-05 09:38:26 +00:00
2024-05-05 20:18:35 +08:00
2024-05-05 08:51:36 +00:00
2024-05-05 08:51:36 +00:00
2024-05-05 15:00:08 +08:00
2024-05-15 18:09:15 +08:00

gostun

Hits Build and Release

本机NAT类型检测工具

Local NAT type detection tool (NatTypeTester)

类型说明[Information]

NatMappingBehavior:
inconclusive
endpoint independent (no NAT)
endpoint independent
address dependent
address and port dependent
NatFilteringBehavior:
inconclusive
endpoint independent
address dependent
address and port dependent
NAT Type Nat Mapping Behavior Nat Filtering Behavior
Full Cone endpoint independent endpoint independent
Restricted Cone endpoint independent address dependent
Port Restricted Cone endpoint independent address and port dependent
Symmetric address and port dependent address and port dependent
Inconclusive inconclusive inconclusive

TODO

  • 加入UDP检测

使用说明[Usage]

更新时间[Version]: 2024.05.05

curl https://raw.githubusercontent.com/oneclickvirt/gostun/main/gostun_install.sh -sSf | sh

无环境依赖,理论上适配所有系统和主流架构,更多架构请查看 https://github.com/oneclickvirt/gostun/releases/tag/output

  -server string
        STUN server address (default "stun.voipgate.com:3478")
  -timeout int
        the number of seconds to wait for STUN server's response (default 3)
  -verbose int
        the verbosity level

图片

感谢[Thanks]

https://datatracker.ietf.org/doc/html/rfc3489#section-5

https://datatracker.ietf.org/doc/html/rfc4787#section-5

https://github.com/pion/stun/tree/master/cmd/stun-nat-behaviour

S
Description
本机NAT类型检测工具(Local NAT type detection tool)(NatTypeTester)
Readme Apache-2.0 177 KiB
Languages
Go 90.3%
Shell 9.7%