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

dokodemo-door收不到iOS推送通知 #774

Closed
capxax opened this issue Oct 18, 2021 · 4 comments
Closed

dokodemo-door收不到iOS推送通知 #774

capxax opened this issue Oct 18, 2021 · 4 comments

Comments

@capxax
Copy link

capxax commented Oct 18, 2021

2021/10/18 13:41:46 UDP:8.8.8.8:53 got answer: courier.push.apple.com -> [] 186.110044ms
2021/10/18 13:41:46 UDP:8.8.8.8:53 cache HIT: courier.push.apple.com -> []
2021/10/18 13:41:46 UDP:8.8.8.8:53 cache HIT: courier.push.apple.com -> []
2021/10/18 13:41:47 UDP:8.8.8.8:53 cache HIT: courier.push.apple.com -> []
2021/10/18 13:41:47 UDP:8.8.8.8:53 cache HIT: courier.push.apple.com -> []

这个域名没法解析
不知道为什么会是这个域名
有点像隔壁 这个issus

2021/10/18 13:41:46 [Info] [1976890076] app/dispatcher: sniffed domain: courier.push.apple.com
2021/10/18 13:41:46 [Info] [1976890076] app/dispatcher: taking detour [direct] for [tcp:courier.push.apple.com:5223]
2021/10/18 13:41:46 [Info] [1976890076] proxy/freedom: opening connection to tcp:courier.push.apple.com:5223
2021/10/18 13:41:46 [Debug] app/dns: domain courier.push.apple.com matches following rules: [geosite:geolocation-!cn(DNS idx:1)]
2021/10/18 13:41:46 [Debug] app/dns: domain courier.push.apple.com uses following DNS first: [UDP:8.8.8.8:53]
2021/10/18 13:41:46 [Debug] app/dns: UDP:8.8.8.8:53 querying DNS for: courier.push.apple.com.
2021/10/18 13:41:46 [Debug] transport/internet/udp: dispatch request to: udp:8.8.8.8:53
2021/10/18 13:41:46 [Info] app/dns: UDP:8.8.8.8:53 got answer: courier.push.apple.com. TypeA -> [] 186.119064ms
2021/10/18 13:41:46 [Debug] app/dns: UDP:8.8.8.8:53 updating IP records for domain:courier.push.apple.com.
2021/10/18 13:41:46 [Info] [1976890076] proxy/freedom: failed to get IP address for domain courier.push.apple.com > empty response
2021/10/18 13:41:46 [Info] [1976890076] transport/internet/tcp: dialing TCP to tcp:courier.push.apple.com:5223
2021/10/18 13:41:46 [Debug] transport/internet: dialing to tcp:courier.push.apple.com:5223
2021/10/18 13:41:46 [Debug] app/dns: domain courier.push.apple.com matches following rules: [geosite:geolocation-!cn(DNS idx:1)]
2021/10/18 13:41:46 [Debug] app/dns: domain courier.push.apple.com uses following DNS first: [UDP:8.8.8.8:53]
2021/10/18 13:41:46 [Info] app/dns: UDP:8.8.8.8:53 cache HIT courier.push.apple.com -> [] > empty response
2021/10/18 13:41:46 [Info] [1976890076] proxy/freedom: failed to get IP address for domain courier.push.apple.com > empty response
2021/10/18 13:41:46 [Info] [1976890076] transport/internet/tcp: dialing TCP to tcp:courier.push.apple.com:5223

@capxax
Copy link
Author

capxax commented Oct 19, 2021

我目前解决方案是
dns设置
"courier.push.apple.com": "17.57.145.166",

@LearZhou
Copy link

這是因為 courier.push.apple.com 這個域名不存在,正常的應該是數字開頭的,例如 17-courier.push.apple.com 這樣的才是對頭的域名。

可能是入站域名處理的 bug,或者說是 feature?

@lflcan
Copy link

lflcan commented Oct 20, 2021

v2ray 时代遗留下来的老问题了

如果是将 xray 用于本地透明代理,且 Apple 服务不走代理,可以按如下操作修改本地配置文件

  1. 启用 sniffing enabled,不进行 destOverride (v2ray/xray 可用)
    将原来的
    "sniffing": { "enabled": true, "destOverride": [ "http", "tls" ],
    改为
    "sniffing": { "enabled": true, "destOverride": [] },
    此操作虽能有效解决推送问题,但可能会导致分流失败

  2. 使用 xray 的 "domainsExcluded" (当前仅 xray 可用)

    "sniffing": { "enabled": true, "destOverride": [ "http", "tls" ],
    改为
    "sniffing": { "enabled": true, "destOverride": [ "http", "tls" ], "domainsExcluded": [ "courier.push.apple.com" ] },
    此操作仅会将所选域名排除在 destOverride 的范围外,不会影响分流

如果所有的 Apple 服务都走代理转发到其它 v2ray/xray 服务端上,远端的配置文件也要按照上述操作进行相应的修改

@capxax
Copy link
Author

capxax commented Oct 22, 2021

v2ray 时代遗留下来的老问题了

如果是将 xray 用于本地透明代理,且 Apple 服务不走代理,可以按如下操作修改本地配置文件

  1. 启用 sniffing enabled,不进行 destOverride (v2ray/xray 可用)
    将原来的
    "sniffing": { "enabled": true, "destOverride": [ "http", "tls" ],
    改为
    "sniffing": { "enabled": true, "destOverride": [] },
    此操作虽能有效解决推送问题,但可能会导致分流失败
  2. 使用 xray 的 "domainsExcluded" (当前仅 xray 可用)

    "sniffing": { "enabled": true, "destOverride": [ "http", "tls" ],
    改为
    "sniffing": { "enabled": true, "destOverride": [ "http", "tls" ], "domainsExcluded": [ "courier.push.apple.com" ] },
    此操作仅会将所选域名排除在 destOverride 的范围外,不会影响分流

如果所有的 Apple 服务都走代理转发到其它 v2ray/xray 服务端上,远端的配置文件也要按照上述操作进行相应的修改

感谢!只是courier.push.apple.com 并不是正确域名,排除也没法,只能把正确ip解析到courier.push.apple.com
"courier.push.apple.com": ["17.57.145.166","17.57.145.172","17.57.145.133","17.57.145.165","17.57.145.167"]
还要把geosite:apple 和courier.push.apple.com 设为直连

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants