MatsuriDayo / nekoray

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

BUG: Tun Mode #1407

Open Kenzo-911 opened 3 months ago

Kenzo-911 commented 3 months ago

hello When I use Tun mode and open another program like Chrome, Tun mode is disabled and nekoray-tun (Control Panel\Network and Internet\Network Connections) cannot connect to the Internet. I restart my pc and doesn't work

Ashaxer commented 3 months ago

Try changing core to sing-box worked for me..

shanoaice commented 3 months ago

I suggest using the 4.0-beta3 version. The sing-box executable with old 3.x program has some weird self-looping issues that sometimes break TUN mode, and doesn't happen reliably.

LazyDBAS commented 2 months ago

Hello!

I have the two servers with Xray. The Xray servers are configured to use "VLESS" with "xtls-rprx-vision".

The server 'server1' configured to use "VLESS" with "xtls-rprx-vision" without "public-private" keys and "shortsid", I'm using only "uuid". The server 'server2' configured to use "VLESS" with "xtls-rprx-vision" with "public-private" keys and "shortsid" and using "uuid".

I use Nekoray versions 3.23 and 3.26. Core option sing-box. Remote DNS "https://8.8.8.8/dns-query". Direct DNS "localhost". Enable DNS Routing.

When I use TUN mode in the Nekoray to connect to the server 'server1' with XRay configured without "public-private" keys and "shortsid" connection working. When I try to use TUN mode in the Nekoray to connect to the server 'server2' with XRay configured with "public key" I get the error"dns: exchange failed for mtalk.google.com. IN A: Post "https://8.8.8.8/dns-query": EOF".

I tried using Nekoray version 4.0 beta 3. Core option sing-box. Remote DNS "https://dns.google/dns-query". Direct DNS "https://doh.pub/dns-query". Enable DNS Routing.

When I use TUN mode in the Nekoray to connect to the server 'server1' with XRay configured without "public-private" keys and "shortsid" connection working. When I try to use TUN mode in the nekoray to connect to the server 'server2' with XRay configured with "public key" I get the errors:

"INFO[0013] dns: exchanged mydomain.freemyip.com OPT OPT PSEUDOSECTION: EDNS: version 0 flags: MBZ: 0x00b4, udp: 4096 SUBNET: ip_my_provider"
"ERROR[0015] dns: exchange failed for beacons.gcp.gvt2.com. IN A: EOF
[[VLESS] lazy-1-5_openwrt] test error: Get "http://cp.cloudflare.com/": EOF"
"ERROR[0015] dns: exchange failed for signaler-pa.clients6.google.com. IN A: EOF"
"ERROR[0010] dns: exchange failed for dns.google. IN A: context deadline exceeded"
"ERROR[0010] dns: exchange failed for dns.google. IN A: context canceled"
"ERROR[0010] dns: exchange failed for dns.google. IN A: context canceled"
"ERROR[0010] dns: exchange failed for dns.google. IN A: context canceled"
"ERROR[0010] dns: exchange failed for dns.google. IN A: context canceled"
"ERROR[0010] dns: exchange failed for go.microsoft.com. IN A: context deadline exceeded"
"ERROR[0010] dns: exchange failed for go.microsoft.com. IN A: context canceled"
"ERROR[0010] dns: exchange failed for go.microsoft.com. IN A: context canceled"
"ERROR[0010] dns: exchange failed for go.microsoft.com. IN A: context canceled"
"ERROR[0010] dns: exchange failed for go.microsoft.com. IN A: context canceled"
"ERROR[0010] dns: exchange failed for doh.pub. IN A: context deadline exceeded"
"ERROR[0010] dns: exchange failed for doh.pub. IN A: context canceled"
"ERROR[0010] dns: exchange failed for doh.pub. IN A: context canceled"
"ERROR[0010] dns: exchange failed for doh.pub. IN A: context canceled"
"ERROR[0010] dns: exchange failed for doh.pub. IN A: context canceled"
"ERROR[0011] dns: exchange failed for mtalk.google.com. IN A: context deadline exceeded"
"ERROR[0011] dns: exchange failed for mtalk.google.com. IN A: context canceled"
"ERROR[0011] dns: exchange failed for mtalk.google.com. IN A: context canceled"
"ERROR[0011] dns: exchange failed for mtalk.google.com. IN A: context canceled"
"ERROR[0011] dns: exchange failed for mtalk.google.com. IN A: context canceled"

