leaf icon indicating copy to clipboard operation
leaf copied to clipboard

是否能用vmess

Open sekzerd opened this issue 2 years ago • 4 comments

问题

不管是windows还是linux的发现是一点不能用啊

版本0.10.7 release

操作如下

  • 配置已经参考文档设置
  • vmess节点已经通过v2rayN测试确定可用
  • 使用命令行curl访问httpbin.org/ip测试
相关配置

config.conf如下

[General]
loglevel = info
dns-server = 1.2.4.8, 8.8.8.8
always-fake-ip = *
routing-domain-resolve = true

# Local HTTP CONNECT proxy
interface = 0.0.0.0
port = 1087

# Local SOCKS5 proxy with UDP Associate support
socks-interface = 0.0.0.0
socks-port = 1086

[Proxy]
Direct = direct

VMess = vmess, my.ip, 1234, username=xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx

[Proxy Group]
Failover = failover, VMess, health-check=true, check-interval=600, fail-timeout=5, failover=true


[Rule]
GEOIP, us, Failover
EXTERNAL, site:geolocation-!cn, Failover
FINAL, Direct

运行日志如下

root@1cf403ae9d0f:~/leaf# ./leaf-x86_64-unknown-linux-musl  -c config.conf 
loaded 15781 domain rules from [/root/leaf/site.dat] for tag [geolocation-!cn]
2023-10-07T04:34:42.563221Z  INFO leaf::app::inbound::network_listener: listening tcp 0.0.0.0:1087
2023-10-07T04:34:42.563263Z  INFO leaf::app::inbound::network_listener: listening tcp 0.0.0.0:1086
2023-10-07T04:34:42.563281Z  INFO leaf::app::inbound::network_listener: listening udp 0.0.0.0:1086
2023-10-07T04:41:16.481441Z  INFO leaf::app::dispatcher: [0.0.0.0] [udp] [internal] [Direct] [0ms] [1.2.4.8:53]
2023-10-07T04:41:20.600044Z  INFO leaf::app::dispatcher: [127.0.0.1] [tcp] [http] [Failover] [failed] [httpbin.org:80]
2023-10-07T04:41:25.632907Z  INFO leaf::app::dispatcher: [127.0.0.1] [tcp] [http] [Failover] [2140ms] [httpbin.org:80]
2023-10-07T04:41:46.713635Z  INFO leaf::app::dispatcher: [127.0.0.1] [tcp] [http] [Failover] [failed] [httpbin.org:80]
2023-10-07T04:41:52.005471Z  INFO leaf::app::dispatcher: [127.0.0.1] [tcp] [http] [Failover] [failed] [httpbin.org:80]
2023-10-07T04:41:54.938584Z  INFO leaf::app::dispatcher: [127.0.0.1] [tcp] [http] [Failover] [286ms] [httpbin.org:80]
2023-10-07T04:42:37.559153Z  INFO leaf::app::dispatcher: [0.0.0.0] [udp] [internal] [Direct] [0ms] [1.2.4.8:53]
2023-10-07T04:42:37.661115Z  INFO leaf::app::dispatcher: [127.0.0.1] [tcp] [http] [Failover] [58ms] [httpbin.org:80]
2023-10-07T04:43:13.298231Z  INFO leaf::app::dispatcher: [127.0.0.1] [tcp] [http] [Failover] [81ms] [httpbin.org:80]

linux命令行用curl查看ip

root@1cf403ae9d0f:~# curl --proxy http://127.0.0.1:1087 httpbin.org/ip
curl: (56) Recv failure: Connection reset by peer
root@1cf403ae9d0f:~# curl --proxy http://127.0.0.1:1087 httpbin.org/ip

从日志中看到有延迟出现,说明ok?但是curl并没有返回,另外,已经在Windows11 amd64版本测试,也不行。 求各位大佬看看,是否是配置的问题

sekzerd avatar Oct 07 '23 04:10 sekzerd

你可以留下你的联系方式,我写了一个版本可以用的

ghost avatar Oct 08 '23 10:10 ghost

@loveCodingStar 我也同问,请大佬指点迷津!邮箱:[email protected]

Hube28 avatar Oct 12 '23 01:10 Hube28

@loveCodingStar 我也同问,请大佬指点迷津!邮箱:[email protected]

发你了

ghost avatar Oct 12 '23 14:10 ghost

@loveCodingStar 我也问一下,Windows11的配置怎么弄? 请教下。邮箱 [email protected]

52yaoer avatar Oct 12 '23 23:10 52yaoer

https://github.com/Web3123/v2ray 这是项目地址

ghost avatar Mar 20 '24 14:03 ghost