[GH-ISSUE #2841] [iOS 4.8.21] OpenVPN over Cloak hangs because the local Cloak listener does not start #1294

Open
opened 2026-10-14 03:39:38 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @martynovdenis312 on GitHub (Jul 17, 2026).
Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/2841

Describe the bug

OpenVPN over Cloak hangs indefinitely on iOS in AmneziaVPN 4.8.21.0. The same server/profile works from AmneziaVPN on macOS, and AmneziaWG 2 works from the same iPhone.

This appears to be a regression of #2072.

To reproduce

  1. Install/configure OpenVPN over Cloak through AmneziaVPN.
  2. Import/create a fresh user profile on iPhone.
  3. Tap Connect.
  4. The app remains in the connecting state and no traffic reaches the Cloak server.

Deleting/recreating the profile and rebooting the iPhone do not change the behavior.

Expected behavior

The Cloak listener starts inside the packet-tunnel extension, then OpenVPN connects through the local listener and the tunnel becomes active.

Sanitized diagnostic evidence

  • The iOS packet-tunnel extension starts successfully.
  • The extension then repeatedly receives TCP ECONNREFUSED while connecting to its loopback OpenVPN endpoint (127.0.0.1:1194).
  • No corresponding traffic reaches the server.
  • This is consistent with the OpenVPN configuration being redirected to the local endpoint while the Cloak listener is not running.
  • No credentials, server addresses, profile contents, or device identifiers are included here. A sanitized log excerpt can be provided if needed.

Source/package evidence

  • Tag 4.8.21.0 still calls configuration.setPTCloak() in client/platforms/ios/PacketTunnelProvider+OpenVPN.swift.
  • The same release line embeds the prebuilt OpenVPNAdapter.framework from the client/3rd-prebuilt submodule.
  • At the submodule commit pinned by 4.8.21.0 (4680bd8fb4173ad921f6181f7843ee5ae99b039b), the iOS OpenVPNAdapter Mach-O is a dynamically linked shared library.
  • #2645 (fix(ios): link OpenVPNAdapter statically) was merged into dev on 2026-05-30, but that fix is not present in the separate 4.8.21.0 release history.

The missing release-line equivalent of #2645 is therefore a likely cause, although I cannot produce an App Store-signed build locally to prove the complete fix.

Smartphone

  • Device: iPhone 16
  • OS: iOS 26.5.2
  • AmneziaVPN: 4.8.21.0 (build 0)

Additional context

Could the team confirm whether the static-link fix (or its equivalent for the prebuilt release branch) will be backported, and whether there is an ETA for a TestFlight/App Store build?

If maintainers identify the intended target branch and artifact update path, I can prepare a focused PR rather than changing the wrong branch or submitting a binary-only workaround.

Originally created by @martynovdenis312 on GitHub (Jul 17, 2026). Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/2841 **Describe the bug** OpenVPN over Cloak hangs indefinitely on iOS in AmneziaVPN 4.8.21.0. The same server/profile works from AmneziaVPN on macOS, and AmneziaWG 2 works from the same iPhone. This appears to be a regression of #2072. **To reproduce** 1. Install/configure OpenVPN over Cloak through AmneziaVPN. 2. Import/create a fresh user profile on iPhone. 3. Tap Connect. 4. The app remains in the connecting state and no traffic reaches the Cloak server. Deleting/recreating the profile and rebooting the iPhone do not change the behavior. **Expected behavior** The Cloak listener starts inside the packet-tunnel extension, then OpenVPN connects through the local listener and the tunnel becomes active. **Sanitized diagnostic evidence** - The iOS packet-tunnel extension starts successfully. - The extension then repeatedly receives TCP `ECONNREFUSED` while connecting to its loopback OpenVPN endpoint (`127.0.0.1:1194`). - No corresponding traffic reaches the server. - This is consistent with the OpenVPN configuration being redirected to the local endpoint while the Cloak listener is not running. - No credentials, server addresses, profile contents, or device identifiers are included here. A sanitized log excerpt can be provided if needed. **Source/package evidence** - Tag `4.8.21.0` still calls `configuration.setPTCloak()` in `client/platforms/ios/PacketTunnelProvider+OpenVPN.swift`. - The same release line embeds the prebuilt `OpenVPNAdapter.framework` from the `client/3rd-prebuilt` submodule. - At the submodule commit pinned by `4.8.21.0` (`4680bd8fb4173ad921f6181f7843ee5ae99b039b`), the iOS `OpenVPNAdapter` Mach-O is a dynamically linked shared library. - #2645 (`fix(ios): link OpenVPNAdapter statically`) was merged into `dev` on 2026-05-30, but that fix is not present in the separate `4.8.21.0` release history. The missing release-line equivalent of #2645 is therefore a likely cause, although I cannot produce an App Store-signed build locally to prove the complete fix. **Smartphone** - Device: iPhone 16 - OS: iOS 26.5.2 - AmneziaVPN: 4.8.21.0 (build 0) **Additional context** Could the team confirm whether the static-link fix (or its equivalent for the prebuilt release branch) will be backported, and whether there is an ETA for a TestFlight/App Store build? If maintainers identify the intended target branch and artifact update path, I can prepare a focused PR rather than changing the wrong branch or submitting a binary-only workaround.
Author
Owner

@martynovdenis312 commented on GitHub (Jul 17, 2026):

@yyy-amnezia, could you please confirm whether the static-link change from #2645 needs an equivalent backport to the 4.8.21.0 release line? The issue above includes sanitized device evidence. I can prepare a focused PR once the intended target branch and prebuilt-artifact update path are confirmed.

<!-- gh-comment-id:5004232982 --> @martynovdenis312 commented on GitHub (Jul 17, 2026): @yyy-amnezia, could you please confirm whether the static-link change from #2645 needs an equivalent backport to the 4.8.21.0 release line? The issue above includes sanitized device evidence. I can prepare a focused PR once the intended target branch and prebuilt-artifact update path are confirmed.
Author
Owner

@PenguinIsEvil commented on GitHub (Jul 18, 2026):

I have the same problem :(

<!-- gh-comment-id:5009764139 --> @PenguinIsEvil commented on GitHub (Jul 18, 2026): I have the same problem :(
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
amnezia-vpn/amnezia-client#1294
No description provided.