v2rayN icon indicating copy to clipboard operation
v2rayN copied to clipboard

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

Open gee666 opened this issue 1 year ago • 3 comments

预期情况

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?

复现方法

  • install clean latest version, no config
  • update all cores
  • add a trojan server
  • start tun mode
  • try curl api.myip.com in terminal (it works)
  • try open myip.com in the browser (it doesn't work - ERR_CONNECTION_CLOSED )

disabling firewall entirely doesn't help

日志信息

config: config.json

log: debug_log_v2rayn.txt

额外信息

No response

我确认已更新至最新版本

  • [X] 是

我确认已查询历史issues

  • [X] 是

gee666 avatar Dec 03 '24 02:12 gee666

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 avatar Dec 03 '24 16:12 gee666

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 avatar Dec 03 '24 16:12 gee666

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"
}

gee666 avatar Dec 03 '24 20:12 gee666

pls use version 6.60

2dust avatar Dec 05 '24 02:12 2dust