Skip to content
ThanhNguyxnOrgPublic

About

Open-source game latency reducer & ping booster via WinTun and Go VPS Relay

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

5 stars

Watchers

0 watching

Forks

Latest commit

ย 

History

249 Commits

Folders and files

NameName
Last commit message
Last commit date
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

โšก Lagvex ๐Ÿš€

Lagvex logo

Open-source split-tunnel game latency accelerator
๐Ÿงญ Route-based, not hook-based โ€ข ๐Ÿ“Š Measured telemetry only โ€ข ๐Ÿ› ๏ธ Self-hosted relays

Go Version CI Status Platform Anti-Cheat: Non-Invasive Changelog License: MIT


๐ŸŽฏ What Lagvex Is

Lagvex is a free, MIT-licensed alternative to commercial game boosters. It puts only your game's traffic on a faster route and leaves everything else on your normal internet connection:

  1. You deploy a small relay on a Linux VPS close to the game server (or run the embedded relay locally on Linux for a loopback test).
  2. The client watches your game's server region CIDR ranges (and, optionally, the exact peers your game process talks to) and installs routes for them.
  3. Those packets travel through an authenticated ChaCha20-Poly1305 encrypted UDP tunnel to the relay, which forwards them to the game server.

Lagvex touches no game memory, injects no DLLs and hooks no sockets. It works at the operating system routing layer, which is why it does not trigger kernel-level anti-cheat checks the way socket-hooking boosters can.

Honesty first: Lagvex only displays values it actually measured (probe RTT, tunnel echo RTT, packet loss, process findings). Everything it cannot measure is shown as โ€” with the reason, never as an invented number.

