Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: TUN Mode Not Working on v2rayN (v7.1.3, Windows 11) #6166

Closed
2 tasks done
iamomid1997 opened this issue Nov 26, 2024 · 3 comments
Closed
2 tasks done

[Bug]: TUN Mode Not Working on v2rayN (v7.1.3, Windows 11) #6166

iamomid1997 opened this issue Nov 26, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@iamomid1997
Copy link

预期情况

实际情况

Hello,
I have been using v2rayN with TUN mode successfully for some time. However, as of a few days ago, the TUN mode no longer works.
I have installed the latest version (v7.1.3) and confirmed that all configurations are correct. My system is running Windows 11. Despite trying DNS resets and other solutions, the issue persists.

复现方法

日志信息

+0330 2024-11-26 14:49:02 ERROR [1942035415 10.0s] dns: exchange failed for client-update.fastly.steamstatic.com. IN A: context deadline exceeded
+0330 2024-11-26 14:49:02 ERROR [1942035415 10.0s] dns: exchange failed for client-update.fastly.steamstatic.com. IN A: use of closed network connection
+0330 2024-11-26 14:49:02 ERROR [1942035415 10.0s] dns: exchange failed for client-update.fastly.steamstatic.com. IN A: use of closed network connection
+0330 2024-11-26 14:49:02 ERROR [1942035415 10.0s] dns: exchange failed for client-update.fastly.steamstatic.com. IN A: use of closed network connection
+0330 2024-11-26 14:49:02 ERROR [1942035415 10.0s] dns: exchange failed for client-update.fastly.steamstatic.com. IN A: use of closed network connection
+0330 2024-11-26 14:49:02 ERROR [621075174 10.55s] dns: exchange failed for www.msftconnecttest.com. IN A: context deadline exceeded
+0330 2024-11-26 14:49:02 ERROR [621075174 10.55s] dns: exchange failed for www.msftconnecttest.com. IN A: use of closed network connection
+0330 2024-11-26 14:49:02 ERROR [621075174 10.55s] dns: exchange failed for www.msftconnecttest.com. IN A: use of closed network connection
+0330 2024-11-26 14:49:02 ERROR [621075174 10.55s] dns: exchange failed for www.msftconnecttest.com. IN A: use of closed network connection
+0330 2024-11-26 14:49:02 ERROR [621075174 10.55s] dns: exchange failed for www.msftconnecttest.com. IN A: use of closed network connection
+0330 2024-11-26 14:49:02 ERROR [3239835263 10.0s] dns: exchange failed for ipv6.msftconnecttest.com. IN A: context deadline exceeded
+0330 2024-11-26 14:49:02 ERROR [3239835263 10.0s] dns: exchange failed for ipv6.msftconnecttest.com. IN A: use of closed network connection
+0330 2024-11-26 14:49:02 ERROR [3239835263 10.0s] dns: exchange failed for ipv6.msftconnecttest.com. IN A: use of closed network connection
+0330 2024-11-26 14:49:02 ERROR [3239835263 10.0s] dns: exchange failed for ipv6.msftconnecttest.com. IN A: use of closed network connection
+0330 2024-11-26 14:49:02 ERROR [3239835263 10.0s] dns: exchange failed for ipv6.msftconnecttest.com. IN A: use of closed network connection
+0330 2024-11-26 14:49:03 ERROR [3003631362 10.0s] dns: exchange failed for mtalk.google.com. IN A: context deadline exceeded
+0330 2024-11-26 14:49:03 ERROR [3003631362 10.0s] dns: exchange failed for mtalk.google.com. IN A: use of closed network connection
+0330 2024-11-26 14:49:03 ERROR [3003631362 10.0s] dns: exchange failed for mtalk.google.com. IN A: use of closed network connection
+0330 2024-11-26 14:49:03 ERROR [3003631362 10.0s] dns: exchange failed for mtalk.google.com. IN A: use of closed network connection
+0330 2024-11-26 14:49:03 ERROR [3003631362 10.0s] dns: exchange failed for mtalk.google.com. IN A: use of closed network connection
+0330 2024-11-26 14:49:46 ERROR [4111373010 18.71s] inbound/tun[tun-in]: download: raw-read tcp 127.0.0.1:51598->127.0.0.1:10808: An existing connection was forcibly closed by the remote host.

额外信息

No response

我确认已更新至最新版本

我确认已查询历史issues

@iamomid1997 iamomid1997 added the bug Something isn't working label Nov 26, 2024
@lolitakon
Copy link

It seems to be a routing incompatibility issue. I have the same problem. DNS traffic does not seem to be properly proxied by tun.

@2dust
Copy link
Owner

2dust commented Nov 27, 2024

#4539

@2dust 2dust closed this as not planned Won't fix, can't repro, duplicate, stale Nov 27, 2024
@iamomid1997
Copy link
Author

iamomid1997 commented Nov 27, 2024

#4539

I wanted to share a solution that resolved the TUN mode issue for me, in case it helps others facing a similar problem.

After troubleshooting for a while, I uninstalled all my network adapter drivers through Device Manager and then let Windows reinstall them automatically upon reboot. Once this was done, the TUN mode started working perfectly again.

If you're encountering TUN mode problems or similar DNS-related errors, I recommend trying this approach.

Steps I followed:

  1. Opened Device Manager.
  2. Navigated to Network adapters.
  3. Uninstalled all network adapter drivers (right-click → Uninstall device).
  4. Restarted the computer, and Windows automatically reinstalled the necessary drivers.

1

Hope this helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants