Skip to content

gotun 0.8.0#261055

Merged
BrewTestBot merged 2 commits intomainfrom
bump-gotun-0.8.0
Jan 3, 2026
Merged

gotun 0.8.0#261055
BrewTestBot merged 2 commits intomainfrom
bump-gotun-0.8.0

Conversation

@BrewTestBot
Copy link
Contributor

Created by brew bump


Created with brew bump-formula-pr.

Details

release notes
## ✨ 核心功能更新

新增 TUN 模式 (TCP Only)

gotun 引入了强大的 TUN 模式,通过创建虚拟网卡,实现了对所有基于 TCP 协议的应用层流量的透明代理。

  • 全应用支持: 不再局限于浏览器,现在可以完美支持 RDP 远程桌面数据库连接 (MySQL/PostgreSQL)、RedisSSH 等任何基于 TCP 的客户端。
  • 指定网段代理: 支持指定网段代理 (--tun-route),仅将特定内网流量导入 SSH 隧道,不影响本机其他网络访问。
  • 网段映射 (NAT): 解决了本地与远程网段冲突的痛点。通过 --tun-nat 参数,可以将远程冲突网段映射到本地的一个空闲网段,实现无缝访问。

使用场景示例 (RDP 远程桌面):
假设您在 192.168.1.0/24,目标 Windows 在远程内网 192.168.2.1 (网段 192.168.2.0/24)。

# 建立隧道,将去往 192.168.2.0/24 的流量全部通过 SSH 转发
gotun user@jump-host --tun-route 192.168.2.0/24

启动后,直接使用 RDP 客户端连接 192.168.2.1 即可,就像在局域网内一样!

⚠️ 注意: 当前版本的 TUN 模式仅支持 TCP 协议。不支持 UDP 流量和 ICMP (ping)。

⚙️ 命令行参数优化 (语义化变更)

为了使参数更加直观和符合语义,我们对部分参数进行了重命名(旧参数仍兼容,但建议迁移):

  • HTTP 代理:

  • --listen (-l) ➡️ --http:指定本地 HTTP 代理监听地址。

  • --target (-t) ➡️ --http-upstream:指定 HTTP 代理的上游目标(反向代理模式)。

  • TUN 模式参数:

  • --tun:显式启用 TUN 模式。

  • --tun-global (-g):启用全局 TUN 模式(慎用,可能与 Clash/ZeroTier 冲突)。

  • --tun-route <CIDR>:指定走代理的目标网段。

  • --tun-nat <Local:Remote>:启用网段映射。

🛠️ 内部改进

  • gVisor 集成: 引入了 gVisor 的用户态协议栈 (netstack) 来处理 TUN 设备的 TCP/IP 流量,确保了稳定性和跨平台兼容性。
  • Wintun 支持: Windows 平台采用高性能的 Wintun 驱动(需配合 wintun.dll 使用)。

What's Changed

Full Changelog: Sesame2/gotun@v0.7.0...v0.8.0

View the full release notes at https://github.com/Sesame2/gotun/releases/tag/v0.8.0.


@github-actions github-actions bot added go Go use is a significant feature of the PR or issue bump-formula-pr PR was created using `brew bump-formula-pr` labels Jan 3, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Jan 3, 2026

🤖 An automated task has requested bottles to be published to this PR.

Caution

Please do not push to this PR branch before the bottle commits have been pushed, as this results in a state that is difficult to recover from. If you need to resolve a merge conflict, please use a merge commit. Do not force-push to this PR branch.

@github-actions github-actions bot added the CI-published-bottle-commits The commits for the built bottles have been pushed to the PR branch. label Jan 3, 2026
@BrewTestBot BrewTestBot enabled auto-merge January 3, 2026 14:31
@BrewTestBot BrewTestBot added this pull request to the merge queue Jan 3, 2026
Merged via the queue into main with commit ccaa7c4 Jan 3, 2026
22 checks passed
@BrewTestBot BrewTestBot deleted the bump-gotun-0.8.0 branch January 3, 2026 14:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bump-formula-pr PR was created using `brew bump-formula-pr` CI-published-bottle-commits The commits for the built bottles have been pushed to the PR branch. go Go use is a significant feature of the PR or issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants