Rawline is a client for Android and desktop systems that brings standard VPN protocols and select unconventional transports together in one interface. Its practical value lies not only in the number of connection methods it supports: profiles of different types can be tested, combined into chains, and routed using shared rules.
The project is built on sing-box and Xray, and launches unconventional transports through separate native clients. The author also describes three risks involving local proxies, the Android tun0 interface, and UDP bridges, and explains how they are mitigated. This clearly shows the engineering difference between “the connection works” and “a neighboring app can’t use its internal entry point.”
One client for different transports
RawlineMobile is intended for Android 7.0 and later versions. RawlineDesktop is available for Windows, Linux, and macOS. Throne and ThroneForAndroid were used as the foundation: they already supported running sing-box and Xray simultaneously, as well as the bridges between them needed to build chains.
The standard capabilities of these cores include VLESS, VMess, Trojan, Shadowsocks, Hysteria2, TUIC, WireGuard, AmneziaWG, OpenVPN, OpenConnect, and SSTP. The client also integrates transports that usually have their own apps: tunnels over VK and MAX calls, WebRTC and TURN, DNS tunnels, WireGuard obfuscation, S3 Bypass, and TrustTunnel.
Implementations named in the project include MRTT, qWDTT, CSQTT, WDTT Plus, FreeTurn, olcRTC, and OpenFlux for calls and WebRTC; DNSTT, VayDNS, SlipStream, MasterDNS, StormDNS, CottenDNS, and Soar for DNS tunneling; and wg-obfuscator, Phobos, and wgobfs for WireGuard. Profiles can be imported via a link or QR code. There are subscriptions, ping checks, chains, and routing by app and domain.
For someone switching between these connection methods, this means fewer separate clients and profile formats. Instead of remembering exactly where a particular transport is configured, you can work from a shared list. There’s already more than enough manual app-switching as it is—a separate catalog for every tunnel is hardly going to make the network more reliable.
Native clients instead of rewriting transports
Rawline doesn’t move every third-party transport inside sing-box. For most of them, it uses the projects’ original clients: each one starts a local SOCKS5, which the core connects to as a regular outbound. The transport then becomes available in the shared routing, testing, and chain-building setup.
This choice reduces the need to maintain a custom implementation of every protocol. A rewritten version could start lagging behind the source, whereas changes to the original client are made by its author. But integrating lots of separate binaries adds its own build and launch requirements.
On Android, the clients are packaged in the APK as lib*.so files. This is due to the restriction under which, starting with Android 10, an app cannot execute files from its writable directory. The system extracts the libraries to nativeLibraryDir, where they can be launched; the build setting useLegacyPackaging = true is used for this.
Native components are built for arm64-v8a, armeabi-v7a, and x86_64. Some are written in Go, some in Rust, so cross-compilation and coordinating their lifecycle remain part of the client’s work. The process can’t just open a port: some transports require waiting for authorization to finish, and the component must be stopped cleanly when the profile or network changes.
To control exactly what goes into the APK, the project builds native clients in a separate workflow from pinned commits of their repositories. Archives and SHA-256 are stored in native-transports.lock.json. Before the build, the script scripts/stage_native_transports.py checks hashes, source commits, and file contents. If the preparation code has changed but the pinned data hasn’t been updated, CI should catch it.
What’s been done for Android VPN
A separate part of the work concerns apps excluded from the VPN. A typical configuration can route a banking client directly, but that doesn’t guarantee it won’t be able to reach the VPN server by another route. In the scenario described, an app can send a request through a local proxy or force the use of the tunnel, then see the server address.
The first risk is SOCKS5, which some clients start on 127.0.0.1 without a password. On Android, loopback is shared between apps, so another app can try to connect to such a port regardless of VPN traffic-splitting rules. A random port by itself isn’t a reliable barrier: the author points to the possibility of quickly scanning the range of local ports.
In VPN mode, Rawline doesn’t create SOCKS, HTTP, or DNS entry points for external connections: traffic is handled by TUN inside sing-box. Local proxies are needed for internal bridges between sing-box, Xray, and native clients, but they listen only on loopback and are protected by a randomly generated port and a password 32 characters long. The password is regenerated every time the configuration is built.
User configurations are also checked before launch. If a sing-box or Xray configuration exposes a management API on an accessible port or contains a passwordless SOCKS entry point, Rawline rejects it. Authorization also can’t be removed with a subscription header. The project includes separate tests for these checks, including a test of an actual SOCKS handshake with both cores.
The second scenario bypasses the proxy. An app can bind a socket to the Android tun0 interface via setsockopt(SO_BINDTODEVICE, "tun0"), bypassing the usual app-selection rules for the VPN. The SOCKS password is irrelevant for this connection: the packet goes straight into the tunnel.
Rawline adds a sing-box rule that checks the connection owner using Android’s UID and package data. If traffic arrives from TUN but its owner can’t be identified, the connection is rejected; system UIDs that may not have a package name associated with them are handled separately. The setting “Hide tunnel from apps outside the VPN” is enabled by default and works on Android 10 and later versions.
UDP bridges and the first packet
The third problem turned up in UDP traffic through the local qWDTT, CSQTT, and WDTT Plus bridges. In SOCKS5, authentication takes place in the TCP part of the UDP ASSOCIATE request, but UDP datagrams on loopback don’t carry the same proof. In the problematic setup, the bridge remembered the sender of the first packet. If another app sent a packet before the regular client did, replies could go to that app, while the core’s traffic was dropped.
The fix is for sing-box or Xray to open the UDP socket in advance and pass its port in the UDP ASSOCIATE request, after authorization. The bridge accepts datagrams only from that port, and the client checks the sender address and port of replies. The change applies to local bridges; remote SOCKS proxies were left unchanged to preserve compatibility with NAT.
For CSQTT, the channel between the Go and Rust components was also reworked: instead of UDP on loopback, it uses a Unix socketpair. One end is passed via SCM_RIGHTS, the socket is located in a private directory with permissions 0700, and Rust additionally checks the process UID. So internal IP packets are no longer accepted through a local network port accessible to everyone.
Rawline combines the sing-box and Xray cores with a set of independent transports, but it was the boundaries between them that proved important for security. The safeguards described concern the Android client and its local bridges; Android 10 and later versions are listed separately as supported for tunnel routing.









