Merged
Conversation
botantony
approved these changes
Jan 3, 2026
Contributor
|
🤖 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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Created by
brew bumpCreated with
brew bump-formula-pr.Details
release notes
--tun-route),仅将特定内网流量导入 SSH 隧道,不影响本机其他网络访问。--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即可,就像在局域网内一样!⚙️ 命令行参数优化 (语义化变更)
为了使参数更加直观和符合语义,我们对部分参数进行了重命名(旧参数仍兼容,但建议迁移):
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>:启用网段映射。🛠️ 内部改进
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.