MatsuriDayo / nekoray

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

nekoray 2.1[windows]版上使用sing-box内核及hysteria协议的VPN模式的报错 #91

Closed egg1234 closed 1 year ago

egg1234 commented 2 years ago

下面这个报错是在使用nekoray 2.1[windows]版sing-box内核情况下hysteria协议的vpn模式下出现的,vmess及vless的vpn模式是没有出现这个报错的,而且把vpn的mtu修改为1500及9000都一样的出现这个报错,同样的修改vpn实现为system及gVisor的各种mtu组合仍然会报这个错误,firefox浏览器就会出现很多网页不能出全或浏览中途报错停止的问题,例如浏览 https://browserleaks.com/dns 这个网页, 这个报错对于chrome浏览器影响似乎轻微一些,chrome好像会自动重试,但有一些网页还是不行,如 https://dnsleaktest.com/ 的extended test

错误信息是下面这个,而且这个信息会不断频繁固定出现 DEBUG[0009] [456578387] inbound/mixed[mixed-in]: connection closed: process connection from 127.0.0.1:63078: upload: read tcp 127.0.0.1:2080->127.0.0.1:63078: use of closed network connection | download: INTERNAL_ERROR: read udp 10.0.0.102:51645->172.172.172.172:9393: wsarecv: A message sent on a datagram socket was larger than the internal message buffer or some other network limit, or the buffer used to receive a datagram into was smaller than the datagram itself.

下面是日志

正在启动配置 [hysteria] xxx_hysteria sing-box: 1.1-beta10 Neko: nekoray-2.1-2022-10-22

