|
2 | 2 |
|
3 | 3 | <img src="https://github.com/nxtrace/NTrace-core/raw/main/assets/logo.png" height="200px" alt="NextTrace Logo"/> |
4 | 4 |
|
| 5 | +# NEXTTRACE WEB |
| 6 | + |
| 7 | +A lightweight web API server for NextTrace — run visual traceroutes from your browser. |
| 8 | + |
| 9 | +<div align="center"> |
| 10 | + |
| 11 | +[](https://hub.docker.com/r/tsosc/nexttraceweb) |
| 12 | +[](LICENSE) |
| 13 | + |
| 14 | +[中文](README.zh-CN.md) | **English** |
| 15 | + |
5 | 16 | </div> |
6 | 17 |
|
7 | | -# NEXTTRACE WEB |
| 18 | +</div> |
8 | 19 |
|
9 | | -NEXTTRACE项目派生的仓库,用于实现简易的NEXTTRACE WEB API服务端 |
| 20 | +--- |
| 21 | + |
| 22 | +<img width="1440" alt="NextTrace Web Interface" src="https://github.com/tsosunchia/nexttracewebapi/assets/59512455/798554e2-190e-4425-9527-3a11708dafd8"> |
10 | 23 |
|
11 | | -<img width="1440" alt="截屏2023-06-12 00 24 06" src="https://github.com/tsosunchia/nexttracewebapi/assets/59512455/798554e2-190e-4425-9527-3a11708dafd8"> |
12 | 24 | <p align="center"> |
13 | | - <img width="443" alt="截屏2023-06-12 00 12 57" src="https://github.com/tsosunchia/nexttracewebapi/assets/59512455/1eb4b6ce-3ed9-4728-be85-fbdabc5803bd"> |
14 | | - <img width="721" alt="截屏2023-06-12 00 26 22" src="https://github.com/tsosunchia/nexttracewebapi/assets/59512455/a0563bfc-37a8-417a-89bf-3ab87ef44d6d"> |
| 25 | + <img width="443" alt="IP Selection Dialog" src="https://github.com/tsosunchia/nexttracewebapi/assets/59512455/1eb4b6ce-3ed9-4728-be85-fbdabc5803bd"> |
| 26 | + <img width="721" alt="Traceroute Results" src="https://github.com/tsosunchia/nexttracewebapi/assets/59512455/a0563bfc-37a8-417a-89bf-3ab87ef44d6d"> |
15 | 27 | </p> |
16 | 28 |
|
| 29 | +--- |
17 | 30 |
|
| 31 | +## Overview |
18 | 32 |
|
| 33 | +NextTrace Web is a spin-off of the [NextTrace](https://github.com/nxtrace/NTrace-core) project. It provides a simple web frontend and API server so you can run traceroutes and visualize results — including hop, IP, ASN, geolocation, domain, packet loss, and latency stats — entirely from your browser. |
19 | 34 |
|
20 | | -请注意,本项目使用了websocket作为通信协议,因此请在配置反代时参考仓库内的代码(本仓库提供的Docker Image 已内置 Nginx 反代)。 |
| 35 | +> **Reverse proxy note:** This project uses WebSocket as its communication protocol. If you configure a reverse proxy, please refer to the Nginx config included in this repository. The provided Docker image already has Nginx reverse proxy built in. |
21 | 36 |
|
22 | | -Inspired by PING.PE |
| 37 | +*Inspired by [PING.PE](https://ping.pe) — thanks for years of keeping that service alive and giving the community such a great reference.* |
23 | 38 |
|
24 | | -感谢PING.PE这么多年来的坚持,让我们能够在这个时候有一个这么好的项目可以参考 |
| 39 | +--- |
25 | 40 |
|
26 | 41 | ## How To Use |
27 | 42 |
|
28 | | -推荐使用Docker安装 |
| 43 | +### Docker (Recommended) |
| 44 | + |
29 | 45 | ```bash |
30 | 46 | docker pull tsosc/nexttraceweb |
31 | 47 | docker run --network host -d --privileged --name ntwa tsosc/nexttraceweb |
32 | | -# 使用 http://your_ip:30080 访问 |
| 48 | +# Visit http://your_ip:30080 |
33 | 49 | ``` |
34 | | -若要使用其他地址和端口,请在docker run时加入参数 |
| 50 | + |
| 51 | +### Custom Address & Port |
| 52 | + |
| 53 | +Pass an address/port argument to `docker run` to override the default: |
| 54 | + |
35 | 55 | ```bash |
| 56 | +# Bind to localhost only |
36 | 57 | docker run --network host -d --privileged --name ntwa tsosc/nexttraceweb 127.0.0.1:30080 |
37 | | -# 监听127.0.0.1:30080 |
| 58 | + |
| 59 | +# Listen on all IPs, port 80 |
38 | 60 | docker run --network host -d --privileged --name ntwa tsosc/nexttraceweb 80 |
39 | | -# 监听所有IP的80端口 |
40 | | -docker run --network host -d --privileged --name ntwa tsosc/nexttraceweb [::1]:30080 |
41 | | -# 监听[::1]:30080 |
42 | | -``` |
43 | 61 |
|
| 62 | +# Listen on IPv6 loopback |
| 63 | +docker run --network host -d --privileged --name ntwa tsosc/nexttraceweb [::1]:30080 |
| 64 | +``` |
0 commit comments