Git Product home page Git Product logo

Comments (5)

j0nnymoe avatar j0nnymoe commented on August 17, 2024

Try installing the binaries from http://get.docker.com first rather than the ones included in the ubuntu repos and try again.

from docker-wireguard.

j0nnymoe avatar j0nnymoe commented on August 17, 2024

Closing due to no response.

from docker-wireguard.

SannanKhalid13 avatar SannanKhalid13 commented on August 17, 2024

I was having the same issue but it was resolved after i mapped the /usr/src in volumes

volumes:
    - /usr/src:/usr/src

from docker-wireguard.

guillermolg00 avatar guillermolg00 commented on August 17, 2024

Hello, I am trying to create a double vpn tunnel in a vps server, therefore I am trying to have two containers, one with the configuration of a wireguard client and the other with a server configuration.

In my case I am using the client on the network host.

The server container works perfectly but the client container shows me an error
RTNETLINK answers: Operation not permitted

This are the logs:
wg-client | [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
wg-client | [s6-init] ensuring user provided files have correct perms...exited 0.
wg-client | [fix-attrs.d] applying ownership & permissions fixes...
wg-client | [fix-attrs.d] done.
wg-client | [cont-init.d] executing container initialization scripts...
wg-client | [cont-init.d] 01-envfile: executing...
wg-client | [cont-init.d] 01-envfile: exited 0.
wg-client | [cont-init.d] 01-migrations: executing...
wg-client | [migrations] started
wg-client | [migrations] no migrations found
wg-client | [cont-init.d] 01-migrations: exited 0.
wg-client | [cont-init.d] 10-adduser: executing...
wg-client | usermod: no changes
wg-client |
wg-client | -------------------------------------
wg-client | _ ()
wg-client | | | ___ _ __
wg-client | | | / | | | /
wg-client | | | _
\ | | | () |
wg-client | || |
/ || __/
wg-client |
wg-client |
wg-client | Brought to you by linuxserver.io
wg-client | -------------------------------------
wg-client |
wg-client | To support the app dev(s) visit:
wg-client | WireGuard: https://www.wireguard.com/donations/
wg-client |
wg-client | To support LSIO projects visit:
wg-client | https://www.linuxserver.io/donate/
wg-client | -------------------------------------
wg-client | GID/UID
wg-client | -------------------------------------
wg-client |
wg-client | User uid: 911
wg-client | User gid: 911
wg-client | -------------------------------------
wg-client |
wg-client | [cont-init.d] 10-adduser: exited 0.
wg-client | [cont-init.d] 30-module: executing...
wg-client | Uname info: Linux srv32119-206152.vps.etecsa.cu 5.4.0-96-generic #109-Ubuntu SMP Wed Jan 12 16:49:16 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
wg-client | RTNETLINK answers: Operation not permitted
wg-client | **** The wireguard module is not active, will attempt kernel header install and module compilation. ****
wg-client | **** Kernel headers seem to be present, attempting to build the wireguard module. . . ****
wg-client | **** Generating signing key ****
wg-client | Generating a RSA private key
wg-client | ..................++++
wg-client | ......................................................................................++++
wg-client | writing new private key to 'signing_key.pem'
wg-client | -----
wg-client | **** Building the module ****
wg-client | make: Entering directory '/app/wireguard-linux-compat/src'
wg-client | CC [M] /app/wireguard-linux-compat/src/noise.o
wg-client | CC [M] /app/wireguard-linux-compat/src/main.o
wg-client | CC [M] /app/wireguard-linux-compat/src/device.o
wg-client | CC [M] /app/wireguard-linux-compat/src/peer.o
wg-client | CC [M] /app/wireguard-linux-compat/src/timers.o
wg-client | CC [M] /app/wireguard-linux-compat/src/queueing.o
wg-client | CC [M] /app/wireguard-linux-compat/src/send.o
wg-client | CC [M] /app/wireguard-linux-compat/src/receive.o
wg-client | CC [M] /app/wireguard-linux-compat/src/socket.o
wg-client | CC [M] /app/wireguard-linux-compat/src/peerlookup.o
wg-client | CC [M] /app/wireguard-linux-compat/src/allowedips.o
wg-client | CC [M] /app/wireguard-linux-compat/src/ratelimiter.o
wg-client | CC [M] /app/wireguard-linux-compat/src/cookie.o
wg-client | CC [M] /app/wireguard-linux-compat/src/netlink.o
wg-client | CC [M] /app/wireguard-linux-compat/src/crypto/zinc/chacha20/chacha20.o
wg-client | PERLASM /app/wireguard-linux-compat/src/crypto/zinc/chacha20/chacha20-x86_64.S
wg-client | CC [M] /app/wireguard-linux-compat/src/crypto/zinc/poly1305/poly1305.o
wg-client | PERLASM /app/wireguard-linux-compat/src/crypto/zinc/poly1305/poly1305-x86_64.S
wg-client | CC [M] /app/wireguard-linux-compat/src/crypto/zinc/chacha20poly1305.o
wg-client | CC [M] /app/wireguard-linux-compat/src/crypto/zinc/blake2s/blake2s.o
wg-client | AS [M] /app/wireguard-linux-compat/src/crypto/zinc/blake2s/blake2s-x86_64.o
wg-client | CC [M] /app/wireguard-linux-compat/src/crypto/zinc/curve25519/curve25519.o
wg-client | AS [M] /app/wireguard-linux-compat/src/crypto/zinc/chacha20/chacha20-x86_64.o
wg-client | AS [M] /app/wireguard-linux-compat/src/crypto/zinc/poly1305/poly1305-x86_64.o
wg-client | LD [M] /app/wireguard-linux-compat/src/wireguard.o
wg-client | Building modules, stage 2.
wg-client | MODPOST 1 modules
wg-client | CC [M] /app/wireguard-linux-compat/src/wireguard.mod.o
wg-client | LD [M] /app/wireguard-linux-compat/src/wireguard.ko
wg-client | make: Leaving directory '/app/wireguard-linux-compat/src'
wg-client | make: Entering directory '/app/wireguard-linux-compat/src'
wg-client | INSTALL /app/wireguard-linux-compat/src/wireguard.ko
wg-client | DEPMOD 5.4.0-96-generic
wg-client | Warning: modules_install: missing 'System.map' file. Skipping depmod.
wg-client | depmod -b "/" -a 5.4.0-96-generic
wg-client | make: Leaving directory '/app/wireguard-linux-compat/src'
wg-client | **** Let's test our new module. ****
wg-client | RTNETLINK answers: Operation not permitted
wg-client | **** The module is not active, review the logs. Sleeping now. . . ****

and this is my compose file:
`version: '3.3'
services:
wg-client:
image: ghcr.io/linuxserver/wireguard
container_name: wg-client
network_mode: host
volumes:
- /path/to/appdata/config:/config
- /lib/modules:/lib/modules
- ./configClient/wg0.conf:/config/wg0.conf
- /usr/src:/usr/src
restart: unless-stopped

wg-server:
image: ghcr.io/linuxserver/wireguard
container_name: wg-server
cap_add:
- NET_ADMIN
- SYS_MODULE
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/London
- SERVERURL= #optional
- SERVERPORT=51820 #optional
- PEERS=20 #optional
- PEERDNS=auto #optional
- INTERNAL_SUBNET=10.13.13.0 #optional
volumes:
- ./config:/config
- /lib/modules:/lib/modules
- /usr/src:/usr/src
ports:
- 51820:51820/udp
sysctls:
- net.ipv4.conf.all.src_valid_mark=1
restart: unless-stopped`

from docker-wireguard.

tandav avatar tandav commented on August 17, 2024

I was having the same issue and fixed it by updating docker and docker-compose.
Also you can try update ubuntu.

from docker-wireguard.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.