I have router with OpenWRT. I use client sing-box with TUN mode on the OpenWRT to connect to the server 'server2'. On OpenWRT connecting working.

I don't understand why this configuration doesn't work on Nekoray.

LazyDBAS commented 2 months ago

Hello!

I have the two servers with Xray. The Xray servers are configured to use "VLESS" with "xtls-rprx-vision".

The server 'server1' configured to use "VLESS" with "xtls-rprx-vision" without "public-private" keys and "shortsid", I'm using only "uuid". The server 'server2' configured to use "VLESS" with "xtls-rprx-vision" with "public-private" keys and "shortsid" and using "uuid".

I use Nekoray versions 3.23 and 3.26. Core option sing-box. Remote DNS "https://8.8.8.8/dns-query". Direct DNS "localhost". Enable DNS Routing.

When I use TUN mode in the Nekoray to connect to the server 'server1' with XRay configured without "public-private" keys and "shortsid" connection working. When I try to use TUN mode in the Nekoray to connect to the server 'server2' with XRay configured with "public key" I get the error"dns: exchange failed for mtalk.google.com. IN A: Post "https://8.8.8.8/dns-query": EOF".

I tried using Nekoray version 4.0 beta 3. Core option sing-box. Remote DNS "https://dns.google/dns-query". Direct DNS "https://doh.pub/dns-query". Enable DNS Routing.

When I use TUN mode in the Nekoray to connect to the server 'server1' with XRay configured without "public-private" keys and "shortsid" connection working. When I try to use TUN mode in the nekoray to connect to the server 'server2' with XRay configured with "public key" I get the errors:

"INFO[0013] dns: exchanged mydomain.freemyip.com OPT OPT PSEUDOSECTION: EDNS: version 0 flags: MBZ: 0x00b4, udp: 4096 SUBNET: ip_my_provider"
"ERROR[0015] dns: exchange failed for beacons.gcp.gvt2.com. IN A: EOF
[[VLESS] lazy-1-5_openwrt] test error: Get "http://cp.cloudflare.com/": EOF"
"ERROR[0015] dns: exchange failed for signaler-pa.clients6.google.com. IN A: EOF"
"ERROR[0010] dns: exchange failed for dns.google. IN A: context deadline exceeded"
"ERROR[0010] dns: exchange failed for dns.google. IN A: context canceled"
"ERROR[0010] dns: exchange failed for dns.google. IN A: context canceled"
"ERROR[0010] dns: exchange failed for dns.google. IN A: context canceled"
"ERROR[0010] dns: exchange failed for dns.google. IN A: context canceled"
"ERROR[0010] dns: exchange failed for go.microsoft.com. IN A: context deadline exceeded"
"ERROR[0010] dns: exchange failed for go.microsoft.com. IN A: context canceled"
"ERROR[0010] dns: exchange failed for go.microsoft.com. IN A: context canceled"
"ERROR[0010] dns: exchange failed for go.microsoft.com. IN A: context canceled"
"ERROR[0010] dns: exchange failed for go.microsoft.com. IN A: context canceled"
"ERROR[0010] dns: exchange failed for doh.pub. IN A: context deadline exceeded"
"ERROR[0010] dns: exchange failed for doh.pub. IN A: context canceled"
"ERROR[0010] dns: exchange failed for doh.pub. IN A: context canceled"
"ERROR[0010] dns: exchange failed for doh.pub. IN A: context canceled"
"ERROR[0010] dns: exchange failed for doh.pub. IN A: context canceled"
"ERROR[0011] dns: exchange failed for mtalk.google.com. IN A: context deadline exceeded"
"ERROR[0011] dns: exchange failed for mtalk.google.com. IN A: context canceled"
"ERROR[0011] dns: exchange failed for mtalk.google.com. IN A: context canceled"
"ERROR[0011] dns: exchange failed for mtalk.google.com. IN A: context canceled"
"ERROR[0011] dns: exchange failed for mtalk.google.com. IN A: context canceled"

I have router with OpenWRT. I use client sing-box with TUN mode on the OpenWRT to connect to the server 'server2'. On OpenWRT connecting working.

