MasterDnsVPN-AndroidGG icon indicating copy to clipboard operation
MasterDnsVPN-AndroidGG copied to clipboard

[Feature Request] Add "Disable IPv6" toggle in Client App to prevent AAAA connection drops

Open proxi9 opened this issue 4 months ago • 2 comments

Feature Description

Add a configuration option/toggle Disable IPv6 (or Block AAAA Queries) directly in the MasterDnsVPN Client Application settings.

Problem Statement

When tunneling mobile traffic, certain Android applications (e.g., the official YouTube app using Google Cronet) resolve target domains into both IPv4 and IPv6 (AAAA) addresses.

If the client attempts to establish TCP streams to target IPv6 addresses (2001:4860:...) through a SOCKS5 proxy on a server without IPv6 outbound routing, the TUN bridge returns a SOCKS5 error: tun bridge tcp scks5 connect refused code 3

Proposed Solution

Add a Disable IPv6 toggle in the Client App settings to filter out IPv6 (AAAA) DNS responses or block IPv6 traffic at the TUN bridge level, forcing all proxied application traffic to resolve and connect strictly via IPv4 addresses (142.250.x.x).

Benefits

  • Eliminates connection timeouts and connect refused code 3 errors in Android apps like YouTube.
  • Provides a seamless user experience without requiring users to manually modify system-wide Android APN or Private DNS settings.

proxi9 avatar Aug 01 '26 22:08 proxi9

Here is my dirty fix that drops IPv6 connections. My server doesn't have IPv6 address, but apps such as YouTube are really trying IPv6 first and wait for a response forever. The fix solves the problem: IPv6 connections get reset immediately hence the apps switch to IPv4, and works fine.

EvgenyNerush avatar Sep 29 '26 20:09 EvgenyNerush

Thanks for your help, in the new version 1.1.1 that they released last week, IPV6 has been fixed, you can disable it from the settings page, it is disabled by default.

RevocGG avatar Sep 30 '26 18:09 RevocGG