Stun is an Android SSH tunneling and proxy client written in Kotlin, with subscription nodes, GeoSite/GeoIP routing, per-app proxying, PIN-encrypted WebDAV backup and LAN remote control.
- v1.0.20261125.238-64f7ea7
- Published at
- 2d ago
- 3
- Stars
- 341
- Download
- Synced at
- 8h ago
Latest release
v1.0.20261125.238-64f7ea7Nov 25, 2026, 01:09 AMDownloads slow? Switch the source anytime above
README
Project Overview
Stun is what you get when SSH dynamic forwarding, TProxy routing and subscription nodes are packed into one Android client, except nodes can be delivered from subscription URLs and another device on the same LAN can control it remotely. The Material 3 interface serves phones, TVs, car head units and Wear OS from one codebase.
| Item | Value |
|---|---|
| Package name | app.fjj.stun |
| Minimum version | Android 9 (API 28) |
| Language | Kotlin |
| License | GPL-3.0 |
| Tunnel base | SSH plus multiple underlying transports |
One client for every SSH node, controllable from another device
Key Features
- Two takeover modes: switch between system VPN and TProxy as needed
- SSH tunneling: bundled
mysshwith password and key authentication - Routing rules: GeoSite and GeoIP data separate direct from proxied traffic
- Per-app proxying: decide app by app whether traffic enters the tunnel
- Remote control: discover devices on the LAN via NSD/mDNS, then push profiles and start or stop the VPN over HTTP or Bluetooth RFCOMM
- Web console: the controlled device (TV, car head unit) serves a browser UI for nodes, logs and backup restore
- MCP server: a built-in Model Context Protocol server that lets AI assistants read status and change settings
- Cloud backup: PIN-encrypted configuration on WebDAV with upload, download and two-way sync
- Multi-form-factor: one codebase for phones, Android TV, car units, Wear OS tiles and XR
Protocols and Subscriptions
| Tunnel type | Description |
|---|---|
UDP_CUSTOM |
UDP tunnel with sliding-window anti-replay and Noise encryption |
ICMP_CUSTOM |
Encrypted tunnel over ICMP Echo with adaptive MTU |
H2 / H3 / MASQUE / WEBTRANSPORT / GRPC |
Multiplexed channels over HTTP/2, HTTP/3, MASQUE (RFC 9298) and more |
- Subscription formats: JSON array, Base64-encoded JSON and PIN-encrypted payloads, auto-detected in that order
- Fetch details: plain HTTP(S) GET with
User-Agent: Stun-Android/3.0.0, a 10-second connect timeout and a 20-second read timeout - De-duplication: merged subscriptions are deduplicated by node
id, first subscription wins - Backup layout: each backup is a UTC timestamped folder on WebDAV, encrypted with AES-GCM, keeping the latest 5
Target Audience
- Self-hosters running several SSH nodes
- Users configuring a proxy on a TV or car head unit
- Small teams distributing nodes through subscriptions
- Technical users who want to manage nodes from a browser or an AI assistant
Quick Start
- Grant VPN permission after installing and pick VPN or TProxy service mode
- Add URLs under Subscriptions; multiple subscriptions are merged and deduplicated
- Create a node manually with the SSH address, credentials and tunnel type
- Enable GeoSite/GeoIP rules or select apps individually when you need routing
- To manage another device, turn on LAN discovery and the web console in settings
- Take a WebDAV backup with a PIN before switching devices
System Requirements
| Item | Requirement |
|---|---|
| OS | Android 9 (API 28) or later; also Wear OS and Android TV |
| Stack | Kotlin, Gradle Kotlin DSL, Room, WorkManager |
| Server | A self-hosted SSH service and matching transport implementation |
| Backup service | Any standard WebDAV server |
Notes
- Bring your own nodes: the app only handles the tunnel; the SSH server is yours to run
- Subscriptions dedupe by id: when two subscriptions contain the same node, the one added first is kept
- Only five backups survive: timestamped folders beyond five are deleted automatically
- Remote control needs reachability: HTTP and Bluetooth RFCOMM both require the two devices to reach each other
Release history
Sort