TrustTunnel's newest tag is a beta published one second after the last commit, and its release profile keeps debug symbols
Modern, fast and obfuscated VPN protocol
At a glance
- What is it?
- TrustTunnel is the server half of a three-repository VPN project: an Apache-2.0 Rust endpoint implementing a protocol compatible with HTTP/1.1, HTTP/2 and QUIC, originally developed by a commercial VPN product and open-sourced for auditing. Its default log level is trace, its workspace builds release binaries with debug information on, its container build stage is a Python image, and the compose file publishes port 80 purely for a certificate challenge.
- Who is it for?
- Use the TrustTunnel endpoint if you are self-hosting a VPN that has to survive inspection of its traffic, because the whole design premise is that the protocol is indistinguishable from ordinary web traffic and there is a documented install path, a configuration wizard and a certificate lifecycle. Three things to check before you put it in front of users.
- Can I use it commercially?
- Yes. Apache-2.0 is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
- Is it still maintained?
- Yes. The repository last received commits 4 days ago.
- What is it written in?
- Mainly Rust, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 23, 2026, and from our analysis. They are not legal advice.
Star history
- TrustTunnel/TrustTunnel3,606 ★ · +127
| Repository | 2026-09-24 | 2026-11-23 |
|---|---|---|
| TrustTunnel/TrustTunnel | 3.5k | 3.6k |
127 Stars in the last 60 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
The newest tag is a beta published one second after the last commit
Read the three newest release tags and one of them is not a stable release.
The newest is a pre-release of the next minor, published at a timestamp one second after the last push to the default branch. Before it comes a point one release from a month earlier. Before that, a patch from April, which means the four-to-one point zero line was where the project sat for several months.
So the version history goes from a patch release, to a minor, to a pre-release of the next minor, with no point two in the visible history. Whether a minor was released and not tagged, or the numbering skipped, is not answerable from these three.
What is answerable is that the tag matching the tip of the branch is a beta. So the newest thing you can install from the release list is a pre-release, while the newest stable is a month old.
The repository is not archived, the default branch is master, the licence is Apache-2.0 and the site is at the project's own domain, with a separate client library and a separate graphical application in two sibling repositories.
Release builds keep debug symbols on
The workspace manifest is eleven lines long, and four of them are about the release profile.
[profile.release]
debug = trueThat single line makes every release binary in this project carry debug information: symbol tables, line tables and enough state for a debugger or a crash reporter to produce a usable stack trace.
For a network daemon this is a defensible choice. A protocol implementation that fails in the field with a stripped binary gives you an address and nothing else, and the ability to attach a debugger to a running endpoint is worth more than the disk space the symbols cost.
It is also a decision the reader of the manifest should notice, because it affects the artefact people download. The install script fetches a prebuilt package per architecture, and those packages are built from this profile. So the binary you install is larger than a stripped equivalent would be, and the difference is invisible unless you look at the file.
Everything else in the manifest is the workspace declaration: five member directories, and a resolver version.
The build stage is a Python image
The container file builds a Rust project in two stages, and the first stage is not a Rust image.
It starts from a slim Debian image tagged for Python 3.13, installs a C toolchain, cmake, curl, make, git and the clang development headers, and then installs Rust through the official bootstrap script with a toolchain version passed in as a build argument.
So the reason for the Python image is not Python. It is the clang headers and cmake, which a Rust image with a build-essential package would not necessarily carry, and which the project needs because something in the tree binds against a C library.
The cost is a build stage several times larger than the runtime stage, which is the second one: a slim Debian with two packages installed, a certificate bundle and the network tools the health check needs. Two binaries are copied out of the build stage and nothing else.
That asymmetry is the interesting part of the file. The build environment is a general-purpose image with a compiler toolchain installed by hand, and the thing that ships is two static-ish binaries on a minimal base. It is a conventional two-stage layout done with a surprising base image for the first stage.
The compose file publishes port 80 for a certificate challenge and tells you to close it
The compose file maps two ports for the VPN itself and a third for something else, and the comment on the third one is unusually good practice.
The service listens inside the container on 8443, and the mapping sends host port 443 to it for both TCP and UDP. Two transports, one port, which is what you need for a tunnel that carries both reliable and unreliable traffic.
Then a third mapping sends host port 80 to the container, and the comment above it says it is required for a certificate authority's HTTP challenge, and to remove the port if you do not issue or renew certificates inside the container.
That is a comment doing real work. Anyone deploying this by copying the compose file would otherwise publish port 80 with no idea why, and would leave it open indefinitely.
The rest of the file is careful in the same way: the restart policy, a build target and a local image tag, one environment variable for the port the health check probes, and a health check that greps the listening socket for that port every thirty seconds with a twenty-second grace period. The volume holds the endpoint's state directory, which is where its configuration and certificates live.
The build default log level is the most verbose one
The makefile has seventeen variables and one of them is a mistake waiting to happen in production.
LOG_LEVEL ?= traceThe variable is used by the target that runs the endpoint locally, and it defaults to the most verbose level a logging library offers, rather than to something you'd want in a deployment.
Everything else in that block is more carefully chosen. The build type is a release build by default with a conditional that adds the release flag. The two configuration file names default to the same names the container's volume comment lists, which is a nice consistency between two files that have to agree. The listen address and port default to the obvious values. The listen address and port default to a wildcard address and the HTTPS port.
Two of the variables are not really configuration. One is the endpoint repository address in SSH form, and another is the version, defaulting to a branch name. Those two are for development, and a default of a branch rather than a release is a reasonable choice for a developer target and a wrong one for a deployment script that includes this file.
Ruby tooling and mobile release automation sit in the endpoint repository
The root listing of a Rust network daemon contains a Gemfile, a locked Gemfile, a directory of fastlane files, and a directory of continuous integration specifications for a different vendor's system.
The Ruby pair and the fastlane directory are mobile release automation, and they are here because this repository is where the protocol and the endpoint live while the applications that use them are built and shipped from elsewhere. Fastlane's job is exactly that: signing, store submission, metadata.
So a deployment of the server pulls in a Ruby toolchain's lockfile and a mobile automation directory, neither of which the server binary needs.
The other continuous integration directory is specifications for a hosted build system that most contributors will never run locally, which is a different kind of dependency: it is documentation of the pipeline in a vendor's format rather than a tool the project runs.
What is genuinely useful in the listing is the pair of verification documents. One covers release verification and another covers certificate renewal, both as separate files at the root. For a project that ships binaries to servers and manages certificates for them, having the release verification procedure written down next to the release process is the difference between a reproducible upgrade and a hopeful one.
Two Dockerfiles, because one path builds and one path assembles
There are two container files at the root, and the naming tells you what each is for.
One is the plain name and it is the file you read above: it installs a compiler toolchain, installs Rust, copies the source, invokes two make targets, and copies the resulting binaries out. It is a from-source build.
The other has a suffix that names the alternative: it assembles an image from binaries that already exist.
That is the right pair to have for this project, because the two paths serve different users. Somebody evaluating the protocol wants to build it and read the source. Somebody running an endpoint wants the prebuilt package for their architecture with no toolchain in the build, and the install script already offers prebuilt packages for two Linux architectures and one universal macOS build.
The compose file points at the first one by name, so the documented local path is a source build. A deployment using the compose file therefore compiles the project on the machine that runs it, which is the opposite of what the quick start tells you to do with the install script.
Nothing is wrong with either choice. They are simply two different workflows, and the compose file picks the slower one.
The client feature list describes a repository this one does not contain
The introduction splits the project into three pieces and names each one.
This repository is the endpoint. The library and command line tool for the client are in a second repository. The graphical application is in a third.
Then the README has a client features section that describes the client: tunnelling from the client to the endpoint and back, cross-platform support for three desktop systems, a system-wide tunnel through a virtual network interface alongside a SOCKS5 proxy, split tunnelling driven by an exclusion list, and a custom DNS upstream for queries routed through the endpoint.
None of that is implemented here. It is documentation for a sibling repository, in the endpoint's readme, in the endpoint's release notes, and it will drift at whatever rate the two repositories change.
It is a common pattern in a protocol project: one repository is the reference and it ends up documenting the others, because that is where people arrive. The cost is that a reader of this repository gets two feature lists of different lengths, one of which describes software they would have to install separately, and the store links at the top of the file point at three application builds rather than at anything in the source tree.
Editorial conclusion
Use the TrustTunnel endpoint if you are self-hosting a VPN that has to survive inspection of its traffic, because the whole design premise is that the protocol is indistinguishable from ordinary web traffic and there is a documented install path, a configuration wizard and a certificate lifecycle. Three things to check before you put it in front of users. Which build you install, because the installer always takes the latest prebuilt package and prebuilt packages exist only for two Linux architectures and one universal macOS build. What your endpoint will log, because the build default is the most verbose level and nothing in the quick start lowers it. And where the configuration lives, because the wizard writes several files into one directory and the container declares that directory as its volume, so it is the only thing you need to back up or mount.
Frequently asked questions
What is TrustTunnel?
It is the server half of a three-repository project: an Apache-2.0 Rust endpoint implementing a VPN protocol compatible with HTTP/1.1, HTTP/2 and QUIC, originally developed by AdGuard VPN and open-sourced for anyone to use and audit. It tunnels TCP, UDP and ICMP, runs on Linux and macOS, and its clients exist for Android, Apple platforms, Windows and Linux. The client library and command line tool are in a sibling repository and the graphical application in another.
Is TrustTunnel an open-source protocol?
The introduction describes it as a modern, open-source VPN protocol originally developed by a commercial VPN product and now available for anyone to use and audit, on the basis that its traffic is indistinguishable from ordinary HTTPS and therefore bypasses throttling and deep packet inspection. The endpoint here is Apache-2.0 licensed, and store links at the top of the readme point at iOS, macOS and Android application builds.
how to use trust tunnel
The quick start covers the endpoint. Install it with one piped shell command that downloads the prebuilt package for your architecture from the latest release and unpacks it into an install directory, with a flag to choose the directory and another to pin a version. Then run the configuration wizard in that directory with elevated privileges, because it manages TLS certificates, and it asks for the listen address, a credentials file path, a username and password, whether to add another user, and the rules file path.
Which architectures can I install the TrustTunnel endpoint on?
Prebuilt packages exist for two Linux processor architectures and one universal macOS build covering both Intel and Apple Silicon. There is no prebuilt Windows package. To update an existing installation you run the install command again, since the script always installs the latest available version, after stopping the running service.
Does TrustTunnel support split tunnelling and a custom DNS?
The client feature list says so, in a section that documents the client rather than this endpoint: connections to chosen domains or hosts can be excluded from routing through the endpoint, or conversely only chosen ones routed through it, using an exclusion list; and a custom DNS upstream can be specified for queries routed through the endpoint. The client is a separate repository.
What does the TrustTunnel subscription endpoint do?
Optionally, it serves a per-user subscription URL over HTTPS. When the relevant setting is enabled in the endpoint's configuration file, each client can fetch its own JSON configuration over HTTPS using HTTP Basic Auth, including connection parameters, credentials and DNS upstreams, which enables self-service and auto-refreshing client configuration without distributing files by hand.
Official sources
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.
[](https://hysenlabs.com/projects/trusttunnel-trusttunnel)Star history chart for your README
[](https://hysenlabs.com/projects/trusttunnel-trusttunnel)Was this useful?