A self-hosted "Stealth VPN" implementation, forked from xray-core and WireGuard. It makes your traffic look like normal TLS traffic but little does your ISP know there is an entire encrypted WireGuard tunnel in there...
Self-hosted stealth VPN. Your traffic looks like normal HTTPS to a major website. Your ISP has no idea you're tunneling anything. Works on Mac, Linux, Windows, iPhone, and Android. One command deploys the server, another spits out configs for every device you own.
I travel a lot. Hotel Wi-Fi, sketchy airport networks, countries where half the internet is blocked or actively monitored. I got tired of running into the same three problems over and over.
First one: regular VPNs get blocked. Not just in the obvious places like China or Iran. Corporate networks, coffee shops with weird filtering, hotel Wi-Fi that throws up captive portals and then flags WireGuard traffic. You fire up NordVPN and it just... doesn't work. Or it works for ten minutes and then the network figures out what you're doing and cuts you off.
Second one: consumer VPNs want you to trust them. Nord, Express, Mullvad, whoever. They all promise "no logs" but you're taking their word for it. Their entire business model requires you to believe them about something you can't verify. I'm not comfortable handing my traffic to a company I can't audit, especially when that company owns the exit point for everything I do online.
Third one: my family. My partner, my parents, people who aren't going to SSH into a VPS and fiddle with configs. I wanted something I could set up once and then just hand them a file that makes their phone work safely anywhere. No monthly subscription, no app full of ads, no trusting some random Panama corporation with their browsing history.
The existing options all suck in different ways. WireGuard alone is fast and clean but trivially detectable — every modern DPI system can fingerprint it in milliseconds. OpenVPN is slower AND detectable. Commercial VPNs are blocked and require trust. Tor is anonymous but too slow for daily use and not really designed for "just let me check email on hotel Wi-Fi."
So I built what I actually wanted. Something that:
SwizGuard is the result. I use it every day on my Mac and my iPhone. My partner uses it. I've set it up for family members I trust but would never trust to maintain it themselves. If you have similar reasons — you travel, you don't trust consumer VPNs, you want actual privacy without the BS — this is for you.
A normal VPN shows up on the wire as "this is a VPN." Wireshark can see it, DPI can fingerprint it, corporate firewalls can block it. WireGuard's handshake pattern is unique. OpenVPN's TLS handshake doesn't match real browsers. Even Nord and Express use IP ranges that every firewall vendor has already flagged.
SwizGuard is different. It wraps your WireGuard tunnel inside VLESS+REALITY with Vision flow, which is a protocol stack designed to be cryptographically indistinguishable from a real HTTPS connection to a real website. When someone probes your server, they get a real Microsoft certificate — because REALITY proxies the handshake to the actual microsoft.com edge server and returns whatever comes back. There's nothing fake to detect.
What your ISP sees:
your device → TLS 1.3 → www.microsoft.com
What's actually happening:
your device → Xray/sing-box (WireGuard → VLESS → REALITY → Vision) → your VPS → real internet
Three layers of encryption. Zero signal that a VPN exists. No third party in the trust chain except your own VPS provider.
This is the part that matters. Here's what an observer (your ISP, a corporate firewall, a censoring government) actually sees in Wireshark.

Every packet is labeled WireGuard. Wireshark identifies the protocol immediately because the handshake pattern is unique and the transport headers are distinctive. Any DPI system, any modern firewall, any network operator with basic tooling can flag these packets in milliseconds. They don't need to decrypt anything — the protocol identification IS the fingerprint.
The "Info" column even shows packet types: Transport Data, receiver=0x..., counter=.... That's WireGuard's internal session structure leaking out. To a censor, this is a screaming neon sign that says "VPN here, please block me."

