Skip to content
Projects

About

YPtun — fast, versatile VPN client to bypass censorship. Two cores (Xray & sing-box), all major protocols, plus olcRTC support that disguises traffic as a video call. Android is out now; Windows, Linux and more are coming. Grab the APK in Releases.

Systems & Infrastructure

How these counts are measured

Measured star growth

in 24h
0
in 7 days
+5
in 15 days
+13
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.en.md

Original

YPtun

Multi-protocol network client · Android, Windows and Linux · iOS in beta

VLESS · Reality · XHTTP over Xray and sing-box, OpenVPN, Hysteria2 (QUIC), obfuscated AmneziaWG, a tunnel through VK-TURN calls, the MasterDNS DNS tunnel, a standalone Telegram proxy over WARP — and olcRTC, a transport over video-conferencing services.


Latest release Downloads Stars

💎 Support the project — TON or USDT (TON network):

UQAPC9J9UY8oaYV4AwjEAYIIJMswo7qVzJDkf4pzY8kVtzJ-

Platform Platform Platform Platform Cores License


Русский · English · فارسی · 简体中文


Why YPtun?

Most VPN clients give you one core and one way to connect. YPtun gives you a toolbox. Several network engines in a single app: when one transport works poorly, switch to another and keep going.

The point is versatility. Xray and sing-box with every common protocol and transport, obfuscated WireGuard via AmneziaWG, tunnelling through real calls (VK-TURN and olcRTC), the MasterDNS DNS tunnel, import of basically anything, and Happ-compatible routing profiles. If one way to connect doesn't fit, there are several more next to it.

For anyone who wants flexible control over their network connections: your own servers, your own subscriptions, your own routing.

Windows is here — an installer and a portable build as a single .exe, x64 and native ARM64. The same app and the same engines as on the phone: subscriptions, routing profiles, cascade, VK-TURN, olcRTC, MasterDNS, Trust Tunnel.


What's new in 3.7.0

Cloudflare WARP for JSON subscriptions Client side: every proxy of the subscription goes through WARP; server side: egress through WARP with a UDP relay. Android and desktop, WireGuard and AmneziaWG.
Free servers + WARP WARP for each found server or all at once: AmneziaWG for Russian servers, WireGuard for the rest.
AmneziaWG / WireGuard engine Pick the protocol, wg-quick config or a file; the "Allow editing configurations" switch exposes every parameter (Jc, S1–S4, H1–H4, I1–I5, MTU, DNS…) as separate fields.
Free servers search in the background "To background" button, scheduled auto-refresh, stop and keep what was found (#72), pin a server, limits of 2500 and 5000.
Ping and subscriptions Pause, resume and restart ping with progress; view and change the subscription link, pins and folders move along (#71); cascade for a whole subscription.
Privacy New page: ProviderID report (#69), subscription User-Agent, device data and own HWID (#70); HWID is not sent to GitHub on update checks.
Routing and cores geosite:telegram includes Telegram data-center addresses (#68); OpenFlux 0.13.0 (Avito, several transports per session, #66); clearer csqtt errors (#67); SOCKS5 port can be changed on desktop.
Lighter on the phone Free-server auto-refresh only while the window is open, soft memory limit for Go cores, VPN worker threads pinned to the slower CPU cores.
Fixes Mirror when the Cloudflare WARP API is down; server-side WARP AmneziaWG without I1–I5 packets; delta update on desktop; lists no longer jump to the top.

Cores we use

Core Version Purpose
Xray-core 26.9.30 (local patches) VLESS · Reality · XHTTP
sing-box 1.14.4 OpenVPN, Hysteria2, TUN, routing
AmneziaWG amneziawg-go obfuscated WireGuard
olcRTC ghostlane fork traffic over video calls
free-turn-proxy (VK-TURN) 1.3.2 tunnel over VK calls
qWDTT 1.4.4 TURN tunnel variant
MasterDnsVPN — DNS tunnel
OpenFlux 0.13.0 (4f9c786) transport via Yandex Docs / MAX
TrustTunnel 1.1.11 Trust Tunnel protocol
csqtt 2.5.0 (fd936ef) third VK-TURN core
snolc 0.0.4 Rust engine
hev-socks5-tunnel — TUN → SOCKS5 (Android)
tun2socks — TUN → SOCKS5 (desktop)

Features

Multiple engines Xray, sing-box, AmneziaWG, VK-TURN, MasterDNS — the core is picked per protocol automatically or by hand.
Protocols VLESS · VMess · Trojan · Shadowsocks · OpenVPN · Hysteria2 · WireGuard / AmneziaWG
Transports TCP · WS · gRPC · HTTPUpgrade · XHTTP · TLS · Reality · uTLS fingerprints
MasterDNS (DNS tunnel) A tunnel over DNS queries (MasterDnsVPN: custom ARQ transport, several resolvers at once, packet duplication) — an option for networks where only DNS is available. One-tap server install on a VPS over SSH.
Telegram proxy over WARP A lightweight background service: a WARP tunnel + a local SOCKS5 for Telegram, independent of the main connection.
olcRTC The olcRTC transport — traffic rides real video-call services (Jazz, MTS Link, VK Calls, Telemost, Jitsi); traffic is carried over these services.
Smart import vless/vmess/trojan/ss links, base64, JSON panels, full raw Xray / sing-box configs, self-contained OpenVPN .ovpn, AmneziaWG .conf/QR, olcRTC URIs, Happ profiles, bulk link-list import.
DNS & routing Happ-compatible routing profiles (deny/direct/proxy by geoip:/geosite:/asn:/domains/CIDR), v2rayNG-style per-rule routing, an RU-domain filter toggle, custom DNS and fakedns.
Auto server pick One-tap connect to the fastest reachable node, with failover.
HTTP proxy A Happ-compatible local HTTP proxy on top of the active engine.
Connection tuning TLS fragmentation, multiplexing, AmneziaWG obfuscation, disabling QUIC where it would leak.
No leaks Captures both IPv4 and IPv6 — nothing slips past the tunnel.
Split tunneling Choose which apps go through the VPN.
Subscriptions Auto-update (toggle per subscription), reachable-server counter, server descriptions, traffic/quota, groups with collapse/pin/ping-sort, folders.

Download

Grab the latest signed APK from the releases page.

Build For
arm64-v8a Modern phones — pick this if unsure
armeabi-v7a Older 32-bit devices
x86_64 Emulators / x86 tablets
universal One file for everything (largest)

Minimum is Android 6.0 (API 23).


Permissions and why they are needed

YPtun asks only for what a specific feature cannot work without. Camera, notifications, unrestricted battery use and installing updates are requested when you use that feature, not at install time.

Android

Permission Why
VPN (BIND_VPN_SERVICE) The system "Allow VPN connection" prompt on the first connect. Without it the app cannot raise the tunnel and route traffic through it.
Internet and network state (INTERNET, ACCESS_NETWORK_STATE) Connecting to servers, pings, fetching subscriptions; reconnecting when you switch between Wi-Fi and mobile data.
Running in the background (FOREGROUND_SERVICE, FOREGROUND_SERVICE_SPECIAL_USE, WAKE_LOCK) The VPN and the Telegram proxy run as services with a notification so the system does not stop them while the screen is off.
Notifications (POST_NOTIFICATIONS, Android 13+) The connection notification with speed and a disconnect button — Android requires it for a background service.
Unrestricted battery (REQUEST_IGNORE_BATTERY_OPTIMIZATIONS) Only from a button in the settings: a Doze exemption so the tunnel does not drop overnight. Never requested without your tap.
Camera (CAMERA) The QR scanner for importing servers. Requested the first time you open the scanner; frames are processed on the phone and never sent anywhere. Without a camera you can import a QR from an image file.
Installed apps (QUERY_ALL_PACKAGES) Split tunneling: listing every installed app, including system ones without an icon, so you can pick which go through the VPN. The list never leaves the phone.
Install apps (REQUEST_INSTALL_PACKAGES) In-app updates: the downloaded APK is handed to the system installer, which still asks you to confirm.
Tasks after reboot (RECEIVE_BOOT_COMPLETED, FOREGROUND_SERVICE_DATA_SYNC) Added by the WorkManager library so a periodic task survives a reboot. There is one such task — the daily check-in for subscriptions with a Happ providerid (see below). YPtun has no autostart of its own.
Data migration (org.olcbox.app.permission.MIGRATION) The app's own signature-level permission: it moves settings from the old org.olcbox.app install to the new org.yptun.app. Only an APK with the same signature can read that data.

Windows

Right Why
Administrator (UAC) Only for "Tunnel" mode: creating the network adapter (wintun) and adding routes. The prompt appears once at launch when that mode is selected. "Proxy" mode needs no administrator rights.
System proxy In "Proxy" mode the app sets the Windows proxy for the current user and restores the previous settings on disconnect. If the app crashed, the leftover proxy is removed on the next launch.
Process list Per-process split tunneling — and detecting another running VPN client that breaks the connection. The app offers to close it but never terminates anything without your consent.

What the app contacts besides your servers

  • GitHub — update checks and, by default, the routing lists (geoip/geosite, ASN).
  • check.happ-proxy.com — only if a subscription carries a Happ providerid: once a day, like Happ itself, the app sends a check-in with the same device data the subscription already receives (HWID, OS, model, app version). Without a providerid there is no such request.
  • Services of the connection method you chose — VK (VK-TURN), Cloudflare (Telegram over WARP), call services (olcRTC), Yandex Docs or MAX (OpenFlux).

How it works

┌──────────────┐  packets   ┌───────────────┐   SOCKS5   ┌────────────────────────────┐
│     Apps     │ ─────────▶ │  Android TUN  │ ─────────▶ │     Engine (1 process)     │
└──────────────┘            │  (IPv4+IPv6)  │            │  ┌──────────────────────┐  │
                            └───────────────┘            │  │  Xray / sing-box     │  │
                                                         │  │  AmneziaWG / VK-TURN │  │
                                                         │  │  MasterDNS / olcRTC      │  │
                                                         │  └──────────────────────┘  │
                                                         └─────────────┬──────────────┘
                                                                       ▼
                                                                 open internet

Every native core is built into one gomobile library (a single Go runtime), so Xray, sing-box, AmneziaWG, VK-TURN, MasterDNS and olcRTC coexist in one process without conflicts. The app raises a VpnService, feeds packets into the TUN, and wraps them in the chosen engine through a local SOCKS5.


Engines in plain words

  • Xray / sing-box — classic proxy cores: VLESS+Reality, XHTTP, WS+TLS, etc. The core is chosen per transport automatically.
  • AmneziaWG — WireGuard with obfuscation: the handshake and packets differ from standard WireGuard.
  • Hysteria2 — a fast QUIC-based protocol with Salamander obfuscation and port hopping; holds speed well on lossy links.
  • VK-TURN — raises a local WireGuard and pushes it through VK's call TURN servers; several "calls" are bonded for throughput.
  • MasterDNS — a tunnel over DNS queries; works where only DNS is open.
  • olcRTC — a transport over video-conferencing services: traffic is carried on top of a real call.
  • Telegram proxy over WARP — a standalone background proxy for Telegram on top of Cloudflare WARP.

Build from source

Everything needed is already vendored (cores, olcrtc, sing-box, awgproxy, hysteria2proxy, free-turn-proxy, masterdns, wdtt, amneziawg-go). You'll need:

  • JDK 17 (the one bundled with Android Studio works)
  • Android SDK (set sdk.dir in YPtun/local.properties) + NDK 28.2.13676358
  • Go + gomobile on PATH

gomobile invokes javac, so put the JDK's bin/ on PATH — not just JAVA_HOME.

cd YPtun
./gradlew :androidApp:assembleRelease \
  -Polcbox.version=3.6.0 -Polcbox.versionCode=381

APKs land in YPtun/androidApp/build/outputs/apk/release/. Want a faster, phone-only build? Add -Polcbox.android.abiFilters=arm64-v8a.

Signing your own release builds (optional, for maintainers)

By default Gradle produces debug-signed APKs. To publish your own signed releases, create a keystore and point YPtun/keystore.properties at it:

storeFile=release.keystore
storePassword=your-password
keyAlias=your-alias
keyPassword=your-password

That file (and the .keystore) are git-ignored and never committed — they live only on your machine. Keep the keystore safe: updates are signed with the same key so they install over previous versions.


Development

YPtun is Kotlin Multiplatform: all the logic (import, config building, engines, UI state) lives in commonMain, with platform bits in androidMain. The same code runs on the JVM desktop.

  • UI — Jetpack Compose, one design across platforms.
  • Localization — Russian, English, فارسی and 简体中文 in a single strings file.
  • Native cores — Go, built into one gomobile AAR by the buildCoresAndroidAar task; core inputs are tracked, so the AAR rebuilds only when Go code changes.
  • Tests — unit tests for the routing parsers/converters (./gradlew :sharedUI:jvmTest).
  • Branches — stable on main, active development on Beta; releases are tagged vX.Y.Z.

Found a bug or want a feature? Open an issue or PR — see CONTRIBUTING.md.


Project structure

YPtun/            Kotlin Multiplatform app — Compose UI, Android VpnService, engines
cores/            Go glue: one gomobile AAR from sing-box + olcRTC + Xray + AmneziaWG + VK-TURN + MasterDNS
olcrtc/           olcRTC — video-call based transport             (third-party, vendored)
sing-box/         sing-box / libbox                                (vendored)
awgproxy/         AmneziaWG wrapper → local SOCKS5                 (Go module)
hysteria2proxy/   Hysteria2 (apernet) wrapper → local SOCKS5       (Go module)
free-turn-proxy/  VK-TURN — tunnel through VK calls                (Go module)
masterdns/        MasterDNS — tunnel over DNS                       (client + server)
wdtt/             WDTT — tunnel variant                            (client + server)
amneziawg-go/     AmneziaWG implementation                         (vendored)

Roadmap

  • Android release
  • AmneziaWG, VK-TURN and MasterDNS engines
  • Routing profiles (Happ-compatible) + ASN
  • Windows build (x64 and ARM64)
  • Linux build (.deb, x64 and ARM64)
  • iOS build — in beta

The shared engine already runs on the JVM (desktopApp), so desktop is next.


Contributing

PRs and issues welcome. Before you start, see:


Credits

Standing on the shoulders of giants: Xray-core · sing-box · olcRTC · AmneziaWG · OpenFlux · qWDTT · MasterDnsVPN · free-turn-proxy · TrustTunnel · hev-socks5-tunnel · tun2socks.

Code signing policy

Free code signing provided by SignPath.io, certificate by SignPath Foundation. Signed are the Windows installer and portable built by GitHub Actions from this repository.

Privacy: this program will not transfer any information to other networked systems unless specifically requested by the user (their servers, subscriptions and the connection services they choose), apart from checking GitHub for updates. Details are in Permissions and why they are needed.

License

GPL-3.0 — the app ships under the GNU GPL v3.0 because it bundles sing-box (also GPL-3.0): copyleft applies to the whole product. Vendored components keep their own licenses (sing-box — GPL-3.0, Xray — MPL-2.0, amneziawg-go — MIT, olcrtc — WTFPL, OpenFlux — GPL-3.0, qWDTT (wdtt) — GPL-3.0, MasterDnsVPN (masterdns) — MIT, free-turn-proxy — Happy Bunny License (MIT-style), Trust Tunnel — Apache-2.0, hev-socks5-tunnel — MIT, tun2socks — MIT).

Explore related projects

Loading…