Open-source project
snail007/goproxy avatar
snail007/goproxy

snail007/goproxy packs HTTP, SOCKS5, KCP and NAT tunneling into one Go binary, with a free and a commercial edition

Proxy is a high-performance HTTP(S), SOCKS5, WebSocket, TCP, and UDP proxy server implemented in Go. Supports chain-style proxies, NAT forwarding across different LANs, TCP/UDP port forwarding, and SSH forwarding.

17,157 stars3,084 forksGoGPL-3.0

At a glance

What is it?
A GPL-3.0 proxy server written in Go that chains proxies, converts between protocols, forwards TCP and UDP ports and tunnels through NAT. This is not the Go module proxy that the GOPROXY environment variable points at.
Who is it for?
Use snail007/goproxy when you need one binary that chains HTTP, SOCKS5 and SS proxies, encrypts hops with TLS or KCP and punches through NAT, and you can live with GPL-3.0 terms. Look elsewhere if you wanted the Go module proxy behind GOPROXY, or if you need features locked to the commercial edition.
Can I use it commercially?
Yes, with conditions. GPL-3.0 is a copyleft licence: if you distribute software that includes it, you must release that software's source code under the same licence. Running it internally without distributing it does not trigger that obligation.
Is it still maintained?
Yes. The repository last received commits 101 days ago.
What is it written in?
Mainly Go, according to GitHub's language statistics.

Answers come from the project's GitHub data, last synced on November 25, 2026, and from our analysis. They are not legal advice.

From daily snapshots

Star history

  • snail007/goproxy17,157 ★ · +19
Star history
Repository2026-10-082026-11-25
snail007/goproxy17.1k17.2k

19 Stars in the last 48 days, measured from the daily GitHub snapshot. Compare with other projects

Editorial analysis

This repository is a proxy server, not the GOPROXY module mirror

The name is easy to confuse with the GOPROXY environment variable, its values like direct or off, or the go.mod file. Those belong to the Go toolchain's module download setting. snail007/goproxy is a different thing: a network proxy server whose description reads HTTP(S), SOCKS5, WebSocket, TCP and UDP, written in Go, with chain-style proxies, NAT forwarding across different LANs, TCP/UDP port forwarding and SSH forwarding.

Its own go.mod declares the module github.com/snail007/goproxy with go 1.16 and a short dependency list: golang.org/x/time and gopkg.in/alecthomas/kingpin.v2, plus indirect entries for alecthomas/template, alecthomas/units and stretchr/testify. Nothing in that file configures module fetching for your own projects. If you came to fix a failing go get, this is the wrong repository.

Chained proxies can encrypt each hop with TLS, KCP or an AES256 password

A node can act as a level one proxy or as a second, third or Nth level, as long as it is configured with an upstream. When the upstream is also this program, the link between the two can be encrypted with TLS. For HTTP(S), SPS and SOCKS proxies, the README adds KCP as a transport to cut latency, and a custom encryption layer that can sit after TLS or KCP. That custom layer uses AES256 internally, so you only define a password.

Compression can be added after encryption. Certificates are passed with the -C and -K parameters as file paths, and a value starting with base64:// is treated as base64 data and decoded before use. That last detail helps in containers where mounting a certificate file is awkward. The load balancing option reuses the -P parameter: repeat it for multiple upstreams to get balancing and failover.

Smart mode only goes direct for sites it judges unblocked

The HTTP and SOCKS5 proxies have a smart mode. It decides whether the visited site is blocked. If it is blocked, traffic goes through the configured upstream. If it is not, the proxy connects directly to speed up access. The condition is stated in the README: this works only when an upstream proxy is configured. With no upstream, there is nothing to fall back to.

The repository root ships files named blocked and direct, alongside hosts, resolve.rules, rewriter.rules and ad.txt, which line up with the domain black and white list feature. Treat the first requests to a new domain as a place to test rather than assume. A wrong guess means a site you wanted proxied goes out directly, or the reverse.

One port can speak HTTP, SOCKS5 and SS after protocol conversion

Protocol conversion turns an existing HTTP(S), SOCKS5 or SS proxy into a single port that serves HTTP(S), SOCKS5 and SS at the same time. The converted proxy keeps cascading authentication. If the upstream is SOCKS5, UDP is supported through it.

The practical gain is fewer listening ports and fewer processes to supervise. The README also lists range-port listening for HTTP(S), SOCKS5, SPS and TCP, so you can bind a block of ports from one process instead of launching many. The constraint is on the upstream side: UDP support depends on the upstream being SOCKS5, so an HTTP-only upstream gives you no UDP path through the converted port.

Intranet penetration works for TCP and UDP, and SSH can replace a remote server

For reaching a machine behind a NAT or firewall, the program supports intranet penetration over both TCP and UDP. The README gives reasons people deploy it that way: debugging a WeChat interface developed locally, remote access to intranet machines, and playing LAN games with friends over the internet. It names tools like peanut shell and Netnet as the things it replaces.

SSH relay is the other tunneling route. HTTP(S) and SOCKS5 proxies can relay over SSH, and the README says the upper Linux server then needs no server software installed, so a local proxy is enough. Transparent HTTP(S) mode pairs with iptables to redirect outgoing ports 80 and 443 at a gateway to the proxy, which gives you router-level proxying that client machines never configure. That mode needs a Linux gateway where you control the firewall rules.

Access control comes from client IP lists, speed limits and an external API

Client IP black and white lists cover Socks, HTTP(S), SPS, TCP, UDP, DNS and the intranet NAT bridge components. If both lists are set at the same time, only the whitelist takes effect, so a blacklist entry you add next to an existing whitelist does nothing.

Speed limits and connection limits can be set per user or per IP. They come from a configuration file or from an external API, which can also pick the upstream dynamically. The egress IP feature lets the proxy use the ingress IP the client connected to as the outgoing address, with one exception: if the ingress IP is an intranet address, the egress IP does not use it. A secure DNS proxy relays queries through the encrypted proxy chain to avoid DNS pollution.

Free and commercial editions share a repository, and the manuals split by language

The README points to a page titled Free version VS commercial version, and the root contains separate scripts: install.sh and install_auto.sh next to install_commercial.sh and install_auto_commercial.sh. Read the comparison page before building a plan around a feature, because the README feature list does not mark which items belong to which edition. The code is GPL-3.0, which obliges you to share source if you distribute modified builds.

Chinese readers are told that install and other resource links differ between the Chinese and English texts, so follow the matching README. Related projects are linked from the top: ProxyAdmin as a web console, a Desktop Edition, Android Global and Server Editions, and an SDK. The latest tagged release is v15.3 from 2026-08-17, after v15.2 on 2025-09-02 and v15.1 on 2025-06-11. The repository is not archived.

Editorial conclusion

Use snail007/goproxy when you need one binary that chains HTTP, SOCKS5 and SS proxies, encrypts hops with TLS or KCP and punches through NAT, and you can live with GPL-3.0 terms. Look elsewhere if you wanted the Go module proxy behind GOPROXY, or if you need features locked to the commercial edition. First read the free versus commercial comparison page linked from the README, and choose between the English and Chinese manuals, since their install links differ.

Frequently asked questions

What does snail007/goproxy do?

It is a proxy server in Go that handles HTTP(S), SOCKS5, WebSocket, TCP and UDP. It supports chained proxies, NAT forwarding across LANs, TCP/UDP port forwarding and SSH forwarding.

What is snail007/goproxy used for?

The README lists tunneling to reach services that are otherwise unreachable, debugging a WeChat interface locally, remote access to intranet machines and playing LAN games with friends over the internet.

How do I get snail007/goproxy?

Binaries are on the GitHub releases page, which the README links as Download. The repository also contains install.sh, install_auto.sh and commercial variants of both, and the Chinese and English install links differ.

Official sources

  1. License: GPL-3.0
  2. Project website
  3. README
  4. Releases
  5. snail007/goproxy on GitHub
Add this badge to your README

If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.

Add this badge to your README

markdown
[![Hysen Labs](https://hysenlabs.com/badge/snail007-goproxy.svg)](https://hysenlabs.com/projects/snail007-goproxy)

Star history chart for your README

markdown
[![Star history](https://hysenlabs.com/chart/snail007-goproxy.svg)](https://hysenlabs.com/projects/snail007-goproxy)

Was this useful?