Giter VIP home page Giter VIP logo

ntrace-core's People

Contributors

1-1-2 avatar chenrui333 avatar dependabot[bot] avatar fakeboboliu avatar haima3 avatar huiming23344 avatar isyekong avatar missuo avatar sjlleo avatar tsosunchia avatar zhshch2002 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ntrace-core's Issues

为 LeoMoeAPI 增加 IP prefix 多 ASN 宣告的支持

一直以来,LeoMoeAPI 都不擅长处理多 ASN 宣告的情况,我们意识到这是一个很大的问题。
我们打算于近期开始支持处理多 ASN 宣告,在未来,如果一个 prefix 被多个 ASN 宣告,将会显示多个 ASN

LeoMoeAPI 服务器变更

由于众所周知的原因,在2023年3月31日,由于经费不足,组员带着服务器的 CPU 和内存跑路了,我们的服务器无法启动。为了保证能够向所有用户继续提供服务,我们紧急从图吧捡了一台 CPU 为 AMD FX8320,并采用红星高端电源,显卡使用旗舰竞技级 Nvidia GT 705,并安装 Windows 98 系统的 PC,成功点亮!

如果您遇到任何使用上的问题或困惑,请立即与我们联系。在力所能及的范围内,我们将尽力而为向您提供最优质的服♂务。

2023/4/1
Leo





































愚人节快乐!

[Announcement] Explanation About Contact Information

对于NextTrace 本体BUG反馈、LEOMOEAPI 信息纠正 以及各种建议,
请视情况发到本项目Issue区或Discussion区。

将以上内容发到任一项目成员的个人邮箱的做法将导致您的邮件被无视,会影响您问题解决的速度。

PS:对于本项目集成的其他API 的信息纠正以及NextTrace的traceMap插件的相关问题,请发至相应的地方。

PPS:对于任何反馈本项目不保证任何时效,对于LEOMOEAPI本项目不保证任何SLA (BEST EFFORT)。


For NextTrace bug feedback, LEOMOEAPI data correction, and suggestions,
please post them in the Issue area or Discussion area of this project according to the situation.

It is not recommended to send the above content to the personal email of any project member, which will also affect the speed of problem solving.

PS: For information correction of other APIs integrated in this project and related issues of NextTrace MapTrace, please send them to the corresponding place.

PPS: For any feedback, this project does not guarantee any timeliness. For LEOMOEAPI, this project does not guarantee any SLA (BEST EFFORT).

IP 错误报告汇总帖

格式参考下图:

219.158.24.82    ** 云南 昆明
202.97.77.13     ** 上海
221.183.89.1/24  ** 北京
218.30.54.102    美国 纽约州 纽约

如果您遇到 IP 错误,欢迎在下方反馈,您通常会在24小时内收到反馈结果。

为提高IP修正效率
对于可ping的IP,强烈建议附上ping.pe, ping.sxitdog.cn 等监测网站的测试截图,
这将加快处理速度。

感谢您对 NextTrace 项目的支持。


优化体验,将此issue转移至discussion

骨干网 rDNS IATA 匹配规则模块已经在 LeoMoeAPI 上实装

Hi Everyone,

NextTrace 的 LeoMoeAPI 迎来了一次大更新,目前已经可以通过 rDNS 解析及时判断骨干网的地理位置,这应该对于 IPv6 骨干网非常有效果,但是数据库里面还有先前的缓存数据,他们也有很多是错误的,我也在努力批量去修正他们,但是这可能需要一点时间。

同时,我们改进了当多库地理位置不同时的选择算法,现在应该可以获得更好的准度。未来我们还会加入多节点的延时监测,来自动化修正 ip 的地理位置,而不是只依赖于 rDNS 和现有的 API。

目前我们的 IATA 表可以在这里找到 - https://github.com/sjlleo/isp-geo-code-data

如果有任何疑问都可以在此 issue 下发帖~

Credits

特别的,我想由衷感谢以下七位朋友的帮助(排名不分先后)

FFEE_CO

missuo ([email protected])

AS206729 - OwO Network

isyekong ([email protected])

AS138211 - MoeQing Network

风间苏苏 ([email protected])

BTW,大伙如果有 DN42 一定要找 AS4242423396 Peer w

stydxm ([email protected])

samleong123 ([email protected])

Yuu Shen ([email protected])

v0.1.0 TODO(draft)

  • 重写IP GEO的所有模块
    • 移除对官方库json的依赖
  • 移除taskgroup
  • 移除parallel_limiter
  • 重新设计参,添加sudo提示和https://github.com/AlecAivazis/survey
  • 表格绘制 github.com/rodaine/table
  • 抽象methods
  • 重构所有不必要的go和chan
  • IP地理位置以及风险查询

LeoMoeAPI 维护公告

维护时间 2023年1月25日 18: 00 - 22: 00 (东八区)

维护内容:

  1. 增加多 ASN 宣告支持
  2. ASN 库改用 PeeringDB (已完成)
  3. 定期从 PeeringDB 抓取 IX、ASN 数据
  4. 增加 IX 显示支持
  5. IP 库垃圾信息清理
  6. IPData 大量新数据插入
  7. IPv6 部分旧错误数据删除
  8. rDNS 表梳理以及更新

维护影响:
本次更新设计大量对表的操作以及若干次后端重启,在此时间使用 LeoMoeAPI 会出现无响应、不可用、数据不全等情况,建议您尽量避免在维护时间使用,感谢您的配合。

关于 -g --language 参数

你正在使用哪个版本的 nexttrace?

v1.0.8 linux amd64

你看到的异常现象是什么?

-g en 参数配合 -F 参数时无法切换英文

你期待看到的正常表现是怎样的?

nexttrace -g en -F 选择ISP菜单和追踪结果显示英语

请附上你的命令

nexttrace -g en -F

请问能否翻译完整 -F 选择ISP文本,还有追踪结果的geoip信息呢?
给不懂中文的朋友推荐这个时候发现的这个翻译不全。

谢谢。

报 `bash: /proc/self/fd/11: 没有那个文件或目录` 当我运行 `bash <(curl -Ls https://raw.githubusercontent.com/sjlleo/nexttrace/main/nt_install.sh)`

你正在使用哪个版本的 nexttrace?

