kizzx2 / docker-wireguard-socks-proxy

Expose a WireGuard tunnel as a SOCKS5 proxy
https://hub.docker.com/r/kizzx2/wireguard-socks-proxy
MIT License
151 stars 36 forks source link

Cannot find device "wireguard" #1

Open Sispheor opened 4 years ago

Sispheor commented 4 years ago

Hi, this is the error I get on ubuntu 18.04

[#] ip link add wireguard type wireguard
RTNETLINK answers: Not supported
Unable to access interface: Protocol not supported
[#] ip link delete dev wireguard
Cannot find device "wireguard"
dokbua commented 3 years ago

Same here, a year later. Looks like abandonware.

wireguard-socks-proxy           | [#] ip link add peer1 type wireguard
wireguard-socks-proxy           | RTNETLINK answers: Operation not permitted
wireguard-socks-proxy           | Unable to access interface: Protocol not supported
wireguard-socks-proxy           | [#] ip link delete dev peer1
wireguard-socks-proxy           | Cannot find device "peer1"
maxgillett commented 2 years ago

Try adding --privileged to the docker run command.

Wikidepia commented 1 year ago

I got similar error, I need to add --sysctl net.ipv6.conf.all.disable_ipv6=1 to docker run command to fix it and remove all ipv6 address from wireguard conf

docker run -d --rm --sysctl net.ipv6.conf.all.disable_ipv6=1 --cap-add=NET_ADMIN \
    --name wireguard-socks-proxy \
    --volume wg:/etc/wireguard/:ro \
    -p 1080:1080 \
    kizzx2/wireguard-socks-proxy