OneXray:实测 APNs 接管开关组合,说明默认路由限制

OneXray 在 iPhone 12 mini、iOS 27.2、关闭 Wi-Fi 的对照中,Capture all traffic 关闭时 APNs 经蜂窝 IPv6 直连;开启它并关闭 Bypass Apple Push Notification service 后,日志确认经代理 IPv4,十秒内收到 Telegram 推送。作者称这是该环境已验证的方案,并说明 enforceRoutes 不适用于默认路由;相关一键预设仍属计划,不把测试结果推广到所有网络。

作者原文

Thanks for the report. We reproduced this on an iPhone 12 mini running iOS 27.2. We used the same proxy node and APNs rules for both 4G tests, with Wi-Fi turned off.

  • With Capture all traffic off, APNs opened an IPv6 connection directly over cellular and bypassed the VPN. No new Telegram lock-screen notification appeared during the 75-second observation window.
  • With Capture all traffic on and Bypass Apple Push Notification service off, APNs entered the VPN over IPv4. The Xray logs confirmed it went through the proxy node, and the Telegram notification appeared on the lock screen within 10 seconds.

We also tested enforceRoutes with explicit CIDRs alongside the VPN’s default routes. Ordinary IPv4 and IPv6 connections to destinations outside those CIDRs failed in that test. Apple confirms that enforceRoutes does not apply to default routes. Apple Developer Forums

The two switches above are the best option we’ve verified so far. If your Xray rules send Apple traffic directly, put the APNs proxy rules before the broader direct rules. We plan to add one-tap presets for common combinations like this so you can apply the settings together.