Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] 服务端流量转发到WARP后,在服务端日志中出现“error: EOF”! #1588

Open
5 of 7 tasks
dfmntx opened this issue Oct 13, 2024 · 4 comments
Open
5 of 7 tasks
Labels
bug Something isn't working

Comments

@dfmntx
Copy link

dfmntx commented Oct 13, 2024

Verify steps

  • 我已经阅读了 文档,了解所有我编写的配置文件项的含义,而不是大量堆砌看似有用的选项或默认值。
  • 我未仔细看过 文档 并解决问题
  • 我未在 Issue Tracker 中寻找过我要提出的问题
  • 我已经使用最新的 Alpha 分支版本测试过,问题依旧存在
  • 我提供了可以在本地重现该问题的服务器、客户端配置文件与流程,而不是一个脱敏的复杂客户端配置文件。
  • 我提供了可用于重现我报告的错误的最简配置,而不是依赖远程服务器、TUN、图形界面客户端或者其他闭源软件。
  • 我提供了完整的配置文件与日志,而不是出于对自身智力的自信而仅提供了部分认为有用的部分。

操作系统

Linux

系统版本

ubuntu 24.04

Mihomo 版本

Mihomo Meta alpha-ca3f1eb linux arm64 with go1.23.2 Sat Oct 12 00:30:26 UTC 2024

配置文件

mode: rule
ipv6: false
log-level: debug
allow-lan: false
interface-name: enp0s0

hosts:
dns:
  enable: false

proxies:
  - name: "PROXY-WARP"
    type: socks5
    server: 127.0.0.1
    port: 40000
    ip-version: ipv4

rules:
  - IN-NAME,ss-in-warp,PROXY-WARP
  - MATCH,DIRECT

listeners:
  - name: ss-in
    type: shadowsocks
    port: 1234
    listen: k.k.k.k
    password: "password"
    cipher: xchacha20-ietf-poly1305
    udp: false
  - name: ss-in-warp
    type: shadowsocks
    port: 5678
    listen: x.x.x.x
    password: "password"
    cipher: xchacha20-ietf-poly1305
    udp: false

描述

运行mihomo服务端的服务器上安装了cloudflare warp客户端,cloudflare warp客户端配置了zero trust,在zero trust的设置中的Service mode设为了Proxy mode,端口为40000。mihomo客户端通过ss-in-warp连接mihomo服务端时,mihomo服务端会将这些流量转到warp,但是在mihomo服务端的日志中出现了大量的"error: EOF"。在运行mihomo服务端的服务器上,执行curl -x socks5://127.0.0.1:40000 -I https://www.google.com测试,未见异常。
如果此问题不是bug,劳烦各位大佬支招,谢谢!
sc

重现方式

在服务端上安装上cloudflare warp客户端,按照描述中的方式配置warp客户端和zero trust,使用客户端通过ss-in-warp连接服务端后,访问www.google.com。

日志

