https://github.com/go-gost/gost
GO Simple Tunnel - a simple tunnel written in golang
https://github.com/go-gost/gost
dns dtls go golang grpc http http2 http3 https icmp-tunnel kcp quic reverse-proxy shadowsocks socks4a socks5 ssh tunnel tuntap websocket
Last synced: 9 months ago
JSON representation
GO Simple Tunnel - a simple tunnel written in golang
- Host: GitHub
- URL: https://github.com/go-gost/gost
- Owner: go-gost
- License: mit
- Created: 2020-02-12T14:58:08.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2025-02-18T15:35:15.000Z (12 months ago)
- Last Synced: 2025-04-23T07:04:48.959Z (10 months ago)
- Topics: dns, dtls, go, golang, grpc, http, http2, http3, https, icmp-tunnel, kcp, quic, reverse-proxy, shadowsocks, socks4a, socks5, ssh, tunnel, tuntap, websocket
- Language: Go
- Homepage: https://gost.run
- Size: 1.04 MB
- Stars: 4,987
- Watchers: 47
- Forks: 573
- Open Issues: 137
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-starred - go-gost/gost - GO Simple Tunnel - a simple tunnel written in golang (golang)
- StarryDivineSky - go-gost/gost - gost/gost 是一个基于 Go 语言开发的高性能网络隧道工具,旨在为用户提供简单高效的代理服务。该项目采用模块化设计,支持多种代理协议(如 Socks5、HTTP、HTTPS)和加密传输方式,可实现本地流量转发、远程隧道建立及网络代理功能。其核心工作原理是通过监听本地端口接收流量,利用预设规则或用户配置将数据通过加密通道转发至目标地址,支持 TCP/UDP 协议,并可通过插件系统扩展功能。 项目特色包括:1)支持多协议代理与加密传输,提供安全的网络通信环境;2)内置负载均衡功能,可优化高并发场景下的性能表现;3)支持模块化架构,用户可灵活配置转发规则、插件及日志记录功能;4)提供 CLI 工具与 YAML 配置文件支持,简化部署与管理;5)跨平台兼容性良好,适用于 Windows、Linux、macOS 等主流系统。gost 还具备低延迟、高吞吐的性能优势,适合用于构建私有代理网络、实现内网穿透或搭建安全通信隧道。项目文档详尽,包含使用示例、配置说明及性能调优建议,用户可通过官方仓库获取源码并参考 README 文件进行部署。 (网络信息服务 / 网络代理)
- awesome-ops - go-gost/gost - 02-12|2025-10-11 | GO语言实现的安全隧道 | (内网穿透)
- awesome-repositories - go-gost/gost - GO Simple Tunnel - a simple tunnel written in golang (Go)
README
# GO Simple Tunnel
### GO语言实现的安全隧道
[](README.md) [](README_en.md)
## 功能特性
- [x] [多端口监听](https://gost.run/getting-started/quick-start/)
- [x] [多级转发链](https://gost.run/concepts/chain/)
- [x] [多协议支持](https://gost.run/tutorials/protocols/overview/)
- [x] [TCP/UDP端口转发](https://gost.run/tutorials/port-forwarding/)
- [x] [反向代理](https://gost.run/tutorials/reverse-proxy/)和[隧道](https://gost.run/tutorials/reverse-proxy-tunnel/)
- [x] [TCP/UDP透明代理](https://gost.run/tutorials/redirect/)
- [x] DNS[解析](https://gost.run/concepts/resolver/)和[代理](https://gost.run/tutorials/dns/)
- [x] [TUN/TAP设备](https://gost.run/tutorials/tuntap/)
- [x] [负载均衡](https://gost.run/concepts/selector/)
- [x] [路由控制](https://gost.run/concepts/bypass/)
- [x] [准入控制](https://gost.run/concepts/admission/)
- [x] [限速限流](https://gost.run/concepts/limiter/)
- [x] [插件系统](https://gost.run/concepts/plugin/)
- [x] [Prometheus监控指标](https://gost.run/tutorials/metrics/)
- [x] [动态配置](https://gost.run/tutorials/api/config/)
- [x] [Web API](https://gost.run/tutorials/api/overview/)
- [x] [GUI](https://github.com/go-gost/gostctl)/[WebUI](https://github.com/go-gost/gost-ui)
## 概览

GOST作为隧道有三种主要使用方式。
### 正向代理
作为代理服务访问网络,可以组合使用多种协议组成转发链进行转发。

### 端口转发
将一个服务的端口映射到另外一个服务的端口,同样可以组合使用多种协议组成转发链进行转发。

### 反向代理
利用隧道和内网穿透将内网服务暴露到公网访问。

## 下载安装
### 二进制文件
[https://github.com/go-gost/gost/releases](https://github.com/go-gost/gost/releases)
### 安装脚本
```bash
# 安装最新版本 [https://github.com/go-gost/gost/releases](https://github.com/go-gost/gost/releases)
bash <(curl -fsSL https://github.com/go-gost/gost/raw/master/install.sh) --install
```
```bash
# 选择要安装的版本
bash <(curl -fsSL https://github.com/go-gost/gost/raw/master/install.sh)
```
### 源码编译
```
git clone https://github.com/go-gost/gost.git
cd gost/cmd/gost
go build
```
### Docker
```
docker run --rm gogost/gost -V
```
## 工具
### GUI
[go-gost/gostctl](https://github.com/go-gost/gostctl)
### WebUI
[go-gost/gost-ui](https://github.com/go-gost/gost-ui)
### Shadowsocks Android插件
[xausky/ShadowsocksGostPlugin](https://github.com/xausky/ShadowsocksGostPlugin)
## 帮助与支持
Wiki站点:[https://gost.run](https://gost.run)
YouTube: [https://www.youtube.com/@gost-tunnel](https://www.youtube.com/@gost-tunnel)
Telegram:[https://t.me/gogost](https://t.me/gogost)
Google讨论组:[https://groups.google.com/d/forum/go-gost](https://groups.google.com/d/forum/go-gost)
旧版入口:[v2.gost.run](https://v2.gost.run)