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] fake-ip 模式下无法收到手机的部分请求,redir-host下就没问题 #3884

Closed
7 tasks done
sean-root opened this issue May 12, 2024 · 10 comments
Closed
7 tasks done
Labels
bug Something isn't working

Comments

@sean-root
Copy link

Verify Steps

  • Tracker 我已经在 Issue Tracker 中找过我要提出的问题
  • Branch 我知道 OpenClash 的 Dev 分支切换开关位于插件设置-版本更新中,或者我会手动下载并安装 Dev 分支的 OpenClash
  • Latest 我已经使用最新 Dev 版本测试过,问题依旧存在
  • Relevant 我知道 OpenClash 与 内核(Core)、控制面板(Dashboard)、在线订阅转换(Subconverter)等项目之间无直接关系,仅相互调用
  • Definite 这确实是 OpenClash 出现的问题
  • Contributors 我有能力协助 OpenClash 开发并解决此问题
  • Meaningless 我提交的是无意义的催促更新或修复请求

OpenClash Version

v0.46.003-beta

Bug on Environment

Istoreos

OpenWrt Version

22.03.6

Bug on Platform

Linux-amd64(x86-64)

Describe the Bug

fake-ip tun 下,完全看不到手机发出的 ss.epdg.epc.mnc260.mcc310.pub.3gppnetwork.org 请求(使用的是500/4500端口,已放行),从而无法使用 WiFi Calling,切换到 redir-host 模式下就能看到发出的这个网络请求,并能看到它走了那条规则。

希望在 fake-ip 模式下也能看到这个网络请求,进而可以使用 WiFi Calling。

To Reproduce

0、关闭手机WiFi;
1、启动 openclash;
2、打开手机WiFi,手机即开始尝试链接运营商链接;
3、如问题描述,看不到网络请求;

OpenClash Log

只贴DNS部分吧,无其他特殊设置

dns:
  enable: true
  prefer-h3: true
  use-hosts: true
  use-system-hosts: true
  listen: 0.0.0.0:53
  ipv6: true

  enhanced-mode: fake-ip
  fake-ip-range: 198.18.0.1/16

  nameserver:
      - https://223.5.5.5/dns-query
      - https://223.6.6.6/dns-query
      - https://1.12.12.12/dns-query

OpenClash Config

只贴DNS部分吧,无其他特殊设置

dns:
  enable: true
  prefer-h3: true
  use-hosts: true
  use-system-hosts: true
  listen: 0.0.0.0:53
  ipv6: true

  enhanced-mode: fake-ip
  fake-ip-range: 198.18.0.1/16

  nameserver:
      - https://223.5.5.5/dns-query
      - https://223.6.6.6/dns-query
      - https://1.12.12.12/dns-query

Expected Behavior

希望在 fake-ip 模式下也能看到这个网络请求,进而可以使用 WiFi Calling。

Additional Context

No response

@sean-root sean-root added the bug Something isn't working label May 12, 2024
@GuangYu-yu
Copy link

我使用fakeip模式后,手机连接上WiFi也是用不了,好像子网掩码和路由等信息都没有正常分配

@sean-root
Copy link
Author

我使用fakeip模式后,手机连接上WiFi也是用不了,好像子网掩码和路由等信息都没有正常分配

我的倒是都有,除了 WiFi Calling 不能用以外,其他都是正常的

@vernesong redir-host 也能正常连接(也能看到走的 自定义的 规则),但是 fake-ip 模式下就是连请求都看不到。我也尝试使用防火墙转发dns,把手机 mac or ip 地址加入黑名单,这样也不行。

@vernesong
Copy link
Owner

加到fakeipfilter里面去,然后运行状态下查询下域名的dns,看内核日志有没有记录

@sean-root
Copy link
Author

加到fakeipfilter里面去,然后运行状态下查询下域名的dns,看内核日志有没有记录

太赞了!通过把域名加入到 fake ip filter 内,终于解决了!请问 wifi calling 不能使用 fake ip 的原因是什么?

@yellowsavant
Copy link

加到fakeipfilter里面去,然后运行状态下查询下域名的dns,看内核日志有没有记录

太赞了!通过把域名加入到 fake ip filter 内,终于解决了!请问 wifi calling 不能使用 fake ip 的原因是什么?

fake ip filter名单相当于redir-host模式,而fake-ip模式下返回的ip是假ip段

@sean-root
Copy link
Author

加到fakeipfilter里面去,然后运行状态下查询下域名的dns,看内核日志有没有记录

太赞了!通过把域名加入到 fake ip filter 内,终于解决了!请问 wifi calling 不能使用 fake ip 的原因是什么?

fake ip filter名单相当于redir-host模式,而fake-ip模式下返回的ip是假ip段

是的,But why: wifi calling 不允许使用 fake ip 的原因是啥?难不成是校验 ip 啥的?(这个话题和 openclash 其实没关系了 😄)

@yellowsavant
Copy link

加到fakeipfilter里面去,然后运行状态下查询下域名的dns,看内核日志有没有记录

太赞了!通过把域名加入到 fake ip filter 内,终于解决了!请问 wifi calling 不能使用 fake ip 的原因是什么?

fake ip filter名单相当于redir-host模式,而fake-ip模式下返回的ip是假ip段

是的,But why: wifi calling 不允许使用 fake ip 的原因是啥?难不成是校验 ip 啥的?(这个话题和 openclash 其实没关系了 😄)

假IP事实上有很多问题,例如你在clash for windows使用fake ip,有时候会发现wifi断网(DNS rebind protection)....
或是clash因故重启,而client端的dns缓存还keep住之前的假ip,这也会出问题....

@createkk
Copy link

加到fakeipfilter里面去,然后运行状态下查询下域名的dns,看内核日志有没有记录

太赞了!通过把域名加入到 fake ip filter 内,终于解决了!请问 wifi calling 不能使用 fake ip 的原因是什么?

请问是哪个域名呢?

@sean-root
Copy link
Author

加到fakeipfilter里面去,然后运行状态下查询下域名的dns,看内核日志有没有记录

太赞了!通过把域名加入到 fake ip filter 内,终于解决了!请问 wifi calling 不能使用 fake ip 的原因是什么?

请问是哪个域名呢?

Issue Description 里也说了,我是这么写的:

fake-ip-filter:
- '+.pub.3gppnetwork.org'

@createkk
Copy link

加到fakeipfilter里面去,然后运行状态下查询下域名的dns,看内核日志有没有记录

太赞了!通过把域名加入到 fake ip filter 内,终于解决了!请问 wifi calling 不能使用 fake ip 的原因是什么?

请问是哪个域名呢?

Issue Description 里也说了,我是这么写的:

fake-ip-filter:
- '+.pub.3gppnetwork.org'

谢谢!

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

5 participants