Oct 14 01:47:56 HOSTNAME mihomo[7819]: time="2024-10-14T01:47:56.77034631+08:00" level=info msg="Start initial configuration in progress"
Oct 14 01:47:56 HOSTNAME mihomo[7819]: time="2024-10-14T01:47:56.770655712+08:00" level=info msg="Geodata Loader mode: memconservative"
Oct 14 01:47:56 HOSTNAME mihomo[7819]: time="2024-10-14T01:47:56.770669072+08:00" level=info msg="Geosite Matcher implementation: succinct"
Oct 14 01:47:56 HOSTNAME mihomo[7819]: time="2024-10-14T01:47:56.770713552+08:00" level=info msg="Initial configuration complete, total time: 0ms"
Oct 14 01:47:56 HOSTNAME mihomo[7819]: time="2024-10-14T01:47:56.78438289+08:00" level=info msg="Sniffer is closed"
Oct 14 01:47:56 HOSTNAME mihomo[7819]: time="2024-10-14T01:47:56.784787892+08:00" level=info msg="ShadowSocks[ss-in-warp] proxy listening at: x.x.x.x:5678"
Oct 14 01:47:56 HOSTNAME mihomo[7819]: time="2024-10-14T01:47:56.786083937+08:00" level=info msg="Start initial Compatible provider default"
Oct 14 01:48:03 HOSTNAME mihomo[7819]: time="2024-10-14T01:48:03.736391662+08:00" level=debug msg="[Rule] use default rules"
Oct 14 01:48:03 HOSTNAME mihomo[7819]: time="2024-10-14T01:48:03.833544757+08:00" level=warning msg="[TCP] dial PROXY-WARP (match InName/ss-in-warp) x.x.x.x:4750 --> az764123.vo.msecnd.net:443 error: EOF"
Oct 14 01:48:03 HOSTNAME mihomo[7819]: time="2024-10-14T01:48:03.949683773+08:00" level=warning msg="[TCP] dial PROXY-WARP (match InName/ss-in-warp) x.x.x.x:4750 --> az764123.vo.msecnd.net:443 error: EOF"
Oct 14 01:48:04 HOSTNAME mihomo[7819]: time="2024-10-14T01:48:04.089232089+08:00" level=warning msg="[TCP] dial PROXY-WARP (match InName/ss-in-warp) x.x.x.x:4750 --> az764123.vo.msecnd.net:443 error: EOF"
Oct 14 01:48:04 HOSTNAME mihomo[7819]: time="2024-10-14T01:48:04.217417517+08:00" level=warning msg="[TCP] dial PROXY-WARP (match InName/ss-in-warp) x.x.x.x:4750 --> az764123.vo.msecnd.net:443 error: EOF"
Oct 14 01:48:04 HOSTNAME mihomo[7819]: time="2024-10-14T01:48:04.375643153+08:00" level=warning msg="[TCP] dial PROXY-WARP (match InName/ss-in-warp) x.x.x.x:4750 --> az764123.vo.msecnd.net:443 error: EOF"
Oct 14 01:48:04 HOSTNAME mihomo[7819]: time="2024-10-14T01:48:04.62079132+08:00" level=warning msg="[TCP] dial PROXY-WARP (match InName/ss-in-warp) x.x.x.x:4750 --> az764123.vo.msecnd.net:443 error: EOF"
Oct 14 01:48:04 HOSTNAME mihomo[7819]: time="2024-10-14T01:48:04.950436208+08:00" level=warning msg="[TCP] dial PROXY-WARP (match InName/ss-in-warp) x.x.x.x:4750 --> az764123.vo.msecnd.net:443 error: EOF"
Oct 14 01:48:05 HOSTNAME mihomo[7819]: time="2024-10-14T01:48:05.359717636+08:00" level=warning msg="[TCP] dial PROXY-WARP (match InName/ss-in-warp) x.x.x.x:4750 --> az764123.vo.msecnd.net:443 error: EOF"
Oct 14 01:48:06 HOSTNAME mihomo[7819]: time="2024-10-14T01:48:06.252854731+08:00" level=warning msg="[TCP] dial PROXY-WARP (match InName/ss-in-warp) x.x.x.x:4750 --> az764123.vo.msecnd.net:443 error: EOF"
Oct 14 01:48:07 HOSTNAME mihomo[7819]: time="2024-10-14T01:48:07.041903581+08:00" level=debug msg="[Rule] use default rules"
Oct 14 01:48:07 HOSTNAME mihomo[7819]: time="2024-10-14T01:48:07.369625501+08:00" level=warning msg="[TCP] dial PROXY-WARP (match InName/ss-in-warp) x.x.x.x:4750 --> az764123.vo.msecnd.net:443 error: EOF"
Oct 14 01:48:07 HOSTNAME mihomo[7819]: time="2024-10-14T01:48:07.989928951+08:00" level=debug msg="[Rule] use default rules"
Oct 14 01:48:08 HOSTNAME mihomo[7819]: time="2024-10-14T01:48:08.008919032+08:00" level=warning msg="[TCP] dial PROXY-WARP (match InName/ss-in-warp) x.x.x.x:4757 --> az764123.vo.msecnd.net:443 error: EOF"
Oct 14 01:48:08 HOSTNAME mihomo[7819]: time="2024-10-14T01:48:08.129685348+08:00" level=warning msg="[TCP] dial PROXY-WARP (match InName/ss-in-warp) x.x.x.x:4757 --> az764123.vo.msecnd.net:443 error: EOF"
Oct 14 01:48:08 HOSTNAME mihomo[7819]: time="2024-10-14T01:48:08.282160119+08:00" level=warning msg="[TCP] dial PROXY-WARP (match InName/ss-in-warp) x.x.x.x:4757 --> az764123.vo.msecnd.net:443 error: EOF"
Oct 14 01:48:08 HOSTNAME mihomo[7819]: time="2024-10-14T01:48:08.489825686+08:00" level=warning msg="[TCP] dial PROXY-WARP (match InName/ss-in-warp) x.x.x.x:4757 --> az764123.vo.msecnd.net:443 error: EOF"
Oct 14 01:48:08 HOSTNAME mihomo[7819]: time="2024-10-14T01:48:08.626649871+08:00" level=warning msg="[TCP] dial PROXY-WARP (match InName/ss-in-warp) x.x.x.x:4757 --> az764123.vo.msecnd.net:443 error: EOF"
Oct 14 01:48:08 HOSTNAME mihomo[7819]: time="2024-10-14T01:48:08.925756908+08:00" level=warning msg="[TCP] dial PROXY-WARP (match InName/ss-in-warp) x.x.x.x:4757 --> az764123.vo.msecnd.net:443 error: EOF"
Oct 14 01:48:09 HOSTNAME mihomo[7819]: time="2024-10-14T01:48:09.130805024+08:00" level=warning msg="[TCP] dial PROXY-WARP (match InName/ss-in-warp) x.x.x.x:4757 --> az764123.vo.msecnd.net:443 error: EOF"
Oct 14 01:48:09 HOSTNAME mihomo[7819]: time="2024-10-14T01:48:09.819881848+08:00" level=warning msg="[TCP] dial PROXY-WARP (match InName/ss-in-warp) x.x.x.x:4757 --> az764123.vo.msecnd.net:443 error: EOF"
Oct 14 01:48:10 HOSTNAME mihomo[7819]: time="2024-10-14T01:48:10.939724712+08:00" level=warning msg="[TCP] dial PROXY-WARP (match InName/ss-in-warp) x.x.x.x:4757 --> az764123.vo.msecnd.net:443 error: EOF"
Oct 14 01:48:12 HOSTNAME mihomo[7819]: time="2024-10-14T01:48:12.059623176+08:00" level=warning msg="[TCP] dial PROXY-WARP (match InName/ss-in-warp) x.x.x.x:4757 --> az764123.vo.msecnd.net:443 error: EOF"
Oct 14 01:48:30 HOSTNAME mihomo[7819]: time="2024-10-14T01:48:30.37272138+08:00" level=debug msg="[Rule] use default rules"
Oct 14 01:48:30 HOSTNAME mihomo[7819]: time="2024-10-14T01:48:30.498783958+08:00" level=warning msg="[TCP] dial PROXY-WARP (match InName/ss-in-warp) x.x.x.x:4774 --> google.com:443 error: EOF"
Oct 14 01:48:30 HOSTNAME mihomo[7819]: time="2024-10-14T01:48:30.621563763+08:00" level=warning msg="[TCP] dial PROXY-WARP (match InName/ss-in-warp) x.x.x.x:4774 --> google.com:443 error: EOF"
Oct 14 01:48:30 HOSTNAME mihomo[7819]: time="2024-10-14T01:48:30.780887004+08:00" level=warning msg="[TCP] dial PROXY-WARP (match InName/ss-in-warp) x.x.x.x:4774 --> google.com:443 error: EOF"
Oct 14 01:48:30 HOSTNAME mihomo[7819]: time="2024-10-14T01:48:30.968235085+08:00" level=warning msg="[TCP] dial PROXY-WARP (match InName/ss-in-warp) x.x.x.x:4774 --> google.com:443 error: EOF"
Oct 14 01:48:31 HOSTNAME mihomo[7819]: time="2024-10-14T01:48:31.134826556+08:00" level=warning msg="[TCP] dial PROXY-WARP (match InName/ss-in-warp) x.x.x.x:4774 --> google.com:443 error: EOF"
Oct 14 01:48:31 HOSTNAME mihomo[7819]: time="2024-10-14T01:48:31.34170352+08:00" level=warning msg="[TCP] dial PROXY-WARP (match InName/ss-in-warp) x.x.x.x:4774 --> google.com:443 error: EOF"
Oct 14 01:48:31 HOSTNAME mihomo[7819]: time="2024-10-14T01:48:31.558575367+08:00" level=warning msg="[TCP] dial PROXY-WARP (match InName/ss-in-warp) x.x.x.x:4774 --> google.com:443 error: EOF"
Oct 14 01:48:32 HOSTNAME mihomo[7819]: time="2024-10-14T01:48:32.168215052+08:00" level=warning msg="[TCP] dial PROXY-WARP (match InName/ss-in-warp) x.x.x.x:4774 --> google.com:443 error: EOF"
Oct 14 01:48:32 HOSTNAME mihomo[7819]: time="2024-10-14T01:48:32.767114852+08:00" level=warning msg="[TCP] dial PROXY-WARP (match InName/ss-in-warp) x.x.x.x:4774 --> google.com:443 error: EOF"
Oct 14 01:48:33 HOSTNAME mihomo[7819]: time="2024-10-14T01:48:33.959783309+08:00" level=warning msg="[TCP] dial PROXY-WARP (match InName/ss-in-warp) x.x.x.x:4774 --> google.com:443 error: EOF"
Oct 14 01:48:35 HOSTNAME mihomo[7819]: time="2024-10-14T01:48:35.391895949+08:00" level=debug msg="[Rule] use default rules"
Oct 14 01:48:35 HOSTNAME mihomo[7819]: time="2024-10-14T01:48:35.519083492+08:00" level=warning msg="[TCP] dial PROXY-WARP (match InName/ss-in-warp) x.x.x.x:4776 --> google.com:443 error: EOF"
Oct 14 01:48:35 HOSTNAME mihomo[7819]: time="2024-10-14T01:48:35.696167769+08:00" level=warning msg="[TCP] dial PROXY-WARP (match InName/ss-in-warp) x.x.x.x:4776 --> google.com:443 error: EOF"
Oct 14 01:48:35 HOSTNAME mihomo[7819]: time="2024-10-14T01:48:35.867515381+08:00" level=warning msg="[TCP] dial PROXY-WARP (match InName/ss-in-warp) x.x.x.x:4776 --> google.com:443 error: EOF"
Oct 14 01:48:36 HOSTNAME mihomo[7819]: time="2024-10-14T01:48:36.022847325+08:00" level=warning msg="[TCP] dial PROXY-WARP (match InName/ss-in-warp) x.x.x.x:4776 --> google.com:443 error: EOF"
Oct 14 01:48:36 HOSTNAME mihomo[7819]: time="2024-10-14T01:48:36.186635225+08:00" level=warning msg="[TCP] dial PROXY-WARP (match InName/ss-in-warp) x.x.x.x:4776 --> google.com:443 error: EOF"
Oct 14 01:48:36 HOSTNAME mihomo[7819]: time="2024-10-14T01:48:36.389989654+08:00" level=warning msg="[TCP] dial PROXY-WARP (match InName/ss-in-warp) x.x.x.x:4776 --> google.com:443 error: EOF"
Oct 14 01:48:36 HOSTNAME mihomo[7819]: time="2024-10-14T01:48:36.805605711+08:00" level=warning msg="[TCP] dial PROXY-WARP (match InName/ss-in-warp) x.x.x.x:4776 --> google.com:443 error: EOF"
Oct 14 01:48:37 HOSTNAME mihomo[7819]: time="2024-10-14T01:48:37.004049599+08:00" level=warning msg="[TCP] dial PROXY-WARP (match InName/ss-in-warp) x.x.x.x:4776 --> google.com:443 error: EOF"
Oct 14 01:48:37 HOSTNAME mihomo[7819]: time="2024-10-14T01:48:37.878121534+08:00" level=warning msg="[TCP] dial PROXY-WARP (match InName/ss-in-warp) x.x.x.x:4776 --> google.com:443 error: EOF"
Oct 14 01:48:39 HOSTNAME mihomo[7819]: time="2024-10-14T01:48:39.012891664+08:00" level=warning msg="[TCP] dial PROXY-WARP (match InName/ss-in-warp) x.x.x.x:4776 --> google.com:443 error: EOF"
Oct 14 01:48:40 HOSTNAME mihomo[7819]: time="2024-10-14T01:48:40.615320793+08:00" level=debug msg="[Rule] use default rules"
Oct 14 01:48:40 HOSTNAME mihomo[7819]: time="2024-10-14T01:48:40.736553391+08:00" level=warning msg="[TCP] dial PROXY-WARP (match InName/ss-in-warp) x.x.x.x:4777 --> google.com:443 error: EOF"
Oct 14 01:48:40 HOSTNAME mihomo[7819]: time="2024-10-14T01:48:40.873199735+08:00" level=warning msg="[TCP] dial PROXY-WARP (match InName/ss-in-warp) x.x.x.x:4777 --> google.com:443 error: EOF"
Oct 14 01:48:41 HOSTNAME mihomo[7819]: time="2024-10-14T01:48:41.008555833+08:00" level=warning msg="[TCP] dial PROXY-WARP (match InName/ss-in-warp) x.x.x.x:4777 --> google.com:443 error: EOF"
Oct 14 01:48:41 HOSTNAME mihomo[7819]: time="2024-10-14T01:48:41.211940903+08:00" level=warning msg="[TCP] dial PROXY-WARP (match InName/ss-in-warp) x.x.x.x:4777 --> google.com:443 error: EOF"
Oct 14 01:48:41 HOSTNAME mihomo[7819]: time="2024-10-14T01:48:41.380345302+08:00" level=warning msg="[TCP] dial PROXY-WARP (match InName/ss-in-warp) x.x.x.x:4777 --> google.com:443 error: EOF"
Oct 14 01:48:41 HOSTNAME mihomo[7819]: time="2024-10-14T01:48:41.653870912+08:00" level=warning msg="[TCP] dial PROXY-WARP (match InName/ss-in-warp) x.x.x.x:4777 --> google.com:443 error: EOF"
Oct 14 01:48:42 HOSTNAME mihomo[7819]: time="2024-10-14T01:48:42.055583668+08:00" level=warning msg="[TCP] dial PROXY-WARP (match InName/ss-in-warp) x.x.x.x:4777 --> google.com:443 error: EOF"
Oct 14 01:48:42 HOSTNAME mihomo[7819]: time="2024-10-14T01:48:42.765274182+08:00" level=warning msg="[TCP] dial PROXY-WARP (match InName/ss-in-warp) x.x.x.x:4777 --> google.com:443 error: EOF"
Oct 14 01:48:43 HOSTNAME mihomo[7819]: time="2024-10-14T01:48:43.892918882+08:00" level=warning msg="[TCP] dial PROXY-WARP (match InName/ss-in-warp) x.x.x.x:4777 --> google.com:443 error: EOF"
Oct 14 01:48:44 HOSTNAME mihomo[7819]: time="2024-10-14T01:48:44.913617924+08:00" level=warning msg="[TCP] dial PROXY-WARP (match InName/ss-in-warp) x.x.x.x:4777 --> google.com:443 error: EOF"
@dfmntx dfmntx added the bug Something isn't working label Oct 13, 2024
@dfmntx dfmntx closed this as completed Oct 13, 2024
@dfmntx dfmntx reopened this Oct 13, 2024
@dfmntx
Copy link
Author

dfmntx commented Oct 13, 2024

补充一下,之前这个流程运作正常,但是最近几天出现了这个问题!

@Lovefish
Copy link

Lovefish commented Oct 17, 2024

接着这里向你请教一下,如果我外置的客户端不是warp,而是普通的安卓VPN APP(某shark),他并不没有设置端口的选项,这时候怎么设置?

@dfmntx
Copy link
Author

dfmntx commented Oct 17, 2024

@Lovefish 如果APP没监听端口的话,你的安卓设备之外的流量也没办法转发到你的安卓设备的VPN APP上的。

@Lovefish
Copy link

@Lovefish 如果APP没监听端口的话,你的安卓设备之外的流量也没办法转发到你的安卓设备的VPN APP上的。

不是啊,这个mihomo和VPN都是装在同一个手机上的。而且手机是root的,难道不可能通过网络的interface进行转发?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants