dokodemo-door收不到iOS推送通知
2021/10/18 13:41:46 UDP:8.8.8.8:53 got answer: courier.push.apple.com -> [] 186.110044ms
这个域名没法解析 不知道为什么会是这个域名 有点像隔壁 这个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
我目前解决方案是 dns设置 "courier.push.apple.com": "17.57.145.166",
這是因為 courier.push.apple.com 這個域名不存在,正常的應該是數字開頭的,例如 17-courier.push.apple.com 這樣的才是對頭的域名。
可能是入站域名處理的 bug,或者說是 feature?
v2ray 时代遗留下来的老问题了
如果是将 xray 用于本地透明代理,且 Apple 服务不走代理,可以按如下操作修改本地配置文件
-
启用 sniffing enabled,不进行 destOverride (v2ray/xray 可用) 将原来的
"sniffing": { "enabled": true, "destOverride": [ "http", "tls" ],改为"sniffing": { "enabled": true, "destOverride": [] },此操作虽能有效解决推送问题,但可能会导致分流失败 -
使用 xray 的 "domainsExcluded" (当前仅 xray 可用) 将
"sniffing": { "enabled": true, "destOverride": [ "http", "tls" ],改为"sniffing": { "enabled": true, "destOverride": [ "http", "tls" ], "domainsExcluded": [ "courier.push.apple.com" ] },此操作仅会将所选域名排除在 destOverride 的范围外,不会影响分流
如果所有的 Apple 服务都走代理转发到其它 v2ray/xray 服务端上,远端的配置文件也要按照上述操作进行相应的修改
v2ray 时代遗留下来的老问题了
如果是将 xray 用于本地透明代理,且 Apple 服务不走代理,可以按如下操作修改本地配置文件
- 启用 sniffing enabled,不进行 destOverride (v2ray/xray 可用) 将原来的
"sniffing": { "enabled": true, "destOverride": [ "http", "tls" ],改为"sniffing": { "enabled": true, "destOverride": [] },此操作虽能有效解决推送问题,但可能会导致分流失败- 使用 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 设为直连