I don't understand why this configuration doesn't work on Nekoray.

I'm sorry. I made a mistake in my config file in the xray, so Nekoray showed errors. After correcting the xray config file, errors are lost.

Para-line commented 2 months ago

Hello! I have the two servers with Xray. The Xray servers are configured to use "VLESS" with "xtls-rprx-vision". The server 'server1' configured to use "VLESS" with "xtls-rprx-vision" without "public-private" keys and "shortsid", I'm using only "uuid". The server 'server2' configured to use "VLESS" with "xtls-rprx-vision" with "public-private" keys and "shortsid" and using "uuid". I use Nekoray versions 3.23 and 3.26. Core option sing-box. Remote DNS "https://8.8.8.8/dns-query". Direct DNS "localhost". Enable DNS Routing. When I use TUN mode in the Nekoray to connect to the server 'server1' with XRay configured without "public-private" keys and "shortsid" connection working. When I try to use TUN mode in the Nekoray to connect to the server 'server2' with XRay configured with "public key" I get the error"dns: exchange failed for mtalk.google.com. IN A: Post "https://8.8.8.8/dns-query": EOF". I tried using Nekoray version 4.0 beta 3. Core option sing-box. Remote DNS "https://dns.google/dns-query". Direct DNS "https://doh.pub/dns-query". Enable DNS Routing. When I use TUN mode in the Nekoray to connect to the server 'server1' with XRay configured without "public-private" keys and "shortsid" connection working. When I try to use TUN mode in the nekoray to connect to the server 'server2' with XRay configured with "public key" I get the errors:

"INFO[0013] dns: exchanged mydomain.freemyip.com OPT OPT PSEUDOSECTION: EDNS: version 0 flags: MBZ: 0x00b4, udp: 4096 SUBNET: ip_my_provider"
"ERROR[0015] dns: exchange failed for beacons.gcp.gvt2.com. IN A: EOF
[[VLESS] lazy-1-5_openwrt] test error: Get "http://cp.cloudflare.com/": EOF"
"ERROR[0015] dns: exchange failed for signaler-pa.clients6.google.com. IN A: EOF"
"ERROR[0010] dns: exchange failed for dns.google. IN A: context deadline exceeded"
"ERROR[0010] dns: exchange failed for dns.google. IN A: context canceled"
"ERROR[0010] dns: exchange failed for dns.google. IN A: context canceled"
"ERROR[0010] dns: exchange failed for dns.google. IN A: context canceled"
"ERROR[0010] dns: exchange failed for dns.google. IN A: context canceled"
"ERROR[0010] dns: exchange failed for go.microsoft.com. IN A: context deadline exceeded"
"ERROR[0010] dns: exchange failed for go.microsoft.com. IN A: context canceled"
"ERROR[0010] dns: exchange failed for go.microsoft.com. IN A: context canceled"
"ERROR[0010] dns: exchange failed for go.microsoft.com. IN A: context canceled"
"ERROR[0010] dns: exchange failed for go.microsoft.com. IN A: context canceled"
"ERROR[0010] dns: exchange failed for doh.pub. IN A: context deadline exceeded"
"ERROR[0010] dns: exchange failed for doh.pub. IN A: context canceled"
"ERROR[0010] dns: exchange failed for doh.pub. IN A: context canceled"
"ERROR[0010] dns: exchange failed for doh.pub. IN A: context canceled"
"ERROR[0010] dns: exchange failed for doh.pub. IN A: context canceled"
"ERROR[0011] dns: exchange failed for mtalk.google.com. IN A: context deadline exceeded"
"ERROR[0011] dns: exchange failed for mtalk.google.com. IN A: context canceled"
"ERROR[0011] dns: exchange failed for mtalk.google.com. IN A: context canceled"
"ERROR[0011] dns: exchange failed for mtalk.google.com. IN A: context canceled"
"ERROR[0011] dns: exchange failed for mtalk.google.com. IN A: context canceled"

I have router with OpenWRT. I use client sing-box with TUN mode on the OpenWRT to connect to the server 'server2'. On OpenWRT connecting working. I don't understand why this configuration doesn't work on Nekoray.

I'm sorry. I made a mistake in my config file in the xray, so Nekoray showed errors. After correcting the xray config file, errors are lost.

