$ ip route
default via 10.255.0.1 dev tun1
10.180.0.0/16 dev br-private proto kernel scope link src 10.180.39.51
10.255.0.0/24 dev tun1 proto kernel scope link src 10.255.0.1
192.168.1.0/24 dev virbr1 proto kernel scope link src 192.168.1.2
192.168.2.0/24 dev wlp0s20u1 proto kernel scope link src 192.168.2.4
192.168.100.0/24 dev virbr2 proto kernel scope link src 192.168.100.1
192.168.122.0/24 dev virbr0 proto kernel scope link src 192.168.122.1
使用操作系统类型以及版本
Linux 5.10.9-1 openSUSE Tumbleweed 20210127
使用 Mellow 版本
0.1.22.238
问题描述
所有http和socks的outbound都完全不能用,没有拒绝访问但他就一直卡在那,浏览器会一直卡加载(百度卡住),curl会卡住没反应。 改配置文件测试(比如添加个国内直连的配置),发现direct的outbound依然正常(百度能打开了)。但http和socks就是怎么都不能用。 看日志显示有连接,但在代理服务器那边看不到有接受连接。 用的代理服务器是另一台电脑。代理服务器肯定是正常的,因为用curl测过,系统挂代理后浏览器也能上网。 我甚至不知道是我碰到了什么特定bug还是我配置不当。
问题复现步骤
刚装好的mellow,创建配置模版,创建conf,然后把内容删掉替换成下面的配置文件,保存,连接,发现网没了。
相关配置
[Endpoint] MyProxyServer, builtin, socks, address=192.168.2.193, port=10808 Direct, builtin, freedom, domainStrategy=UseIP Dns-Out, dns
[RoutingRule] PROCESS-NAME, unknown process, Direct FINAL, MyProxyServer
[Dns] hijack = Dns-Out
[DnsServer] localhost 8.8.8.8
相关日志、截图
log.log [2021-01-31 18:27:36.418] [info] Core started. [2021-01-31 18:27:36.432] [info] The default gateway before configuring routes: [2021-01-31 18:27:36.433] [info] { gateway: '192.168.2.1', interface: 'wlp0s20u1' } [2021-01-31 18:27:36.439] [info] The TUN interface before configuring routes: [2021-01-31 18:27:36.440] [info] { address: '10.255.0.1', interface: 'tun1' } [2021-01-31 18:27:36.453] [info] Set 10.255.0.1 as the default gateway. [2021-01-31 18:27:36.461] [info] 2021/01/31 18:27:36 [Warning] v2ray.com/core: V2Ray started
[2021-01-31 18:27:36.461] [info] 2021/01/31 18:27:36 Relay ICMP packets. 2021/01/31 18:27:36 Start session stater. 2021/01/31 18:27:36 Running tun2socks
[2021-01-31 18:27:36.462] [info] Core stopped, code 0 signal null [2021-01-31 18:27:36.559] [info] 2021/01/31 18:27:36 [] [tcp] [firefox] tcp:139.159.246.60:443
[2021-01-31 18:27:36.851] [info] 2021/01/31 18:27:36 [] [tcp] [akonadi_imap_re] tcp:123.126.97.78:993
[2021-01-31 18:27:37.461] [info] 2021/01/31 18:27:37 [] [tcp] [firefox] tcp:34.107.221.82:80
[2021-01-31 18:27:37.463] [info] 2021/01/31 18:27:37 [] [tcp] [firefox] tcp:34.107.221.82:80
[2021-01-31 18:27:38.374] [info] 2021/01/31 18:27:38 [] [tcp] [firefox] tcp:52.34.232.146:443
[2021-01-31 18:27:39.945] [info] 2021/01/31 18:27:39 [] [tcp] [firefox] tcp:183.232.231.172:443
[2021-01-31 18:27:42.420] [info] 2021/01/31 18:27:42 [] [tcp] [firefox] tcp:139.159.246.60:443
[2021-01-31 18:27:42.428] [info] 2021/01/31 18:27:42 [] [tcp] [firefox] tcp:34.107.221.82:80
[2021-01-31 18:27:43.185] [info] 2021/01/31 18:27:43 [] [udp] [chronyd] udp:193.182.111.12:123
$ ip route default via 10.255.0.1 dev tun1 10.180.0.0/16 dev br-private proto kernel scope link src 10.180.39.51 10.255.0.0/24 dev tun1 proto kernel scope link src 10.255.0.1 192.168.1.0/24 dev virbr1 proto kernel scope link src 192.168.1.2 192.168.2.0/24 dev wlp0s20u1 proto kernel scope link src 192.168.2.4 192.168.100.0/24 dev virbr2 proto kernel scope link src 192.168.100.1 192.168.122.0/24 dev virbr0 proto kernel scope link src 192.168.122.1