MatsuriDayo / nekoray

Qt based cross-platform GUI proxy configuration manager (backend: sing-box)
https://matsuridayo.github.io/
GNU General Public License v3.0
13.02k stars 1.21k forks source link

Can't connect to any protocol and shutdown internet when using TUN #1460

Open Heslimited opened 1 week ago

Heslimited commented 1 week ago

Hello, in Nekoray the Internet completely disappears when connecting in TUN mode and I get only errors of this kind: ERROR[0010] dns: exchange failed for www.msftconnecttest.com. IN A: Post "https://8.8.8.8/dns-query": context canceled ERROR[0010] dns: exchange failed for edge.microsoft.com. IN A: Post "https://8.8.8.8/dns-query": context canceled

The system proxy mode does not seem to give errors, the server works properly, I changed the DNS in Nekoray several times, I ran the program as administrator. Tell me what the problem could be?

sueta2 commented 6 days ago

same

erius0 commented 5 days ago

What OS are you using? Have you tried any of the solutions provided in the issue #118? I fixed this on my Fedora ARM64 device by disabling and stopping the systemd-resolved service and installing some other stub resolver.

Heslimited commented 5 days ago

What OS are you using? Have you tried any of the solutions provided in the issue #118? I fixed this on my Fedora ARM64 device by disabling and stopping the systemd-resolved service and installing some other stub resolver.

On PC I am using Windows, on server Ubuntu. Also, I haven’t tried solutions in #118. Can u please tell me more about your solution ?

erius0 commented 5 days ago

If you are on Windows, then most likely something's up with the DNS settings in nekoray. Could you go to Routing Settings -> DNS and send a screenshot of those settings?

Heslimited commented 5 days ago

If you are on Windows, then most likely something's up with the DNS settings in nekoray. Could you go to Routing Settings -> DNS and send a screenshot of those settings?

I tried changing the remote dns, I didn't touch the other settings.

Heslimited commented 5 days ago

https://imgur.com/a/LwZNvZR

erius0 commented 5 days ago

Try changing Direct DNS to something other than localhost (preferably to something that uses https)

Heslimited commented 4 days ago

Try changing Direct DNS to something other than localhost (preferably to something that uses https)

Still got this image

Halahad08 commented 3 days ago

same issue

Heslimited commented 3 days ago

Any other ideas?

walker2two commented 3 days ago

I've had the same issue and tried to fix it for quite a while yesterday.

What helped me is to delete every peice of other software that creates network adapters in windows. Including virtualbox and plethora of VPN clients I've had. And then perform network reset.

Also I think another major step that helped, is that I've changed network interface metric for my ethernet interface to a higher number of 100, because it seems that DNS requests were being sent to that interface instead of VPN tunnel.

After that all xray clients that use sing-tun started working

erius0 commented 2 days ago

I've had the same issue and tried to fix it for quite a while yesterday.

What helped me is to delete every peice of other software that creates network adapters in windows. Including virtualbox and plethora of VPN clients I've had. And then perform network reset.

Also I think another major step that helped, is that I've changed network interface metric for my ethernet interface to a higher number of 100, because it seems that DNS requests were being sent to that interface instead of VPN tunnel.

After that all xray clients that use sing-tun started working

Sometimes when removing Wireguard from your PC its wintun driver could still be present on the system and cause problems for sing-tun. Try the solution from this issue #1390