Every packet is labeled TLSv1.2 or TCP, port 443, "Application Data". This is what HTTPS to any normal website looks like in Wireshark. Same shape as Safari loading microsoft.com, or Mail checking iCloud, or your phone updating an app.
There is no WireGuard label anywhere because WireGuard is happening inside the encrypted TLS session. Wireshark doesn't know it's there. DPI doesn't know it's there. Your ISP doesn't know it's there. The fingerprint that gives away plain WireGuard isn't visible because it's wrapped inside REALITY's outer TLS layer, and Vision flow pads the inner handshake to defeat the TLS-in-TLS detection technique that catches naive nested TLS proxies.
In a normal day on a normal home network in the US, the difference between these two captures is mostly philosophical — your ISP isn't actively blocking VPNs, so plain WireGuard works fine. But the moment you step outside that environment, the difference becomes the difference between "I have internet" and "I don't."
The Wireshark difference is the entire reason SwizGuard exists. Plain WireGuard says "I am a VPN, please make decisions based on that." SwizGuard says "I am someone reading microsoft.com, please ignore me."
I tested this in real conditions. My own daily use on a VPS I rent from a cheap provider, running on my Mac with system proxy enabled and my iPhone using sing-box via SFI. Here's what I can verify:
curl --resolve www.microsoft.com:443:MY_VPS_IP https://www.microsoft.com and getting a real HTTP/2 200 back from AkamaiGHost with a valid DigiCert cert.sudo wg show wg1, which shows my clients connecting with endpoint: 127.0.0.1:xxxxx — loopback, meaning the WG packets are arriving via the REALITY unwrap path.None of this is me trusting someone else's marketing copy. It's stuff I can point Wireshark at and see for myself.
xtls-rprx-vision) — closes the TLS-in-TLS fingerprint that catches plain VLESS+REALITYsockopt.dialerProxydetourxray-core v1.8 or newer, v26.x recommendedbrew install xraygithub.com/XTLS/Xray-core/releasesxray.exe to PATHOn a fresh VPS, ideally after running a hardening script first (see below):
git clone https://github.com/YOUR_USER/swizguard.git
cd swizguard
sudo ./swizguard setup
That's it. Sixty seconds later you have:
www.microsoft.comsudo ./swizguard add macbook
sudo ./swizguard add iphone
sudo ./swizguard add partner-laptop
sudo ./swizguard add mom-phone
Each client gets a package containing:
xray-client.json — for desktop full chainsingbox-client.json — for iOS SFI or Android SFA full chainconnect-<name>.sh — launcher for desktop# On your Mac or Linux box
scp -P 13337 -i YOUR_KEY YOUR_USER@YOUR_VPS:/etc/swizguard/clients/macbook ./
cd macbook
bash connect-macbook.sh
To verify:
curl --socks5 127.0.0.1:10808 -4 ifconfig.me
That should return your VPS IP. If you want all Mac traffic to route through the tunnel (not just apps you configure manually):
bash connect-macbook.sh enable-system-proxy
singbox-client.json from the VPS onto your iPhone. Easiest way: SCP to your Mac, AirDrop to iPhone, save to Files+ → Local → pick the JSON fileifconfig.me. You should see your VPS IPSame file-based import, different app. Either SFA (sing-box native) or v2rayNG (Xray native). Both support the full chain.
| Command | What it does |
|---|---|
./swizguard setup |
Fresh install on a new VPS |
./swizguard add <name> |
Generate a new client package |
./swizguard regen <name> |
Regenerate configs for an existing client (after server changes) |
./swizguard share <name> |
Print the QR code and VLESS link for an existing client |
./swizguard list |
List all clients |
./swizguard remove <name> |
Revoke a client |
./swizguard status |
Server health, connected peers |
./swizguard upgrade-vision |
Enable Vision flow on an older deployment |
./swizguard rekey |
Rotate REALITY keys (breaks all existing clients until regen) |
./swizguard nuke |
Uninstall everything |
./swizguard help |
Show help |
I pair SwizGuard with my VPS-Lock-Figuration script on every box. That hardening script is what I run first on any fresh VPS — it creates a non-root user, enforces SSH key auth only, moves SSH to a custom port, enables UFW with restrictive defaults, installs fail2ban, and turns on unattended security upgrades. Run that first before you install anything else.
Then deploy SwizGuard as the non-root user with sudo. It detects UFW automatically and opens only port 443. The two scripts compose cleanly — Lock-Figuration sets the baseline, SwizGuard adds the stealth VPN on top. Total time from fresh VPS to working tunnel is under five minutes.
Don't take my word for any of this. Test it. From a machine that's NOT connected to the tunnel:
curl -I --resolve www.microsoft.com:443:YOUR_VPS_IP https://www.microsoft.com
You should see something like:
HTTP/2 200
server: AkamaiGHost
content-type: text/html
That response is coming from real Akamai infrastructure proxied through your VPS by REALITY. The certificate in the TLS handshake is a real DigiCert-signed cert for *.microsoft.com. Your server is behaving exactly like a Microsoft edge node because, mechanically, that's what REALITY makes it do when probed.
If you visit https://YOUR_VPS_IP directly in Firefox, you'll get a "cert doesn't match IP" warning. That's expected. Real Microsoft cert, wrong hostname — same behavior you'd get hitting any Akamai edge by IP address. Cert matching is domain-based, not IP-based. Firefox is confirming the camouflage.
I'm going to be honest about this because too many VPN tools oversell their own capabilities.
See docs/how-it-works.md for the full threat model.
This tool stands on a lot of other people's work. The protocols and primitives are all upstream:
sockopt.dialerProxy chaining pattern that makes the whole thing possiblewireguard endpoint, and the detour field for chaining on mobiledialerProxy chaining is supposed to workSwizGuard is the automation and packaging layer. It stitches these tools together into something deployable, handles the key generation and config templating, generates matching Xray and sing-box configs from one source of truth, and gives you management commands so you don't have to hand-edit JSON every time you add a device. Everything cryptographic underneath is someone else's work that I'm using as a library.
MIT. See LICENSE.
SwizGuard is a privacy and censorship-resistance tool. Use it legally in your jurisdiction. I make no warranty and accept no liability for misuse. I built it because I needed it for my own travel and privacy, and I'm releasing it publicly because other people probably need something similar. See DISCLAIMER.md for the full disclaimer.