What's the problem in the end? I'm using xray and I'm having similar issues.

S1lenix commented 1 month ago

Hello! I have the two servers with Xray. The Xray servers are configured to use "VLESS" with "xtls-rprx-vision". The server 'server1' configured to use "VLESS" with "xtls-rprx-vision" without "public-private" keys and "shortsid", I'm using only "uuid". The server 'server2' configured to use "VLESS" with "xtls-rprx-vision" with "public-private" keys and "shortsid" and using "uuid". I use Nekoray versions 3.23 and 3.26. Core option sing-box. Remote DNS "https://8.8.8.8/dns-query". Direct DNS "localhost". Enable DNS Routing. When I use TUN mode in the Nekoray to connect to the server 'server1' with XRay configured without "public-private" keys and "shortsid" connection working. When I try to use TUN mode in the Nekoray to connect to the server 'server2' with XRay configured with "public key" I get the error"dns: exchange failed for mtalk.google.com. IN A: Post "https://8.8.8.8/dns-query": EOF". I tried using Nekoray version 4.0 beta 3. Core option sing-box. Remote DNS "https://dns.google/dns-query". Direct DNS "https://doh.pub/dns-query". Enable DNS Routing. When I use TUN mode in the Nekoray to connect to the server 'server1' with XRay configured without "public-private" keys and "shortsid" connection working. When I try to use TUN mode in the nekoray to connect to the server 'server2' with XRay configured with "public key" I get the errors:

"INFO[0013] dns: exchanged mydomain.freemyip.com OPT OPT PSEUDOSECTION: EDNS: version 0 flags: MBZ: 0x00b4, udp: 4096 SUBNET: ip_my_provider"
"ERROR[0015] dns: exchange failed for beacons.gcp.gvt2.com. IN A: EOF
[[VLESS] lazy-1-5_openwrt] test error: Get "http://cp.cloudflare.com/": EOF"
"ERROR[0015] dns: exchange failed for signaler-pa.clients6.google.com. IN A: EOF"
"ERROR[0010] dns: exchange failed for dns.google. IN A: context deadline exceeded"
"ERROR[0010] dns: exchange failed for dns.google. IN A: context canceled"
"ERROR[0010] dns: exchange failed for dns.google. IN A: context canceled"
"ERROR[0010] dns: exchange failed for dns.google. IN A: context canceled"
"ERROR[0010] dns: exchange failed for dns.google. IN A: context canceled"
"ERROR[0010] dns: exchange failed for go.microsoft.com. IN A: context deadline exceeded"
"ERROR[0010] dns: exchange failed for go.microsoft.com. IN A: context canceled"
"ERROR[0010] dns: exchange failed for go.microsoft.com. IN A: context canceled"
"ERROR[0010] dns: exchange failed for go.microsoft.com. IN A: context canceled"
"ERROR[0010] dns: exchange failed for go.microsoft.com. IN A: context canceled"
"ERROR[0010] dns: exchange failed for doh.pub. IN A: context deadline exceeded"
"ERROR[0010] dns: exchange failed for doh.pub. IN A: context canceled"
"ERROR[0010] dns: exchange failed for doh.pub. IN A: context canceled"
"ERROR[0010] dns: exchange failed for doh.pub. IN A: context canceled"
"ERROR[0010] dns: exchange failed for doh.pub. IN A: context canceled"
"ERROR[0011] dns: exchange failed for mtalk.google.com. IN A: context deadline exceeded"
"ERROR[0011] dns: exchange failed for mtalk.google.com. IN A: context canceled"
"ERROR[0011] dns: exchange failed for mtalk.google.com. IN A: context canceled"
"ERROR[0011] dns: exchange failed for mtalk.google.com. IN A: context canceled"
"ERROR[0011] dns: exchange failed for mtalk.google.com. IN A: context canceled"

I have router with OpenWRT. I use client sing-box with TUN mode on the OpenWRT to connect to the server 'server2'. On OpenWRT connecting working. I don't understand why this configuration doesn't work on Nekoray.

I'm sorry. I made a mistake in my config file in the xray, so Nekoray showed errors. After correcting the xray config file, errors are lost.

What's the problem in the end? I'm using xray and I'm having similar issues.

Resolved?