Skip to content
/ detect Public

一个探测WireGuard服务器存活状态的小工具

License

Notifications You must be signed in to change notification settings

leaint/detect

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

这是一个探测WireGuard服务器存活状态的小工具

使用方法

  1. 用本项目的msg1.py生成一个握手包(需要补全msg1.py文件中的private_key字段)。
  2. 把要探测的服务器IP地址和端口号,写到ip.txt中。
  3. 编译和运行
go build -o main
# 每个地址发四个包,每个包的响应超时时间为400毫秒。选择没丢包的地址,按照延迟从低到高排序。
./main -c 4 -w 400 | grep 100% | sort -h -k 3

多运行几次效果更佳。

备注

一些WARP入口IP和端口号,可据此生成要测试的地址

IPv4 Range: 162.159.193.0/24
IPv6 Range: 2606:4700:100::/48

2408, 500, 1701, 4500