2dust / v2rayN

A GUI client for Windows and Linux, support Xray core and sing-box-core and others
https://1.2345345.xyz
GNU General Public License v3.0
70.95k stars 11.68k forks source link

[Bug]: sing-box TUN mode working in terminal, but not in Browsers #6209

Open gee666 opened 1 day ago

gee666 commented 1 day ago

预期情况

in TUN mode Chrome works (it worked on previous versions)

实际情况

Hello, I have been using v2rayN with TUN mode successfully for some time. it's been working for the entire system, including browsres. I have installed the latest version (v7.1.3) and confirmed that all configurations are correct. My system is running Windows 11. After the update the Tun adapter appears, it works in windows terminal (curl api.myip.com returns a correct IP address information), but in Chrome browser I get ERR_CONNECTION_CLOSED error

What could gone wrong? Is there any idea how to resolve the issue?

复现方法

disabling firewall entirely doesn't help

日志信息

config: config.json

log: debug_log_v2rayn.txt

额外信息

No response

我确认已更新至最新版本

我确认已查询历史issues

gee666 commented 17 hours ago

UPD: the same happens with electron applications, e.g. Oculus Quest Link And in all the other browsers: Opera, Firefox When tun mode is enabled, and system proxy disabled, it doesn't work at all: ERR_CONNECTION_CLOSED

gee666 commented 17 hours ago

UPD: I checked different versions of v2rayN. Under the version 6.60 it works Starting the 7.0.0 it doesn't work anymore

gee666 commented 14 hours ago

UPD: aaaahhh! It started to work after I put this into singbox DNS settings (basically I added ipv4_only everywhere).

Could you please explain me WHY does it work? Singbox doesn't work with ipv6 anymore? Why? Or maybe there is another better way to make it work, than ipv4_only?

{
  "servers": [
    {
      "tag": "remote",
      "address": "8.8.8.8",
      "strategy": "ipv4_only",
      "detour": "proxy"
    },
    {
      "tag": "local",
      "address": "223.5.5.5",
      "strategy": "ipv4_only",
      "detour": "direct"
    },
    {
      "tag": "block",
      "address": "rcode://success"
    }
  ],
  "final": "remote"
}