Skip to content

11.2c: the iOS 17+ tunnel over Wi-Fi - #99

Merged
SirReaDy merged 1 commit into
mainfrom
feat/wifi-tunnel
Oct 23, 2026
Merged

SirReaDy merged 1 commit into
mainfrom
feat/wifi-tunnel

Conversation

@SirReaDy

Copy link
Copy Markdown
Collaborator

With the remote pairing made over USB (11.1), IPAForge opens the iOS 17+ CoreDevice tunnel over Wi-Fi, without Wi-Fi sync or admin rights. Inside it run the same TCP client, RSD and services as over USB (11.2b).

How it works

  1. Remote pairing port: found from the device's _remotepairing._tcp advert. The network search now takes any service type, and adverts carry their port.
  2. Pair-verify over TCP with the saved identity. Pair-verify now returns the X25519 secret.
  3. Encrypted messages: ChaCha20-Poly1305 under HKDF-SHA512 keys (ClientEncrypt-main from us, ServerEncrypt-main from the device), the nonce each direction's message count as 8 little-endian bytes then 4 zero bytes. They carry the encrypted createListener for a TCP tunnel.
  4. IPAForge's own TLS 1.2 PSK client: TLS_PSK_WITH_AES_128_GCM_SHA256, extended master secret, empty identity. iOS refuses every SHA-1 and ECDHE-PSK suite, which are all Electron's BoringSSL offers. It's tested against OpenSSL's server: the handshake, data both ways, records over 16 KB, and a wrong key refused.
  5. The tunnel: 11.2b's opener now opens a tunnel over any carrier (openTunnelOver): CoreDeviceProxy over USB, or the TLS-PSK connection over Wi-Fi. Over Wi-Fi, the control connection closes with the tunnel.

DeviceManager.openWifiTunnel and device-probe rp-tunnel [--mb].

Checks

  • On an iPhone on iOS 26.6.1: the tunnel and RSD over Wi-Fi in about 3.3 s, 73 services, and an AFC upload of 20 MiB at 9.3 MiB/s with no retransmissions.
  • Bug fixed: the device test caught the search ignoring answers for any service but lockdown. It's fixed, with a regression test.
  • Automated: pnpm verify, and the full suite twice under full CPU load.

The app's installs go through a device session, which runs over the Wi-Fi tunnel in 11.2d (on the roadmap).

With the remote pairing made over USB (11.1), the CoreDevice tunnel opens
over Wi-Fi, without Wi-Fi sync or admin rights, and runs the same TCP
client, RSD and services as over USB (11.2b).

- The device's _remotepairing._tcp port from its advert (the search now
  takes any service type, and adverts carry their port), TCP to it, and
  pair-verify with the saved identity, which now returns its X25519 secret.
- Encrypted messages after pair-verify: ChaCha20-Poly1305 under HKDF-SHA512
  keys (ClientEncrypt-main / ServerEncrypt-main), the nonce each
  direction's message count; the encrypted createListener for a TCP tunnel.
- IPAForge's own TLS 1.2 PSK client (TLS_PSK_WITH_AES_128_GCM_SHA256,
  extended master secret, empty identity): iOS refuses every SHA-1 and
  ECDHE-PSK suite, which are all Electron's BoringSSL offers. Tested
  against OpenSSL's server.
- 11.2b's opener now opens a tunnel over any carrier (openTunnelOver):
  CoreDeviceProxy over USB, the TLS-PSK connection over Wi-Fi, which also
  closes the control connection with the tunnel.
- DeviceManager.openWifiTunnel and device-probe rp-tunnel [--mb].

On an iPhone on iOS 26.6.1: the tunnel and RSD over Wi-Fi in about 3.3 s,
73 services, an AFC upload of 20 MiB at 9.3 MiB/s with no retransmissions.
The app's installs go through a device session, which runs over the Wi-Fi
tunnel with 11.2d.
@SirReaDy
SirReaDy merged commit 31b71c2 into main Oct 23, 2026
12 checks passed
@SirReaDy
SirReaDy deleted the feat/wifi-tunnel branch October 23, 2026 06:04
@SirReaDy SirReaDy mentioned this pull request Nov 17, 2026
SirReaDy added a commit that referenced this pull request Nov 17, 2026
Version **0.1.0-alpha.8**: `apps/desktop/package.json`, the release
notes (`docs/releases/0.1.0-alpha.8.md`, used for the GitHub release and
the website), What's new and the changelog in the app, the README's
alpha line, and the roadmap.

**What's in it**
- The setup guide and the tour of the pages, with SideStore installed
  from the guide (#95, #96)
- Settings in tabs (#95)
- Wi-Fi without usbmuxd (#97)
- The iOS 17.4+ device tunnel over USB and Wi-Fi, and device sessions
  inside it (#98, #99, #100)
- Apple TV and Vision Pro paired by the code they show (#104)
- Expired apps whose profile iOS removed are listed and refreshed (#103)
- Paid teams are no longer stopped by the App ID limit (#107)


**Not tested on real hardware:** Apple TV and Vision Pro pairing (fakes
only), and the Wi-Fi tunnel beyond the iPhones it was tried on. The
release notes say so under "Known limits".
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

Successfully merging this pull request may close these issues.

1 participant