使用 sudo bash <(curl -Ls https://raw.githubusercontent.com/sjlleo/nexttrace/main/nt_install.sh) 一键安装 nexttrace

 lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.2 LTS
Release:        22.04
Codename:       jammy

你看到的异常现象是什么?

报错

bash: /proc/self/fd/11: 没有那个文件或目录

你期待看到的正常表现是怎样的?

正常下载安装

请附上你的命令

bash <(curl -Ls https://raw.githubusercontent.com/sjlleo/nexttrace/main/nt_install.sh)

请附上出错时软件输出的错误信息

bash: /proc/self/fd/11: 没有那个文件或目录

我自己的解决办法

curl -Ls https://raw.githubusercontent.com/sjlleo/nexttrace/main/nt_install.sh | sudo  bash

运行 nexttrace https://api.leo.moe/ 时报错

你正在使用哪个版本的 nexttrace?

系统:MacOS 10.15.7
版本:NextTrace v1.1.3

你看到的异常现象是什么?

在运行 nexttrace https://api.leo.moe/ 时,报了一个错误:

NextTrace v1.1.3
Please Choose the IP You Want To TraceRoute
0. 104.26.8.231
1. 104.19.28.108
2. 104.26.9.231
3. 104.19.29.108
4. 2606:4700:3030::ac43:cd76
5. 2606:4700:3030::6815:34ee
Your Option: 2
[NextTrace API] prefered API IP - 104.19.29.108 - 11.59ms
IP Geo Data Provider: LeoMoeAPI
traceroute to 104.26.9.231 (api.leo.moe), 30 hops max, 32 byte packets
2023/04/18 14:34:49 listen ip4:1 : socket: operation not permitted

你期待看到的正常表现是怎样的?

期待运行结果与ReadMe上写得一致。

请附上你的命令

nexttrace https://api.leo.moe/

请附上出错时软件输出的错误信息

2023/04/18 14:34:49 listen ip4:1 : socket: operation not permitted

使用自动安装脚本无法在macOS12完成安装

你正在使用哪个版本的 nexttrace?

macOS 12.4 (21F79) arm64
with zsh

你看到的异常现象是什么?

使用自动安装脚本时出错。

 › sudo bash nt_install.sh
nt_install.sh: line 30: md5sum: command not found
nt_install.sh: line 30: md5sum: command not found
\e[1;31m脚本已经是最新版本\e[0m
\e[1;31m正在获取地理位置信息...\e[0m
\e[1;31m正在获取最新版的 NextTrace 发行版文件信息...\e[0m
nt_install.sh: line 175: -1: substring expression < 0
nt_install.sh: line 216: /usr/local/bin/nexttrace: No such file or directory
\e[1;31mYou may need to execute a command to remove dependent software: brew uninstall wget jq\e[0m
是否添加自动更新任务?(y/n)n
\e[1;31m您选择了不添加自动更新任务,您也可以通过命令 再次执行此脚本 手动更新\e[0m

CleanShot 2022-05-27 at 17 10 20@2x

你期待看到的正常表现是怎样的?

在macOS arm上正确安装。

请附上你的命令

curl -Ls https://github.com/xgadget-lab/nexttrace/raw/main/nt_install.sh -O
sudo bash nt_install.sh

请附上出错时软件输出的错误信息

已在前文附上。

使用sudo执行只能解析出IPv6地址

你正在使用哪个版本的 nexttrace?

macOS_arm64

你看到的异常现象是什么?

对同时含有IPv4和IPv6解析的站点,使用sudo执行只能解析出IPv6地址,不使用则能正常解析出IPv4和IPv6地址

你期待看到的正常表现是怎样的?

对同时含有IPv4和IPv6解析的站点,能正常解析出IPv4地址

请附上你的命令

sudo nexttrace cloudflare.com

请附上出错时软件输出的错误信息

$ nexttrace cloudflare.com
NextTrace v1.1.3
Please Choose the IP You Want To TraceRoute
0. 104.16.132.229
1. 104.16.133.229
2. 2606:4700::6810:84e5
3. 2606:4700::6810:85e5
Your Option: 0
[NextTrace API] prefered API IP - 104.26.9.231 - 181.86ms
IP Geo Data Provider: LeoMoeAPI
traceroute to 104.16.132.229 (cloudflare.com), 30 hops max, 32 byte packets
2023/04/02 11:21:17 listen ip4:1 : socket: operation not permitted

$ sudo nexttrace cloudflare.com
Password:
NextTrace v1.1.3
Please Choose the IP You Want To TraceRoute
0. 2606:4700::6810:85e5
1. 2606:4700::6810:84e5
Your Option: 0
[NextTrace API] prefered API IP - 104.26.8.231 - 171.76ms
IP Geo Data Provider: LeoMoeAPI
traceroute to 2606:4700::6810:85e5 (cloudflare.com), 30 hops max, 32 byte packets
2023/04/02 11:21:35 write ip6 ::->2606:4700::6810:85e5: sendto: no route to host

Is TCP tracing available in Windows binary?

Can Windows binaries be used for TCP tracing?

nexttrace_windows_amd64.exe --tcp --port 443 50.29.*.*
NextTrace v1.1.3 2023-03-03T07:51:20Z ead7ebb
NextTrace 基于 Windows 的路由跟踪还在早期开发阶段,目前还存在诸多问题,TCP/UDP SYN 包请求可能不能正常运行
[NextTrace API] prefered API IP - 104.26.*.* - 12.92ms
IP Geo Data Provider: LeoMoeAPI
traceroute to 50.29.*.*, 30 hops max, 32 byte packets
2023/03/11 02:38:28 listen ip4:tcp 192.168.1.102: bind: An invalid argument was supplied.

字典索引溢出导致程序崩溃 panic: runtime error: index out of range [9] with length 0

你正在使用哪个版本的 nexttrace?

linux_amd64

你看到的异常现象是什么?

路由跟踪时发生崩溃,在特定条件下可100%复现

你期待看到的正常表现是怎样的?

正常执行路由跟踪并打印结果

请附上你的命令

nexttrace -T -b 6 -m 7 -q 20 sh.189.cn

请附上出错时软件输出的错误信息

panic: runtime error: index out of range [9] with length 0

goroutine 1 [running]:
github.com/xgadget-lab/nexttrace/printer.findLatestAvailableHop(...)
        github.com/xgadget-lab/nexttrace/printer/realtime_printer.go:25
github.com/xgadget-lab/nexttrace/printer.makeHopsType(0xc0000b0df8, 0x5)
        github.com/xgadget-lab/nexttrace/printer/realtime_printer.go:74 +0x6a5
github.com/xgadget-lab/nexttrace/printer.RealtimePrinter(0xc0000b0df8, 0x5)
        github.com/xgadget-lab/nexttrace/printer/realtime_printer.go:100 +0x91
github.com/xgadget-lab/nexttrace/trace.(*TCPTracer).Execute(0xc0000b0d80)
        github.com/xgadget-lab/nexttrace/trace/tcp_ipv4.go:79 +0x41a
github.com/xgadget-lab/nexttrace/trace.Traceroute({0x799f5c?, 0xc000040710?}, {0x6, 0x7, 0x14, 0x12, 0x3b9aca00, {0xc0000265d8, 0x4, 0x4}, ...})
        github.com/xgadget-lab/nexttrace/trace/trace.go:81 +0x202
main.main()
        github.com/xgadget-lab/nexttrace/main.go:124 +0x2e5

支持探测过程及结果支持上报到prometheus

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
全球用户到服务器的网络链路较长,加上用户存在各种各样的网络环境,对网络监控是运维角色及整改IT基础设施稳定性的重要监控对象。

Describe the solution you'd like
A clear and concise description of what you want to happen.
将探测结果上报到支持prometheus格式的时序库进行存储,让监控通过阀值等手段进行告警。
例如,http://xxxxxx:9453/metric,9453代表 nexttrace服务的端口

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

在wsl2中运行出现错误信息

wsl2中使用时,达到30跳的最大值后,出现以下错误信息:

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x40 pc=0x7f0f98]

goroutine 1 [running]:
github.com/xgadget-lab/nexttrace/tracemap.GetMapUrl({0xc000696a80, 0x662d})
github.com/xgadget-lab/nexttrace/tracemap/tracemap.go:15 +0xb8
github.com/xgadget-lab/nexttrace/cmd.Excute()
github.com/xgadget-lab/nexttrace/cmd/cmd.go:228 +0x168b
main.main()
github.com/xgadget-lab/nexttrace/main.go:8 +0x17

使用了archlinuxubuntu 22.04 两个分发,都出现这个错误。

项目用的IP库是哪家的

测了很多 有些数据精准度超过了besttrace,ipv6的国内数据只有你这有 其他几个的都只显示**
能告知一下这是谁家的库吗?谢谢

使用M参数后,不显示MapTrace URL

你正在使用哪个版本的 nexttrace?

linux_amd64-v0.2.6

你看到的异常现象是什么?

使用M参数不显示地图URL

你期待看到的正常表现是怎样的?

能正常显示地图照片

请附上你的命令

请附上出错时软件输出的错误信息

FS

[HELP WANTED] 求DEB打包高手PR

欢迎大家PR DEB打包以及帮忙上架UBUNTU/DEBIAN源。

Welcome everyone to PR DEB packaging and help with the deployment of UBUNTU/DEBIAN sources.

关于自动上传路由数据的问题

我有一个疑问,就是为什么nexttrace会自动上传我的路由数据?

我想知道这样做的原因和用途是什么,为什么不默认关闭这个功能?以及这些数据会被如何处理和保护。我担心这样会泄露我的隐私或者影响我的网络安全。

我在使用nexttrace的时候,发现它会在每次路由跟踪结束后,向api.leo.moe发送一个POST请求,里面携带了我的路由数据。我希望你能解释一下这个功能的意义和必要性,以及是否有办法在不上传数据的情况下显示地图。

谢谢

NextTrace 将结束对 Classic 显示模式的支持

作为 NextTrace 最为古老的显示模式之一,考虑到目前已经鲜有用户依旧在使用它,我们认为再维护一个这样的模式会造成很大程度上的兼容负担,所以 1.0.8 将成为最后一个支持 classic 显示的版本,从 1.0.9 开始,这个模式将彻底被移除,这将方便我们对一部分结构进行进一步的优化。

NextTrace Project
Leo

Windows版本下面不显示路由信息

你正在使用哪个版本的 nexttrace?

Windows_amd64

你看到的异常现象是什么?

从开始到倒数第二跳都是空白

见下面图片
Snipaste_2023-01-10_15-00-04

你期待看到的正常表现是怎样的?

能正常显示路由信息

请附上你的命令

请附上出错时软件输出的错误信息

[New Feature] 为 DN42 成员专用于 DN42 基于本地 rDNS 信息的地理位置解析模式

基于目前没有任何路由跟踪工具提供了对 DN42 较好的支持,我们决定单独为 DN42 玩家开发一个专用于 DN42 网络路由跟踪的模式。

在这种模式下,所有的 rDNS PTR 匹配全部将由本地完成,我们将从现有 LeoMoeAPI 后端抽象出一个极度精简的判断模型,以帮助用户更好的显示自己的 DN42 路由结果。

该模式支持自行导入一个 CSV GeoFeed 文件,这样您可以自定义您的地理位置特征信息,方便 NextTrace 鉴别该 IP 的地理位置。

诚然这个模式也可以用于公网的自有 ASN 路由跟踪,因为它不会向 LeoMoeAPI 发送任何 IP 请求,所以一定程度上保护了您的骨干网隐私,并也加快了路由跟踪速度。

NextTrace Project
Leo

请求支持packets设置

请求在支持packets设置,有些无良互联网服务提供商会设置相应路由策略,标准包大小会走更优秀的路由。

brew 安装报错

你正在使用哪个版本的 nexttrace?

macOS_arm64
MacBook Air (M1, 2020)

你看到的异常现象是什么?

brew tap xgadget-lab/nexttrace
brew install nexttrace
Error: nexttrace: undefined local variable or method `null' for #<Class:0x00007fe3b7dc1fe8>

image

你期待看到的正常表现是怎样的?

正常安装

请附上你的命令

brew install nexttrace

请附上出错时软件输出的错误信息

Error: nexttrace: undefined local variable or method `null' for #Class:0x00007fe3b7dc1fe8

LeoMoeAPI v2.0 Beta 实装

Hi 小伙伴们,

LeoMoeAPI 于今日正式实装 v2.0 Beta,其中包含以下几项重大更新:

  1. 支持用户自主选择输出中文或英文的地理位置信息,在新版 NextTrace 将支持此特性
  2. 将自带地理位置坐标数据,用于未来 NextTrace 新版路径地图的本地生成,而无需依赖于 API 自身
  3. 多API 地理位置抉择算法更新,在测试环境中,至少提升了10%的数据准确度
  4. 部分模块完全重构,大幅度降低了圈复杂度,在 bench 测试中,带来了一定的性能提升
  5. 其他输出细节上的优化

由于本次更新模块众多,可能会带来新的 Bug,欢迎小伙伴们多多反馈!

MapTrace 增加一个本地公网出口 IP 地址

Is your feature request related to a problem? Please describe.
MapTrace 增加一个本地公网出口 IP 地址,不然太突兀了。

Additional context
https://api.leo.moe/tracemap/8d4dbaa7-86a3-5bc1-92ad-ce88511c29f0.html
image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.