2022/10/23 03:30:19 nekobox_core grpc server listening at 127.0.0.1:63065 INFO[0000] router: loaded geoip database: 250 codes INFO[0000] router: loaded geosite database: 1288 codes INFO[0000] router: updated default interface 以太网, index 9 INFO[0000] inbound/mixed[mixed-in]: tcp server started at 127.0.0.1:2080 INFO[0000] v2ray-api: grpc server started at 127.0.0.1:2090 INFO[0000] sing-box started (0.77s) INFO[0007] [1682448085] inbound/mixed[mixed-in]: inbound connection from 127.0.0.1:63069 INFO[0007] [1682448085] inbound/mixed[mixed-in]: inbound packet connection to 172.19.0.2:53 DEBUG[0007] [1682448085] router: sniffed packet protocol: dns DEBUG[0007] [1682448085] router: match[0] protocol=dns => dns-out DEBUG[0007] [1682448085] dns: exchange dmd.metaservices.microsoft.com. IN A INFO[0007] [1682448085] outbound/hysteria[proxy]: outbound connection to 8.8.8.8:443 DEBUG[0007] dns: lookup domain www.yourname.com DEBUG[0007] dns: match[0] domain=www.yourname.com geosite=cn => dns-direct INFO[0007] outbound/direct[direct]: outbound connection to 1.0.0.1:443 INFO[0007] outbound/direct[direct]: outbound connection to 1.0.0.1:443 INFO[0007] [1184810977] inbound/mixed[mixed-in]: inbound connection from 127.0.0.1:63072 INFO[0007] [1184810977] inbound/mixed[mixed-in]: inbound packet connection to 172.19.0.2:53 DEBUG[0007] [1184810977] router: sniffed packet protocol: dns DEBUG[0007] [1184810977] router: match[0] protocol=dns => dns-out DEBUG[0007] [1184810977] dns: exchange www.msftconnecttest.com. IN A INFO[0007] [1184810977] outbound/hysteria[proxy]: outbound connection to 8.8.8.8:443 INFO[0007] [674176242] inbound/mixed[mixed-in]: inbound connection from 127.0.0.1:63073 INFO[0007] [2921329618] inbound/mixed[mixed-in]: inbound connection from 127.0.0.1:63074 INFO[0007] [674176242] inbound/mixed[mixed-in]: inbound packet connection to 103.195.103.66:9993 INFO[0007] [2921329618] inbound/mixed[mixed-in]: inbound packet connection to 103.195.103.66:9993 INFO[0007] [3765201323] inbound/mixed[mixed-in]: inbound connection from 127.0.0.1:63075 INFO[0007] [3765201323] inbound/mixed[mixed-in]: inbound packet connection to 103.195.103.66:9993 INFO[0007] [2921329618] outbound/hysteria[proxy]: outbound packet connection to 103.195.103.66:9993 INFO[0007] [674176242] outbound/hysteria[proxy]: outbound packet connection to 103.195.103.66:9993 INFO[0007] [3765201323] outbound/hysteria[proxy]: outbound packet connection to 103.195.103.66:9993 INFO[0008] dns: lookup succeed for www.yourname.com: 172.172.172.172 DEBUG[0008] [1682448085] dns: exchange dmd.metaservices.microsoft.com. IN A INFO[0008] [1682448085] dns: exchanged dmd.metaservices.microsoft.com. CNAME dmd.metaservices.microsoft.com. 1924 IN CNAME devicemetadataservice.prod.trafficmanager.net. INFO[0008] [1682448085] dns: exchanged dmd.metaservices.microsoft.com. CNAME devicemetadataservice.prod.trafficmanager.net. 2 IN CNAME vmss-prod-eus.eastus.cloudapp.azure.com. INFO[0008] [1682448085] dns: exchanged dmd.metaservices.microsoft.com. A vmss-prod-eus.eastus.cloudapp.azure.com. 2 IN A 52.188.50.245 INFO[0008] [1184810977] dns: exchanged www.msftconnecttest.com. CNAME www.msftconnecttest.com. 3282 IN CNAME ncsi-geo.trafficmanager.net. INFO[0008] [1184810977] dns: exchanged www.msftconnecttest.com. CNAME ncsi-geo.trafficmanager.net. 3600 IN CNAME v4ncsi.msedge.net. INFO[0008] [1184810977] dns: exchanged www.msftconnecttest.com. CNAME v4ncsi.msedge.net. 35 IN CNAME ncsi.4-c-0003.c-msedge.net. INFO[0008] [1184810977] dns: exchanged www.msftconnecttest.com. CNAME ncsi.4-c-0003.c-msedge.net. 35 IN CNAME 4-c-0003.c-msedge.net. INFO[0008] [1184810977] dns: exchanged www.msftconnecttest.com. A 4-c-0003.c-msedge.net. 35 IN A 13.107.4.52 INFO[0008] [456578387] inbound/mixed[mixed-in]: inbound connection from 127.0.0.1:63078 INFO[0008] [456578387] inbound/mixed[mixed-in]: inbound connection to 52.188.50.245:80 DEBUG[0008] [456578387] router: sniffed protocol: http, domain: dmd.metaservices.microsoft.com INFO[0008] [456578387] outbound/hysteria[proxy]: outbound connection to 52.188.50.245:80 INFO[0008] [415547597] inbound/mixed[mixed-in]: inbound connection from 127.0.0.1:63079 INFO[0008] [415547597] inbound/mixed[mixed-in]: inbound connection to 13.107.4.52:80 DEBUG[0008] [415547597] router: sniffed protocol: http, domain: www.msftconnecttest.com INFO[0008] [415547597] outbound/hysteria[proxy]: outbound connection to 13.107.4.52:80 DEBUG[0008] [415547597] inbound/mixed[mixed-in]: connection closed: process connection from 127.0.0.1:63079: download: EOF | upload: EOF INFO[0008] [1682448085] dns: exchanged dmd.metaservices.microsoft.com. CNAME dmd.metaservices.microsoft.com. 1924 IN CNAME devicemetadataservice.prod.trafficmanager.net. INFO[0008] [1682448085] dns: exchanged dmd.metaservices.microsoft.com. CNAME devicemetadataservice.prod.trafficmanager.net. 2 IN CNAME vmss-prod-eus.eastus.cloudapp.azure.com. INFO[0008] [1682448085] dns: exchanged dmd.metaservices.microsoft.com. A vmss-prod-eus.eastus.cloudapp.azure.com. 2 IN A 52.188.50.245 INFO[0009] [4041617871] inbound/mixed[mixed-in]: inbound connection from 127.0.0.1:63080 INFO[0009] [4041617871] inbound/mixed[mixed-in]: inbound packet connection to 172.19.0.2:53 DEBUG[0009] [4041617871] router: sniffed packet protocol: dns DEBUG[0009] [4041617871] router: match[0] protocol=dns => dns-out DEBUG[0009] [4041617871] dns: exchange go.microsoft.com. IN A INFO[0009] [4041617871] dns: exchanged go.microsoft.com. CNAME go.microsoft.com. 3061 IN CNAME go.microsoft.com.edgekey.net. INFO[0009] [4041617871] dns: exchanged go.microsoft.com. CNAME go.microsoft.com.edgekey.net. 599 IN CNAME e11290.dspg.akamaiedge.net. INFO[0009] [4041617871] dns: exchanged go.microsoft.com. A e11290.dspg.akamaiedge.net. 20 IN A 104.76.72.64 INFO[0009] [3238523818] inbound/mixed[mixed-in]: inbound connection from 127.0.0.1:63082 INFO[0009] [3238523818] inbound/mixed[mixed-in]: inbound connection to 104.76.72.64:80 DEBUG[0009] [3238523818] router: sniffed protocol: http, domain: go.microsoft.com INFO[0009] [3238523818] outbound/hysteria[proxy]: outbound connection to 104.76.72.64:80 DEBUG[0009] [3238523818] inbound/mixed[mixed-in]: connection closed: process connection from 127.0.0.1:63082: download: EOF | upload: EOF DEBUG[0009] [456578387] inbound/mixed[mixed-in]: connection closed: process connection from 127.0.0.1:63078: upload: read tcp 127.0.0.1:2080->127.0.0.1:63078: use of closed network connection | download: INTERNAL_ERROR: read udp 10.0.0.102:51645->172.172.172.172:9393: wsarecv: A message sent on a datagram socket was larger than the internal message buffer or some other network limit, or the buffer used to receive a datagram into was smaller than the datagram itself. DEBUG[0009] [3765201323] inbound/mixed[mixed-in]: connection closed: process connection from 127.0.0.1:63075: download: use of closed network connection | upload: read udp 127.0.0.1:51643: use of closed network connection | read tcp 127.0.0.1:2080->127.0.0.1:63075: use of closed network connection DEBUG[0009] [2921329618] inbound/mixed[mixed-in]: connection closed: process connection from 127.0.0.1:63074: download: use of closed network connection | upload: read udp 127.0.0.1:51639: use of closed network connection | read tcp 127.0.0.1:2080->127.0.0.1:63074: use of closed network connection DEBUG[0009] [674176242] inbound/mixed[mixed-in]: connection closed: process connection from 127.0.0.1:63073: download: use of closed network connection | upload: read udp 127.0.0.1:51640: use of closed network connection | read tcp 127.0.0.1:2080->127.0.0.1:63073: use of closed network connection DEBUG[0018] [1184810977] inbound/mixed[mixed-in]: connection closed: process connection from 127.0.0.1:63072: read udp 127.0.0.1:51637: use of closed network connection | upstream: context canceled | read tcp 127.0.0.1:2080->127.0.0.1:63072: use of closed network connection DEBUG[0018] [1682448085] inbound/mixed[mixed-in]: connection closed: process connection from 127.0.0.1:63069: read udp 127.0.0.1:59011: use of closed network connection | upstream: context canceled | read tcp 127.0.0.1:2080->127.0.0.1:63069: use of closed network connection DEBUG[0019] [4041617871] inbound/mixed[mixed-in]: connection closed: process connection from 127.0.0.1:63080: read udp 127.0.0.1:52447: use of closed network connection | upstream: context canceled | read tcp 127.0.0.1:2080->127.0.0.1:63080: use of closed network connection

arm64v8a commented 2 years ago

关闭vpn模式是否有同样问题?

egg1234 commented 2 years ago

使用系统代理模式一模一样的报错,然后切换回v2ray-core加hysteria.exe方式,启动系统代理就什么问题都没有,当然v2ray-core加hysteria.exe方式是不能使用vpn模式的,所以这个vpn模式就对比不了,但至少系统代理模式就证明代理本身没有问题,应该是sing-box内核有一些问题

arm64v8a commented 1 year ago

stale