✨ v3.2 全新发布Released

分布式内网穿透
与端口转发控制台

Distributed Intranet Penetration
& Port Forwarding Console

GoRelay Pro 是一款安全、轻量、全能的分布式内网穿透与端口转发控制台。基于 Go 语言原生编写,采用 Master-Agent 分布式架构,只需一个单文件即可实现全网节点的统一部署与实时监控。

GoRelay Pro is a secure, lightweight, and versatile distributed intranet penetration and port forwarding console. Written natively in Go with a Master-Agent distributed architecture, you can achieve unified deployment and real-time monitoring across your entire network with just a single file.

TCP/UDP 全协议支持Full Protocol Support
4 负载均衡策略Load Balancing Strategies
TLS 加密传输Encrypted Transfer
100 Stars 100 Forks 100 Commits

一行命令即刻部署Deploy Instantly

一行命令即可完成部署,立即拥有强大的内网穿透能力

Complete deployment with just one command and immediately gain powerful intranet penetration capabilities.

zsh — 80x24
$ curl -o relay.sh https://raw.githubusercontent.com/jinhuaitao/relay/master/relay.sh && chmod +x relay.sh && ./relay.sh
____ _ _ ____ ___ ___ | _ \ _ __ ___ | |_ ___ ___ __| | / ___/ _ \_ _| | |_) | '__/ _ \| __/ _ \/ __|/ _` || | | | | || | | __/| | | (_) | || __/\__ \ (_| || |__| |_| || | |_| |_| \___/ \__\___||___/\__,_(_)____\___/ |_|
# GoRelay Pro v1.0.0
Installing Master...
Setting up SQLite database...
Configuring systemd service...
Starting panel on http://localhost:8888
# 访问面板配置域名,即可自动申请 HTTPS 证书 # Access the panel and configure the domain to automatically apply for HTTPS certificates
$
Features

✨ 核心特性✨ Core Features

强大的功能,简洁的设计,为您提供最佳的内网穿透体验

Powerful features and simple design, providing you with the best intranet penetration experience.

强大的转发与流量调度Powerful Forwarding & Traffic Scheduling

支持 TCP、UDP 及双栈端口转发,兼容 IPv4 & IPv6。内置 4 种负载均衡策略:Random、Round Robin、Least Conn、Fastest。

Supports TCP, UDP, and dual-stack port forwarding, compatible with IPv4 & IPv6. Built-in 4 load balancing strategies: Random, Round Robin, Least Conn, Fastest.

极致的安全防护Ultimate Security Protection

Auto TLS 自动加密,全自动申请 Let's Encrypt 证书。内置 GitHub OAuth 登录,支持 Google Authenticator 2FA。

Auto TLS encryption, fully automatic Let's Encrypt certificates. Built-in GitHub OAuth login, supports Google Authenticator 2FA.

现代化 Web UI & PWAModern Web UI & PWA

基于 WebSocket 的毫秒级状态同步,动态图表展示实时速率。支持 PWA 一键添加到主屏幕,秒变独立 App。

Millisecond-level state synchronization based on WebSockets, dynamic charts displaying real-time rates. Supports PWA one-click add to home screen, instantly turning into an independent app.

Telegram 智能助理Telegram Smart Assistant

Inline Keyboard 快捷控制,发送 /menu 呼出全按键菜单。自动化流量管理,阶梯式告警与熔断。

Inline Keyboard quick control, send /menu to call up the full menu. Automated traffic management, tiered alerts, and circuit breaking.

轻量级数据存储Lightweight Data Storage

纯 Go 驱动的 SQLite 数据库,无外部依赖。备份和迁移仅需拷贝单一文件。

Pure Go-driven SQLite database, no external dependencies. Backup and migration require only copying a single file.

高并发高性能High Concurrency & Performance

充分利用 Go 原生 Goroutines,实现千万级高并发。Master-Agent 架构,支持分布式部署。

Fully utilizes Go's native Goroutines for tens of millions of concurrent connections. Master-Agent architecture supports distributed deployment.

TCP/UDP
负载均衡Load Balancing
TLS 加密TLS Encryption
PWA 支持PWA Support
Telegram Bot
SQLite
高性能High Performance
Architecture

🏗️ 系统架构🏗️ System Architecture

Master-Agent 分布式架构,轻松扩展

Master-Agent distributed architecture, easily scalable.

用户 / 客户端User / Client
访问内网服务Access intranet services
🎛️ Master 主控🎛️ Master Control
Web 面板 + 调度中心Web Panel + Scheduler
📡 Agent 节点📡 Agent Node
实际流量转发Actual traffic forwarding
Deployment

📖 部署教程📖 Deployment Guide

三种方式轻松部署,总有一款适合你

Three easy ways to deploy, find the one that suits you best.

1

一键安装脚本(推荐)One-click Install Script (Recommended)

最简单的方式,一行命令完成安装

The simplest way, install with a single command.

curl -o relay.sh https://raw.githubusercontent.com/jinhuaitao/relay/master/relay.sh && chmod +x relay.sh && ./relay.sh
2

Docker 部署Docker Deployment

使用 Docker 快速启动

Start quickly using Docker.

mkdir -p gorelay && cd gorelay docker run -d --name relay-master \ --restart=always --net=host \ -v relay_data:/app \ jhtone/relay -mode master
3

编译安装Compile from Source

手动编译安装

Manually compile and install.

# Install Go 1.20+ CGO_ENABLED=0 GOOS=linux \ GOARCH=amd64 go build -o relay main.go chmod +x relay ./relay -mode master

准备好开始了吗?Ready to get started?

免费开源,即刻拥有强大的内网穿透服务

Free and open-source, instantly get powerful intranet penetration services.