Repository navigation
Replies: 1 comment
It seems to be fixed in RawlineMobile.
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Problem
On Android, an app excluded from the VPN (VpnService per-app list) can still bind a socket to the TUN interface with
SO_BINDTODEVICE(unprivileged since Linux 5.7) and send traffic through the tunnel. Xray routes it like any other flow, so the app learns the proxy exit IP. VPN-detection apps already do this (e.g. RKNHarderingTUN_ACTIVE_PROBE). Related: #5906, v2rayNG #5499 and #6465, amnezia-client #2457.What already works
Since #5915,
processmatches Android UIDs via the finder registered by the client.getConnectionOwnerUid()returnsINVALID_UIDfor UIDs the VPN does not apply to, so a ruleprocess: ["-1"] → block(v2rayNG's__unknown_app__) stops it. Verified with Xray TUN: TCP and UDP from an excluded app are blocked, and ICMP is answered locally by the TUN stack.Why a core option would help
block-bind-to-tunnel-enable), INCY not at all.tun, port 53 → dns-outat index 0, so DNS from unknown owners never reaches the check.-1before routing would close this for every Xray-based Android client with one flag.Caveats
It must be opt-in and requires a registered process finder. False
-1results for very short-lived UDP sockets are possible. The AmneziaVPN strict-mode authors also report that Private DNS by hostname breaks in allow-list mode.All reactions