Comments (5)
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.
Closing due to no response.
from docker-wireguard.
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.
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.
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)
- [FEAT / BUG] <Modifiable 'ListenPort' used by host/wireguard incoming connections through docker configuration> HOT 8
- [BUG] Custom Server Port not taken into account in server.conf template HOT 3
- [BUG] starting with ~v1.0.20210914-ls116 cannot connect to wireguard HOT 3
- [BUG] Error generating QRCode - qrencode: command not found HOT 2
- [BUG] -ls23 and onwards has issue with adding iptables rules HOT 6
- [BUG] iptables v1.8.10 (legacy): can't initialize iptables table `filter' HOT 4
- [BUG] Conneted to the Wiregurad server, but no network connection on client side. HOT 3
- [BUG] Client IPs are all the container's host HOT 15
- [BUG] missing /32 in interface address HOT 14
- [FEAT] Enable SERVER_ALLOWEDIPS_PEER_ declaration by comma HOT 9
- Old tags are wrong HOT 4
- [BUG] ListenPort = 51820 in default peer.conf disallows >1 peer through NAT loopback HOT 11
- [FEAT] [Peer] definition within generated wg0.conf should be templated HOT 10
- Setting SERVERPORT has no effect HOT 5
- [BUG] Setting SERVER_ALLOWEDIPS_PEER_ does not recreate configs HOT 2
- [BUG] busybox's modprobe fails to load kernel module HOT 1
- [FEAT] IPv6 subnet support HOT 3
- [BUG] Dual-stack IPv6 traffic is not dropped and therefore spoiling the true origin of packets HOT 1
- [FEAT] Enable logging in CoreDNS HOT 3
- [BUG] dosent work in ubuntu server HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-wireguard.