v0.1.0
PowerMap 首个公开版本 —— 基于 iroh(P2P / QUIC)的内网穿透工具。把内网服务安全地映射到本地端口,单可执行、零依赖。
官网:https://powermap.ga666666.com
安装
下载对应平台的预编译包并校验:
VERSION=v0.1.0
TARGET=aarch64-apple-darwin # 见下表
BASE=https://github.com/steven-ld/PowerMap/releases/download/$VERSION
curl -LO $BASE/powermap-$TARGET.tar.gz
curl -LO $BASE/powermap-$TARGET.sha256
shasum -a 256 -c powermap-$TARGET.sha256
tar xzf powermap-$TARGET.tar.gz| 平台 | 归档 |
|---|---|
| Linux x86_64 | powermap-x86_64-unknown-linux-gnu.tar.gz |
| Linux aarch64 | powermap-aarch64-unknown-linux-gnu.tar.gz |
| macOS Intel | powermap-x86_64-apple-darwin.tar.gz |
| macOS Apple Silicon | powermap-aarch64-apple-darwin.tar.gz |
| Windows x86_64 | powermap-x86_64-pc-windows-msvc.zip |
每个归档都附带同名 .sha256 校验文件。上手步骤见 README。
本版内容
Added
- 基于 iroh(P2P / QUIC)的内网穿透:
powermap-server(穿透端)暴露 ALPN 服务,powermap-client(用户端)把内网目标映射到本地端口。 - Web 管理页(:8088):端口映射页(连接状态、传输路径 P2P/中继、流量指标、增删映射)与连接页(粘贴凭证接入、切换连接目标),支持浅色 / 深色主题。
- 凭证持久化:
node_id+token写入powermap-client.toml,重启自动恢复。 - 多租户:
[[clients]]为每个客户配独立 token、网段/端口白名单与并发上限,支持轮换与吊销。 - 安全:token 常量时间比较、B 端目标白名单(防 DNS 重绑定 TOCTOU)、审计日志、资源上限、Web 管理页 Bearer 鉴权与可选 HTTPS。
- 可观测:A 端 Prometheus
/metrics,B 端周期性把指标打进日志。 - 运维:优雅关闭(drain 在途隧道)、断线指数退避重连、看门狗热连接。
- Docker 部署(
Dockerfile+docker-compose.yml)。
完整 changelog: https://github.com/steven-ld/PowerMap/blob/main/CHANGELOG.md