tcptraceroute for Mac 版
使用 TCP 数据包的 Traceroute 实现
tcptraceroute 是什么
tcptraceroute 是一个用 TCP 数据包实现的路由追踪工具,作者 Michael C. Toren,采用 GPL v2 许可发布。传统 traceroute 依赖 ICMP 或 UDP 探测,而它改用 TCP 包来完成路径探测,因此在防火墙过滤 ICMP/UDP 的网络里往往能拿到更真实的路由结果。程序依赖 libnet 和 libpcap 两个库,编译方式参见源码中的 INSTALL 文件。它适合网络管理员和运维人员在排查连通性、分析链路走向时使用,尤其是面对只放行 TCP 的受限环境。需要注意的是,项目本身不提供任何担保,功能范围仅限于路由追踪这一件事。
如何安装 tcptraceroute
- 打开 终端(按 ⌘ + 空格,输入“终端”)。
- 如果还没安装 Homebrew,先运行下面这条安装命令。
- 运行下面这条命令:
最近 10 个版本记录
该项目暂未在 GitHub 发布 Release。
二进制包支持平台
Homebrew 官方提供的预编译包(bottle)覆盖:
- Apple 芯片 · 最新 macOS
- Apple 芯片 · macOS 26 Tahoe
- Apple 芯片 · macOS 15 Sequoia
- Apple 芯片 · macOS 14 Sonoma
- Apple 芯片 · macOS 13 Ventura
- arm64_monterey
- arm64_big_sur
- Intel · macOS 14 Sonoma
- Intel · macOS 13 Ventura
- Intel · macOS 12 Monterey
- big_sur
- Linux · ARM64
- Linux · x86_64
安装注意事项
tcptraceroute requires root privileges so you will need to runn`sudo tcptraceroute`.nYou should be certain that you trust any software you grant root privileges.n
与同类应用对比
只对比公开元数据,不做主观推荐;需要逐项对比时见对比页。
| 应用 | 版本 | 许可证 | 架构 | 近 30 天安装 |
|---|---|---|---|---|
| tcptraceroute | 1.5beta7 | GPL-2.0-only | 命令行 | 146 |
| toxiproxy | v2.13.0 | MIT | 命令行 | 181 |
| ttl | v0.25.0 | MIT | 命令行 | 169 |
| iperf | 2.2.1 | BSD-3-Clause | 命令行 | 211 |