Following the White Rabbit: Developer Builds Custom Rust VPN PAYPHONE Using QUIC and Obfuscation to Evade Detection
A developer has published a detailed technical account of building PAYPHONE, a custom IPv4 VPN written in Rust that uses QUIC as the primary transport and an optional TLS-over-TCP fallback. The project was created to give the author full control over packet handling, routing, and traffic shaping while exploring techniques that might resist the detection methods used against standard WireGuard in Russia.
Applications on the client send packets to a TUN interface. The client reads these packets, prepends a 16-byte PAYPHONE header containing version, type, flags, length, and sequence number, then transmits them over QUIC datagrams or an obfuscated TLS stream. On the server the header is stripped and the original IP packet is written to the server-side TUN, after which Linux routing and NAT forward it to the internet. Return traffic follows the reverse path.
The protocol deliberately uses QUIC datagrams rather than a single ordered stream so that loss of one packet does not stall unrelated TCP connections inside the tunnel, following the approach described in RFC 9221. The implementation relies on the Quinn library; an early mistake with send_datagram_wait was corrected by switching to non-blocking send_datagram calls and pre-checking datagram size.
Authentication uses short-lived Ed25519-signed tokens that encode subscription limits. The server re-validates tokens on every session event and maintains a list of revoked identifiers. Rate limiting is performed with a token-bucket algorithm tied to the subscription record.
Several practical problems surfaced after the first working connection. An initial MTU of 1280 exceeded Quinn’s available datagram budget once the 40-byte PAYPHONE header and QUIC overhead were added, producing TooLarge errors under load. The value was reduced to 1100 with dynamic adjustment based on the path’s max_datagram_size. On macOS, the /32 route to the server was occasionally removed by networksetup calls, causing the tunnel to route its own QUIC packets back into the TUN; the final solution combined a persistent /32 route with IP_BOUND_IF socket binding.
Tokio timer handling also required correction. Creating a fresh sleep inside each select! iteration prevented PING and route-check timers from ever firing. The timers are now created once before the loop and reset after each expiration. The client additionally polls routes every 400 ms to restore them after network configuration changes.
Obfuscation that rounded QUIC packet lengths to fixed sizes (128, 296, 568, 1200, 1440) was later removed because it distorted QUIC’s path-MTU discovery probes. Only random padding between 0 and 32 bytes is now applied after XOR masking.
Related articles
MTS Mobile Exit Selectively Drops TLS Connections to Hetzner, Apple, Microsoft and Other Providers
Measurements from two separate runs on 29 and 30 November show that a single MTS mobile exit belonging to AS30881 (TENSOR) silently drops connections after large ClientHello messages to 18 out of 144 tested addresses. The affected destinations include Hetzner, OVH, DigitalOcean, Vultr, Contabo, Akamai-hosted Apple and Microsoft addresses, plus several other major clouds and CDNs. The same addresses remain reachable from a second MTS segment (AS48176), from MegaFon, and from a Frankfurt control point. The pattern matches an address-list filter rather than congestion, because neighboring prefixes from the same providers stay unaffected and the drop occurs at a consistent byte threshold of roughly 34-36 KB. Tests with plain HTTP on one Cloudflare address produced identical behavior, confirming that TLS is not required. Researchers emphasize that the measurements cover only one specific MTS exit and do not prove nationwide deployment or involvement of TSPU equipment.
Russian Networks Exhibit HTTPS and VPN Disruptions After 16KB of Data Transfer
Developers from Red Atlas have documented a traffic restriction affecting connections from certain Russian networks to foreign hosting providers. TCP connections establish normally and TLS handshakes complete successfully, yet data flow stops after the first 16,384 bytes of decrypted content. The issue was observed consistently across all tested addresses of Hetzner, Vultr, DigitalOcean, Contabo, and OVH when routed through MTS AS30881. Standard connectivity checks such as port scanning may still return positive results, masking the limitation from basic diagnostics. Researchers note that the 16KB threshold aligns with the maximum size of a single TLS record, suggesting a content-filtering mechanism that inspects decrypted traffic. A comparable filtering approach was previously reported by Cloudflare in June 2025. Red Atlas introduced a specialized test using oversized TLS ClientHello messages to distinguish this behavior from server-side failures.
Russian ISP MTS Blocks TLS Data Transfers to Foreign Hosts After 16KB
A new network filtering mechanism has been detected on MTS network AS30881 that interrupts TLS connections to overseas hosting providers once roughly 16,384 bytes of application data have been received. The interference allows the TCP handshake and TLS handshake to complete normally, after which the connection simply stalls without RST or FIN packets. Red Atlas researchers confirmed the behavior on all tested addresses belonging to Hetzner, Vultr, DigitalOcean, Contabo and OVH when accessed through this specific network. The same test produced no interruptions from other Russian mobile and datacenter networks including MTS AS48176, MegaFon and Timeweb. The effect matches earlier observations reported by Cloudflare in June 2025 and appears to be implemented via deep packet inspection that drops or ignores subsequent packets after a volume threshold. A lightweight Python probe using oversized ClientHello messages with padding extension has been released to allow independent verification of the filtering boundary.
Replacing Names with [PERSON_1] Before Sending Contracts to External LLMs: Does This Qualify as Anonymization Under Russian Law?
Russian organizations frequently need to analyze multi-page contracts containing personal data such as full names, passport details, INN, and phone numbers using external large language models. Simply replacing names with placeholders like [PERSON_1] may not meet the legal threshold for anonymization if the remaining context still allows identification of individuals. Roskomnadzor Order No. 140, effective since September 1 2025, outlines specific methods including identifier introduction, semantic modification, decomposition, shuffling, and array transformation that must be evaluated together. Companies must assess whether the processed query alone or combined with other data available to the provider could lead to re-identification. The correspondence table linking labels to original values must remain strictly inside the organization and separate from the processed data. Additional checks are required for repeated mentions in appendices, job titles, company names, exact amounts, and dates that could link back to public procurement records or court cases.