cbeuw / Cloak

A censorship circumvention tool to evade detection by authoritarian state adversaries
GNU General Public License v3.0
3.22k stars 290 forks source link

Cloak under docker #173

Open amhoba opened 3 years ago

amhoba commented 3 years ago

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?

borouhin commented 9 months ago

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!