# 使用 Homebrew, dnf 安装 gotun

查看 gotun 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:gotun
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install gotun
```

  证据: local Homebrew formula metadata

### Linux

- dnf (92%):

```sh
sudo dnf install gotun
```

  证据: Fedora Rawhide package metadata: gotun from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

## 软件包事实

- **软件包键:** brew:gotun
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/gotun>
- **版本:** 0.8.1
- **来源摘要:** Lightweight HTTP proxy over SSH
- **主页:** <https://github.com/Sesame2/gotun>
- **仓库:** <https://github.com/Sesame2/gotun>
- **许可证:** MIT
- **源码归档:** <https://github.com/Sesame2/gotun/archive/refs/tags/v0.8.1.tar.gz>
- **最后更新:** 2026-07-29T16:05:05+02:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- gotun (cli)
- gotun (别名)

## 构建依赖

- go

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.8.1
- 管理器更新时间: 2026-07-29
- 本地数据: OK
- 上游仓库: https://github.com/Sesame2/gotun
- 检测到的最新版本: v0.8.1 (当前)
## 项目历史与用法

gotun is a Go command-line HTTP-over-SSH proxy that uses a remote SSH host as the egress point for HTTP and HTTPS traffic.

### 项目历史

The official README describes gotun as a cross-platform forward proxy that requires only SSH on the remote host. Its feature set includes HTTP and HTTPS proxying, SOCKS5, jump hosts, system proxy integration, rule-based routing, shell completion, and TUN mode for TCP application proxying.

### 采用历史

gotun is distributed through release binaries, `go install`, Homebrew, and source builds. Homebrew packages version 0.8.1 in homebrew/core, and the README also links Go Reference documentation via pkg.go.dev.

### 使用方式

Users run `gotun user@example.com` to start a local proxy, add `-p` or `-i` for SSH port and identity file selection, use `-J` for jump hosts, and pass `--rules` to load a Clash-style YAML rules file. The README recommends SSH key authentication and warns against passing passwords directly on the command line.

### 为什么软件包爱好者会关心

gotun fits the packaging niche of small Go networking binaries: one executable, cross-platform release artifacts, Homebrew distribution, and behavior that composes with existing SSH infrastructure instead of requiring a remote daemon.

### 时间线

- 0.8.1: Homebrew packages gotun as the current stable release.
- README era: SOCKS5, rule-based routing, jump hosts, and TUN mode are documented upstream.

### Related projects

- gotun is related to OpenSSH port forwarding, SOCKS proxies, Clash-style rule files, SSH jump hosts, and TUN/TAP-style tunneling tools.

### 来源

- <https://formulae.brew.sh/formula/gotun>
- <https://github.com/Sesame2/gotun#readme>
- <https://pkg.go.dev/github.com/Sesame2/gotun>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: rules.yaml

## Credential files

- Unix: ~/.ssh/id_rsa
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** gotun
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## 其他软件包管理器记录

- dnf - gotun - 0-0.24.gita9dbe4d.fc42: normalized package name match | Fedora Rawhide package metadata: gotun from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Tool to run tests on OpenStack | https://github.com/kushaldas/gotun
- dnf - gotun-devel - 0-0.24.gita9dbe4d.fc42: normalized package name match | Fedora Rawhide package metadata: gotun-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Tool to run tests on OpenStack | https://github.com/kushaldas/gotun


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [corkscrew](https://pkg.so/zh-hans/brew/corkscrew/) - Shares pkgdb curated category or tags: cli, http-proxy, networking, proxy, ssh.
- [connect](https://pkg.so/zh-hans/brew/connect/) - Shares pkgdb curated category or tags: cli, networking, proxy, ssh, tunneling.
- [proxychains-ng](https://pkg.so/zh-hans/brew/proxychains-ng/) - Shares pkgdb curated category or tags: cli, http-proxy, networking, proxy.
- [shadowsocks-libev](https://pkg.so/zh-hans/brew/shadowsocks-libev/) - Shares pkgdb curated category or tags: cli, networking, proxy, socks5.
- [shadowsocks-rust](https://pkg.so/zh-hans/brew/shadowsocks-rust/) - Shares pkgdb curated category or tags: cli, networking, proxy, socks5.
- [microsocks](https://pkg.so/zh-hans/brew/microsocks/) - Shares pkgdb curated category or tags: cli, networking, proxy, socks5.
- [proxytunnel](https://pkg.so/zh-hans/brew/proxytunnel/) - Shares pkgdb curated category or tags: cli, networking, proxy, ssh, tunneling.
- [sslh](https://pkg.so/zh-hans/brew/sslh/) - Shares pkgdb curated category or tags: cli, networking, proxy, ssh.

## Combined YAML source

View the package source record on GitHub. [combined/gotun.yml](https://github.com/mxcl/pkgdb/blob/main/combined/gotun.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
