mellow-io / mellow

Mellow is a rule-based global transparent proxy client for Windows, macOS and Linux. Also a Proxifier alternative.
3.54k stars 471 forks source link

无法启用连接,config_route.bat执行错误 #298

Closed zzzyyf closed 3 years ago

zzzyyf commented 3 years ago

使用操作系统类型以及版本

Windows 10 家庭中文版 20H2 19042.610

使用 Mellow 版本

v0.1.22

问题描述

配置简单的vmess后,正常使用了几天,之后突然无法连接。使用其他的v2ray客户端可以正常连接。尝试过建立新配置,也无法连接。关闭系统代理时,等待片刻会弹出报错;开启系统代理时,没有反应,也一直无法连接。

问题复现步骤

配置好网络后,打开Mellow,点击连接。

相关配置

[Endpoint]
Proxy-1, vmess1, vmess1://uuid@www.example.com:443/path?network=ws&tls=true&ws.host=www.example.com
Direct, builtin, freedom, domainStrategy=UseIP
Dns-Out, builtin, dns

[RoutingRule]
DOMAIN-KEYWORD, geosite:cn, Direct
GEOIP, cn, Direct
GEOIP, private, Direct
FINAL, Proxy-1

[Dns]
hijack = Dns-Out

[DnsServer]
localhost
8.8.8.8

相关日志、截图

关闭系统代理时的log为以下一段无限循环。

[2020-11-05 09:47:32.186] [info] Set system proxy with command: "...\Mellow\resources\src\helper\configure_proxy.bat" "off" 2887
[2020-11-05 09:48:30.074] [info] Original gateway is xxx
[2020-11-05 09:48:30.079] [info] Original send through xxx
[2020-11-05 09:48:30.080] [info] Ensuring tap device sets up correctly.
[2020-11-05 09:48:32.486] [info] TAP network device already exists.
(Re-)enabling TAP network device...

Set all adapters metric to auto.
ȷ����

ȷ����

ȷ����

ȷ����

ȷ����

ȷ����

Set TAP adapter metric to 0.
ȷ����

ȷ����

TAP network device added successfully.

[2020-11-05 09:48:32.488] [info] Set system proxy with command: "...\Mellow\resources\src\helper\configure_proxy.bat" "off" 2887
[2020-11-05 09:49:30.161] [info] Original gateway is xxx
[2020-11-05 09:49:30.166] [info] Original send through xxx
[2020-11-05 09:49:30.169] [info] Ensuring tap device sets up correctly.
[2020-11-05 09:49:31.497] [info] TAP network device already exists.
(Re-)enabling TAP network device...

Set all adapters metric to auto.
ȷ����

ȷ����

ȷ����

ȷ����

ȷ����

ȷ����

Set TAP adapter metric to 0.
ȷ����

ȷ����

TAP network device added successfully.

开启系统代理时,报错信息为:"Failed to configure routes, see ... log.log for more details." log如下:

[2020-11-05 09:53:53.438] [info] Original gateway is xxx
[2020-11-05 09:53:53.442] [info] Original send through xxx
[2020-11-05 09:53:53.443] [info] Ensuring tap device sets up correctly.
[2020-11-05 09:53:55.804] [info] TAP network device already exists.
(Re-)enabling TAP network device...

Set all adapters metric to auto.
ȷ����

ȷ����

ȷ����

ȷ����

ȷ����

ȷ����

Set TAP adapter metric to 0.
ȷ����

ȷ����

TAP network device added successfully.

[2020-11-05 09:53:55.805] [info] Set system proxy with command: "...\Mellow\resources\src\helper\configure_proxy.bat" "on" 2887
[2020-11-05 09:53:55.862] [info] Core started.
[2020-11-05 09:53:56.255] [info] The default gateway before configuring routes:
[2020-11-05 09:53:56.256] [info] { gateway: 'xxx', interface: '以太网' }
[2020-11-05 09:53:56.261] [info] The TUN interface before configuring routes:
[2020-11-05 09:53:56.261] [info] { address: 'xxx', interface: 'mellow-tap0' }
[2020-11-05 09:53:56.263] [info] 2020/11/05 09:53:55 TAP device component ID: {3DAFBF72-180D-4CD3-9EDD-248A7102C5BF}
2020/11/05 09:53:55 TAP device name: mellow-tap0
2020/11/05 09:53:55 Set mellow-tap0 with net/mask: 10.255.0.2/255.255.255.0 through DHCP
2020/11/05 09:53:55 Set mellow-tap0 with DNS: 114.114.114.114,8.8.8.8 through DHCP
2020/11/05 09:53:55 Relay ICMP packets.
2020/11/05 09:53:56 Start session stater.
2020/11/05 09:53:56 Running tun2socks
2020/11/05 09:53:56 [] [udp] [unknown process] udp:10.255.0.255:137

[2020-11-05 09:53:56.263] [info] 2020/11/05 09:53:56 [Warning] v2ray.com/core: V2Ray started

[2020-11-05 09:53:57.603] [info] 2020/11/05 09:53:57 [] [udp] [msedge.exe] udp:239.255.255.250:1900

[2020-11-05 09:53:57.615] [info] undefined
[2020-11-05 09:53:57.615] [info] undefined
[2020-11-05 09:53:57.616] [info] Error: Command failed: "...\Mellow\resources\src\helper\config_route.bat" 10.255.0.1 mellow-tap0
'chcp' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
'netsh' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
'netsh' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
'ipconfig' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

    at ...\Mellow\resources\app.asar\node_modules\sudo-prompt\index.js:555:25
    at FSReqCallback.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:61:3)
[2020-11-05 09:53:57.616] [info] Error: Command failed: "...\Mellow\resources\src\helper\config_route.bat" 10.255.0.1 mellow-tap0
'chcp' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
'netsh' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
'netsh' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���
'ipconfig' �����ڲ����ⲿ���Ҳ���ǿ����еij���
���������ļ���

    at ...\Mellow\resources\app.asar\node_modules\sudo-prompt\index.js:555:25
    at FSReqCallback.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:61:3)
[2020-11-05 09:53:59.029] [info] 2020/11/05 09:53:58 [] [udp] [unknown process] udp:xxx
2020/11/05 09:53:58 [] [udp] [unknown process] udp:xxx
2020/11/05 09:53:58 [] [udp] [unknown process] udp:xxx
2020/11/05 09:53:58 [] [udp] [unknown process] udp:xxx

/* several same udp logs like the above one*/
github-actions[bot] commented 3 years ago

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days