โœจ Features

  • ๐Ÿงญ CIDR split tunneling โ€” only game server ranges enter the tunnel; browsers, Discord and updates keep using your local ISP path.
  • ๐ŸŽ›๏ธ Peer routing (opt-in) โ€” reads the OS socket tables, routes /32 routes for the public IPs your game process is actually talking to (Linux/macOS observe UDP and TCP; Windows exposes TCP peers only). Off by default.
  • ๐Ÿ“Š Measured node list โ€” per-relay RTT history: latest, average, standard deviation, loss and a sparkline built from real probe runs. Hover a sparkline point to see its sample number, RTT and change from the previous sample. When the OS permits unprivileged ICMP, an echo RTT (ICMP x ms) is shown next to the tunnel probe.
  • ๐Ÿ—บ๏ธ Route detail โ€” per-hop measurement (gateway, direct relay probe, live tunnel echo, region cloud anchor) with explicit "not measured" reasons for segments the client cannot observe.
  • ๐Ÿ“ก Relay-measured game-server segment โ€” while a tunnel is up, the relay itself measures the TCP handshake to your game's server (/probe/gameserver, one probe per source IP per two seconds, public IP literals only) and the Boost page shows the relayโ†’server segment plus the combined youโ†’relayโ†’server total, but only when both halves are actually measured.
  • ๐Ÿ“ˆ Tail latency โ€” probe history reports p50/p95 percentiles computed from real retained runs, next to the average and spread, so a relay's worst moments are visible instead of hidden inside an average.
  • โฑ๏ธ Stale-aware RTT โ€” a sample older than three keepalive periods is shown as โ€” with "last sample is stale" rather than presented as live; the age of the last Pong and the count of Pongs are part of /api/status.
  • ๐Ÿ”ฅ Measured per-process CPU โ€” the process scan reports each game process's per-core CPU percentage read from the OS's own counters (/proc on Linux, GetProcessTimes on Windows). Without a portable injection-free counter (macOS today) the API says so explicitly and the UI shows CPU โ€” with a "not measured on this OS" tooltip.
  • ๐Ÿงช TCP ping tool โ€” measures the TCP handshake RTT (min/avg/max/loss) to an explicit public game-server IP. Hostnames and private, loopback or link-local addresses are refused, and runs are limited to one every 2 seconds and 60 per hour. A closed port still reports a real RTT when the host answers with RST. Endpoints observed in the game-connections panel can be sent to the tool with one click.
  • ๐ŸชŸ Floating HUD โ€” a draggable latency panel inside the dashboard that reads the same /api/status values and shows dashes until a sample exists.
  • ๐Ÿงพ Diagnostics snapshot โ€” export measured state plus non-secret settings for bug reports; import merges them back (relay PSKs are never included).
  • ๐Ÿ—‚๏ธ Measured game-server history โ€” up to eight measured game endpoints per game are remembered (positive RTT only, IP literals only) and shown on the Boost card; the dashboard also warns when observed peers fall outside the selected region's CIDRs, so a mis-picked region is visible instead of silent.
  • ๐Ÿ’ธ Cost & self-host calculator โ€” project the monthly relay transfer from your own measured session rate, split the VPS price across a squad, and compare with a typical paid plan. Every price and traffic figure is labelled as an estimate; see docs/COST.md.
  • ๐Ÿ›ก๏ธ Adaptive Reed-Solomon FEC, Packet Hedging, failover and DSCP marking โ€” pure-Go GF(2โธ) Cauchy Reed-Solomon FEC automatically scales from 10:1 XOR to RS 6:2, RS 4:2 and RS 4:3 to recover multi-packet burst losses (5โ€“15% loss) without waiting for retransmission RTT, backed by selective UDP packet hedging (โ‰ค256 B) and pre-measured standby failover.
  • โ™ป๏ธ Dual-path redundancy (independent PSK) โ€” frames go to the primary relay only; the relay acknowledges progress, and frames it may have missed are retransmitted via the standby relay. Primary and standby relays may now use independent PSKs across different VPS providers.
  • ๐Ÿ†“ Free Mode (Zero-VPS) โ€” Cloudflare WARP / WireGuard split-tunnel โ€” register a free Cloudflare WARP WireGuard profile in one click or import any .conf file (WARP, Mullvad, AmneziaWG, personal VPS) to run over Lagvex's route-based game split-tunneling on Windows, macOS and Linux.
  • ๐Ÿ”— Relay Share URIs (lagvex://) & Community Subscriptions โ€” share a self-hosted VPS relay with a squad via one copyable URI or import an https:// relay list.
  • ๐Ÿ•ถ๏ธ Anti-DPI UDP Obfuscation (zero overhead) โ€” optional PSK-keyed header scrambling (salted by the random Poly1305 tag) plus variable-length handshake padding to resist ISP UDP fingerprinting and peak-hour throttling; relays auto-detect both plain and obfuscated clients on the same UDP port.
  • ๐Ÿงญ Free Local Diagnostics Suite โ€” PingPlotter-style hop-by-hop Route Tracer, UDP DNS Resolver Benchmark (Cloudflare, Google, Quad9, OpenDNS, AdGuard), Auto Path-MTU Discovery (PMTUD) and Bufferbloat analysis โ€” all usable at $0 without a VPS.
  • ๐Ÿ–ฅ๏ธ Windows, macOS and Linux client โ€” WinTun, native utun and /dev/net/tun respectively; one Go codebase, one React dashboard.

๐Ÿš€ Quick Start

1. Deploy a relay (Linux VPS โ€” required for real acceleration)

curl -fsSL https://raw.githubusercontent.com/ThanhNguyxnOrg/lagvex/main/scripts/install-relay.sh | sudo bash

The installer prints the relay endpoint, the UDP port (default 51820) and a generated PSK. Keep the PSK: the client refuses to connect without it. Relay hosting requires a Linux VPS with /dev/net/tun (KVM, not OpenVZ). Windows and macOS cannot host relays; the installer fails fast there instead of pretending.

2. Build and run the client

go build -o lagvex-client ./cmd/lagvex-client
./lagvex-client                 # opens the dashboard at http://127.0.0.1:18888

Add node โ†’ enter the relay host:port and its PSK โ†’ pick your game and server region โ†’ BOOST. The dashboard shows probes and tunnel state as they are measured.

3. Squad rooms

Squad rooms share a roster (who is in the room plus each member's reported RTT) so a party can see each other in one place. A room does not change anyone's relay or routes. Rooms are relayed through the connected relay's signaling endpoint; with no relay connected, a room exists only on that machine.

๐Ÿ–ฅ๏ธ Supported Systems

OS Virtual adapter Notes
Windows 10/11 WinTun (wintun.dll) Elevation needed to create the adapter
macOS 12+ native utun DNS diagnostics read via scutil
Linux / Steam Deck /dev/net/tun Also the only OS that can host the embedded local relay

๐Ÿ—๏ธ How It Works

 Game process               Lagvex client                    Your relay (Linux VPS)         Game server
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”   routes  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  AEAD UDP  โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”  UDP   โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚ VALORANT.exe โ”‚ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ถ โ”‚ WinTun / utun / tun  โ”‚ โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ–ถ โ”‚ lagvex-relay     โ”‚ โ”€โ”€โ”€โ”€โ”€โ–ถ โ”‚ Riot / AWS โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜  (CIDR +  โ”‚ ChaCha20-Poly1305    โ”‚            โ”‚ /dev/net/tun      โ”‚        โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                  peers)   โ”‚ split tunnel + FEC   โ”‚            โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                           โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
  • The client connects to the relay with a PSK handshake, receives an inner IP and installs routes only for the selected game region and โ€” if enabled โ€” observed peers.
  • The relay forwards packets between the tunnel and the internet, and hosts squad signaling plus health endpoints.
  • See docs/ARCHITECTURE.md for the packet journey, and docs/PROTOCOL.md for the wire format.

๐Ÿ“š Documentation

Doc Contents
docs/ARCHITECTURE.md Component layout, routing design, anti-cheat safety
docs/DEPLOYMENT.md Relay VPS installation, hardening and operations
docs/COST.md Relay VPS cost, traffic estimates and self-hosting
docs/PROFILES.md Game profile schema and how to add a game
docs/PROTOCOL.md Packet format, handshake and FEC
docs/WHY_VPS.md Why a relay is needed and what it can/cannot fix
docs/DISCLAIMER.md Legal disclaimer and anti-cheat position
CONTRIBUTING.md Development setup, adding games, UI builds
CHANGELOG.md Release notes

๐Ÿ› ๏ธ Building from Source

# Go backend (client + relay)
go build ./cmd/lagvex-client
go build ./cmd/lagvex-relay

# React dashboard (required after UI changes; outputs into web/)
npm --prefix ui_source install
npm --prefix ui_source run build

# Tests
go test ./...
npx --prefix ui_source tsc --noEmit
npm --prefix ui_source test          # dashboard unit tests (node:test, no extra deps)

The dashboard is a React/Vite app in ui_source/; the build writes hashed bundles into web/assets/, which the Go binary embeds. There is no separate legacy HTML/JS UI.

โš ๏ธ Known Limits (read this)

  • No public relays are bundled. The relay list starts empty; you bring your own endpoint and PSK. Catalog entries for dead or third-party nodes are deliberately gone.
  • Relay hosting is Linux-only. The relay needs /dev/net/tun; on other systems the local relay refuses to start with a clear error.
  • Windows cannot see another process's UDP peers. Peer routing on Windows works with TCP observations only; the UI says so. Game traffic is mostly UDP, so keep the region CIDRs enabled there.
  • The relay only probes allowlisted cloud anchors. On request it measures its own RTT to a fixed set of public cloud endpoints (rate-limited per session); the "relay โ†’ game server" hop itself stays unmeasured and is reported as such rather than guessed.
  • No region/device spoofing, no DLL/LSP injection, no anti-cheat evasion. Those are out of scope by design.

๐Ÿค Contributing

  • ๐ŸŽฎ Add a game profile: capture the destination CIDRs, edit configs/profiles.json, and run the tests. See CONTRIBUTING.md.
  • ๐Ÿ› Found a bug? Export a diagnostics snapshot from the Tweaker tab and attach it โ€” it contains measured values and no secrets.
  • ๐Ÿงช Run go test ./... and npx --prefix ui_source tsc --noEmit before opening a PR.

โš–๏ธ Disclaimer

Lagvex is a network routing research tool. It does not read, modify or inject into any game. Game publishers and anti-cheat vendors set their own rules about VPNs and proxies; you remain responsible for how you use this software. Read the full text in docs/DISCLAIMER.md.

๐Ÿท๏ธ Trademarks

All game titles and publisher names are trademarks of their respective owners. Lagvex is not affiliated with or endorsed by any game developer or publisher. Game artwork bundled in the dashboard is used nominatively to identify game executables and server regions.

๐Ÿ“œ License

MIT โ€” see LICENSE.

About

Open-source game latency reducer & ping booster via WinTun and Go VPS Relay

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

5 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages