mirror of
https://github.com/nxtrace/NTrace-core.git
synced 2026-12-03 17:46:44 +00:00
update README: 加入win用户所必须的配置步骤提示
This commit is contained in:
1 parent
e62ae2b6d2
commit
d086b90c6b
2 files changed
+39
-20
No files matched your search
@@ -175,13 +175,23 @@ nexttrace --disable-mpls example.com
|
||||
export NEXTTRACE_DISABLEMPLS=1
|
||||
```
|
||||
|
||||
PS: The routing visualization drawing module was written by [@tsosunchia](https://github.com/tsosunchia), and the specific code can be viewed at [tsosunchia/traceMap](https://github.com/tsosunchia/traceMap).
|
||||
|
||||
Note that in LeoMoeAPI 2.0, due to the addition of geographical location data, **we have deprecated the online query part of the OpenStreetMap API in the traceMap plugin and are using location information from our own database**.
|
||||
|
||||
PS: The route visualization module is an independent component, You can find its source code at [nxtrace/traceMap](https://github.com/nxtrace/traceMap).
|
||||
The routing visualization function requires the geographical coordinates of each Hop, but third-party APIs generally do not provide this information, so this function is currently only supported when used with LeoMoeAPI.
|
||||
|
||||
`NextTrace` now supports quick testing, and friends who have a one-time backhaul routing test requirement can use it
|
||||
#### Mandatory Configuration Steps for `Windows` Users
|
||||
|
||||
- **For Normal User Mode:**
|
||||
Only **ICMP mode** can be used, and the firewall must allow `ICMP/ICMPv6` traffic.
|
||||
```powershell
|
||||
netsh advfirewall firewall add rule name="All ICMP v4" dir=in action=allow protocol=icmpv4:any,any
|
||||
netsh advfirewall firewall add rule name="All ICMP v6" dir=in action=allow protocol=icmpv6:any,any
|
||||
```
|
||||
- **For Administrator Mode:**
|
||||
**TCP/UDP mode** requires additional installation of `npcap` and `WinDivert`.
|
||||
**ICMP mode** requires allowing `ICMP/ICMPv6` in the firewall if `npcap` and `WinDivert` are not installed.
|
||||
You can download and install `npcap` from the official website ([https://npcap.com/#download](https://npcap.com/#download)), and `WinDivert` can be automatically configured using the `--init` parameter.
|
||||
|
||||
#### `NextTrace` now supports quick testing, and friends who have a one-time backhaul routing test requirement can use it
|
||||
|
||||
```bash
|
||||
# IPv4 ICMP Fast Test (Beijing + Shanghai + Guangzhou + Hangzhou) in China Telecom / Unicom / Mobile / Education Network
|
||||
@@ -202,7 +212,7 @@ nexttrace --file /path/to/your/iplist.txt
|
||||
## 223.5.5.5
|
||||
```
|
||||
|
||||
`NextTrace` already supports route tracing for specified Network Devices
|
||||
#### `NextTrace` already supports route tracing for specified Network Devices
|
||||
|
||||
```bash
|
||||
# Use eth0 network interface
|
||||
@@ -213,7 +223,7 @@ nexttrace --dev eth0 2606:4700:4700::1111
|
||||
nexttrace --source 204.98.134.56 9.9.9.9
|
||||
```
|
||||
|
||||
`NextTrace` can also use `TCP` and `UDP` protocols to perform `Traceroute` requests
|
||||
#### `NextTrace` can also use `TCP` and `UDP` protocols to perform `Traceroute` requests
|
||||
|
||||
```bash
|
||||
# TCP SYN Trace
|
||||
@@ -233,7 +243,7 @@ nexttrace --udp --port 5353 1.0.0.1
|
||||
nexttrace --tcp --source-port 14514 www.bing.com
|
||||
```
|
||||
|
||||
`NextTrace` also supports some advanced functions, such as ttl control, concurrent probe packet count control, mode switching, etc.
|
||||
#### `NextTrace` also supports some advanced functions, such as ttl control, concurrent probe packet count control, mode switching, etc.
|
||||
|
||||
```bash
|
||||
# Send 2 probe packets per hop
|
||||
@@ -275,7 +285,7 @@ nexttrace --no-color 1.1.1.1
|
||||
export NO_COLOR=1
|
||||
```
|
||||
|
||||
`NextTrace` supports users to select their own IP API (currently supports: `LeoMoeAPI`, `IP.SB`, `IPInfo`, `IPInsight`, `IPAPI.com`, `Ip2region`, `IPInfoLocal`, `CHUNZHEN`)
|
||||
#### `NextTrace` supports users to select their own IP API (currently supports: `LeoMoeAPI`, `IP.SB`, `IPInfo`, `IPInsight`, `IPAPI.com`, `Ip2region`, `IPInfoLocal`, `CHUNZHEN`)
|
||||
|
||||
```bash
|
||||
# You can specify the IP database by yourself [IP-API.com here], if not specified, LeoMoeAPI will be used
|
||||
@@ -300,7 +310,7 @@ export NEXTTRACE_CHUNZHENURL=http://127.0.0.1:2060
|
||||
export NEXTTRACE_DATAPROVIDER=ipinfo
|
||||
```
|
||||
|
||||
`NextTrace` supports mixed parameters and shortened parameters
|
||||
#### `NextTrace` supports mixed parameters and shortened parameters
|
||||
|
||||
```bash
|
||||
Example:
|
||||
|
||||
+19
-10
@@ -180,13 +180,22 @@ nexttrace --disable-mpls example.com
|
||||
export NEXTTRACE_DISABLEMPLS=1
|
||||
```
|
||||
|
||||
PS: 路由可视化的绘制模块由 [@tsosunchia](https://github.com/tsosunchia) 同学编写,具体代码可在 [tsosunchia/traceMap](https://github.com/tsosunchia/traceMap) 查看
|
||||
|
||||
需要注意的是,在 LeoMoeAPI 2.0 中,由于新增了了地理位置数据,**我们已经弃用 traceMap 插件中 OpenStreetMap API 的在线查询的部分,并且使用自己数据库内的位置信息**。
|
||||
|
||||
PS: 路由可视化的绘制模块为独立模块,具体代码可在 [nxtrace/traceMap](https://github.com/nxtrace/traceMap) 查看
|
||||
路由可视化功能因为需要每个 Hop 的地理位置坐标,而第三方 API 通常不提供此类信息,所以此功能目前只支持搭配 LeoMoeAPI 使用。
|
||||
|
||||
`NextTrace` 现已经支持快速测试,有一次性测试回程路由需求的朋友可以使用
|
||||
#### `Windows` 用户必须完成的配置步骤
|
||||
- 对于普通用户模式:
|
||||
只能使用 **ICMP mode**,且需防火墙配置允许`ICMP/ICMPv6`。
|
||||
```powershell
|
||||
netsh advfirewall firewall add rule name="All ICMP v4" dir=in action=allow protocol=icmpv4:any,any
|
||||
netsh advfirewall firewall add rule name="All ICMP v6" dir=in action=allow protocol=icmpv6:any,any
|
||||
```
|
||||
- 对于管理员模式:
|
||||
**TCP/UDP mode** 需要额外安装 `npcap` 及 `WinDivert`,
|
||||
**ICMP mode** 若未安装 `npcap` 及 `WinDivert`,则需防火墙配置允许`ICMP/ICMPv6`。
|
||||
其中 `npcap` 请到官网下载并安装(https://npcap.com/#download),`WinDivert` 可使用 `--init` 参数自动配置环境。
|
||||
|
||||
#### `NextTrace` 现已经支持快速测试,有一次性测试回程路由需求的朋友可以使用
|
||||
|
||||
```bash
|
||||
# 北上广(电信+联通+移动+教育网)IPv4 / IPv6 ICMP 快速测试
|
||||
@@ -207,7 +216,7 @@ nexttrace --file /path/to/your/iplist.txt
|
||||
## 223.5.5.5
|
||||
```
|
||||
|
||||
`NextTrace` 已支持指定网卡进行路由跟踪
|
||||
#### `NextTrace` 已支持指定网卡进行路由跟踪
|
||||
|
||||
```bash
|
||||
# 请注意 Lite 版本此参数不能和快速测试联用,如有需要请使用 enhanced 版本
|
||||
@@ -220,7 +229,7 @@ nexttrace --dev eth0 2606:4700:4700::1111
|
||||
nexttrace --source 204.98.134.56 9.9.9.9
|
||||
```
|
||||
|
||||
`NextTrace` 也可以使用`TCP`和`UDP`协议发起`Traceroute`请求
|
||||
#### `NextTrace` 也可以使用`TCP`和`UDP`协议发起`Traceroute`请求
|
||||
|
||||
```bash
|
||||
# TCP SYN Trace
|
||||
@@ -239,7 +248,7 @@ nexttrace --udp --port 5353 1.0.0.1
|
||||
nexttrace --tcp --source-port 14514 www.bing.com
|
||||
```
|
||||
|
||||
`NextTrace`也同样支持一些进阶功能,如 TTL 控制、并发数控制、模式切换等
|
||||
#### `NextTrace`也同样支持一些进阶功能,如 TTL 控制、并发数控制、模式切换等
|
||||
|
||||
```bash
|
||||
# 每一跳发送2个探测包
|
||||
@@ -275,7 +284,7 @@ nexttrace --no-color 1.1.1.1
|
||||
export NO_COLOR=1
|
||||
```
|
||||
|
||||
`NextTrace`支持用户自主选择 IP 数据库(目前支持:`LeoMoeAPI`, `IP.SB`, `IPInfo`, `IPInsight`, `IPAPI.com`, `Ip2region`, `IPInfoLocal`, `CHUNZHEN`)
|
||||
#### `NextTrace`支持用户自主选择 IP 数据库(目前支持:`LeoMoeAPI`, `IP.SB`, `IPInfo`, `IPInsight`, `IPAPI.com`, `Ip2region`, `IPInfoLocal`, `CHUNZHEN`)
|
||||
|
||||
```bash
|
||||
# 可以自行指定IP数据库[此处为IP-API.com],不指定则默认为LeoMoeAPI
|
||||
@@ -299,7 +308,7 @@ export NEXTTRACE_CHUNZHENURL=http://127.0.0.1:2060
|
||||
export NEXTTRACE_DATAPROVIDER=ipinfo
|
||||
```
|
||||
|
||||
`NextTrace`支持使用混合参数和简略参数
|
||||
#### `NextTrace`支持使用混合参数和简略参数
|
||||
|
||||
```bash
|
||||
Example:
|
||||
|
||||
Reference in new issue
Block a user