alturismo / wg_hideme_privoxy

wg hideme vpn client docker
9 stars 8 forks source link

[ERR] Wireguard open failed, operation not supported #2

Closed w00dst0ck closed 2 years ago

w00dst0ck commented 3 years ago

I try to start the container on a synology. But I get only the following looping messages.

/config/hideme.yaml exist /config/CA.pem exist /config/accessToken.txt exist Link: Generated a new wireguard private key Main: [ERR] Wireguard open failed, operation not supported

Any idea what could be meant by Wireguard open failed, operation not supported

alturismo commented 3 years ago

sorry, i dont use a synology so i cant test either.

can you post your docker run command here (without your credentials) to confirm correct setup

w00dst0ck commented 3 years ago

I've used the following docker run.

sudo docker run -d \ --name=wg_hideme_privoxy \ --net=bridge \ --log-opt max-size=10m \ --log-opt max-file=3 \ --privileged=true \ -e TZ="Europe/Berlin" \ -e LOCAL_NET=0.0.0.0/24 \ -e HIDEME_SERVER=pl.hideservers.net \ -e HIDEME_FILE=hideme.yaml \ -e HIDEME_USER=xxxxxxx \ -e HIDEME_PASS=xxxxxxxxxxx \ -p 8080:8080/tcp \ -p 1080:1080/tcp \ -v /volume1/docker/wg_hideme_privoxy/config/:/config:rw \ --cap-add=NET_ADMIN --device /dev/net/tun --dns=8.8.8.8 \ alturismo/wg_hideme_privoxy

If I start a bash in the container, I can request a token with "hide.client.linux token". But the connect results in the error message.

alturismo commented 3 years ago

may try disable the ipv6 just in case (even it should throw a error), thats how my personal extras look like

--cap-add=NET_ADMIN --device /dev/net/tun --sysctl net.ipv6.conf.all.disable_ipv6=0 --dns=1.1.1.1

w00dst0ck commented 3 years ago

Unfortunately this does not work.

Will then search the synology forums for possible causes.

w00dst0ck commented 2 years ago

Adding wireguard kernel modules for Synology fixed my problem. https://github.com/runfalk/synology-wireguard

alturismo commented 2 years ago

Thanks for the Info

Alena47 commented 1 year ago

Getting this error:

Link: Generated a new wireguard private key
Main: [ERR] Wireguard open failed, operation not supported

You may forget to run the command as a root after generating access token

sudo ./hide.me connect server-somewhere-in-this-planet.

peace.

w00dst0ck commented 1 year ago

@Alena47 This issue has already been fixed by adding the kernel modules to the Synology. 😉

w00dst0ck commented 5 months ago

Found an updated guide for DSM 7.2 https://www.derekseaman.com/2022/12/using-wireguard-with-your-synology-docker-containers.html