[GH-ISSUE #173] Cloak under docker #140

Open
opened 2026-02-26 12:34:06 +03:00 by kerem · 1 comment
Owner

Originally created by @ghost on GitHub (Aug 20, 2021).
Original GitHub issue: https://github.com/cbeuw/Cloak/issues/173

I setup cloak on my own ubuntu computer, and it is working fine, but when I try to move it under a docker container (lets say ubuntu:20.04) cloak is giving me this error constantly:

Failed to prepare connection to remote: cipher: message authentication failed

Looks like there are packages that are missing under the docker container. Does anybody know what they are?

How to move cloak under a docker container?
What are the procedures for the alpine docker image? What equivalent packages to install there to make it work?

Originally created by @ghost on GitHub (Aug 20, 2021). Original GitHub issue: https://github.com/cbeuw/Cloak/issues/173 I setup cloak on my own ubuntu computer, and it is working fine, but when I try to move it under a docker container (lets say `ubuntu:20.04`) cloak is giving me this error constantly: Failed to prepare connection to remote: cipher: message authentication failed Looks like there are packages that are missing under the docker container. Does anybody know what they are? How to move cloak under a docker container? What are the procedures for the `alpine` docker image? What equivalent packages to install there to make it work?
Author
Owner

@borouhin commented on GitHub (Nov 4, 2023):

After 2 years, same error here.
I'm trying to run Cloak on Mikrotik RB3011, which has containers support.
My config (Wireguard over Cloak) works perfectly between 2 Ubuntu servers (amd64). But when I run ck-client inside docker container on my router (arm32, container based on alpine) with the same server, exactly the same client config that worked on Ubuntu server and exactly the same ck-client command line (except that I add internal IP of the container to "-i" switch) - ck-client runs, accepts connection from Wireguard, but then outputs "Failed to prepare connection to remote: cipher: message authentication failed" multiple times and fails to connect. I'm using "plain" EncryptionMethod, if it matters.
Any help appreciated!

<!-- gh-comment-id:1793561443 --> @borouhin commented on GitHub (Nov 4, 2023): After 2 years, same error here. I'm trying to run Cloak on Mikrotik RB3011, which has containers support. My config (Wireguard over Cloak) works perfectly between 2 Ubuntu servers (amd64). But when I run ck-client inside docker container on my router (arm32, container based on alpine) with the same server, exactly the same client config that worked on Ubuntu server and exactly the same ck-client command line (except that I add internal IP of the container to "-i" switch) - ck-client runs, accepts connection from Wireguard, but then outputs "Failed to prepare connection to remote: cipher: message authentication failed" multiple times and fails to connect. I'm using "plain" EncryptionMethod, if it matters. Any help appreciated!
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
starred/Cloak#140
No description provided.