Custom nested WireGuard tunnel inside the Proton VPN app
Please add support for importing a custom, third-party WireGuard configuration (.conf / QR code) to run as a nested inner tunnel routed through an active Proton VPN connection.
The Use Case:
Many privacy-conscious users self-host services at home—such as Syncthing, Home Assistant, Nextcloud, or a personal NAS—over a private WireGuard server. Currently, on mobile devices (Android/iOS), accessing a home WireGuard subnet while connected to Proton VPN forces a bad compromise:
1. Disconnect Proton VPN to connect to the home WireGuard server (which leaks the user's home IP address to mobile carriers and untrusted public Wi-Fi networks, and leaves general browsing unprotected).
2. Use IP Split Tunneling to bypass Proton VPN for the home IP (which still exposes the home IP endpoint to the carrier/ISP and requires exposing services without Proton's outer tunnel).
3. Abandon the official Proton VPN app in favor of generic third-party clients like WG Tunnel to achieve multihop—losing Proton's "Fastest country" server selection, live load balancing, NetShield, and ProTUN/Stealth protocols.
Why This Fits Proton’s Existing Architecture:
Because the Proton VPN app already includes both a userspace WireGuard implementation and IP-based split tunneling inside its VpnService routing loop, most of the underlying plumbing already exists:
• Reuse existing userspace WireGuard: Spin up a secondary userspace WireGuard instance for the user's imported .conf profile.
• Route through the outer tunnel: Simply avoid calling VpnService.protect() on the inner WireGuard instance's outbound UDP socket so its encrypted traffic naturally routes through Proton's active outer tunnel (WireGuard or ProTUN).
• Simple UI & Routing Modes: Add a settings menu to import a .conf file (and set MTU) with a toggle between:
• Split Mode (Recommended): Only route traffic matching the inner profile's AllowedIPs (e.g., 10.0.0.0/24) through the nested tunnel, while all general internet traffic exits directly through Proton VPN.
• Full Tunnel Mode: Route all traffic (0.0.0.0/0) through Proton first and exit via the custom WireGuard server.
This would make Proton VPN the ultimate all-in-one privacy client for self-hosters who want zero home-IP leaks on public networks without giving up Proton's core features.