# 使用 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

## 软件包事实

- **软件包键:** brew:gotun
- **软件包管理器:** Homebrew
- **版本:** 0.8.1
- **来源摘要:** Lightweight HTTP proxy over SSH
- **主页:** <https://github.com/Sesame2/gotun>
- **仓库:** <https://github.com/Sesame2/gotun>
- **最后更新:** 2026-07-29T16:05:05+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- gotun (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.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
## 其他软件包管理器记录

- 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Tool to run tests on OpenStack | https://github.com/kushaldas/gotun


## 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
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
