is it normal that a wireguard docker container provides "low" networkspeed for connecting containers?
I'm using a wireguard docker container to provide vpn connection to a qbittorrent container. When I compare it to wireguard on linux and the qbittorrent application, the same torrent is way slower. My server gets 2Mbit/s and my computer 15Mbit/s The 15Mbit/s is where my internet connection caps, while downloading that fast I can't watch YT videos. They both are in the same network using the same vpn provider and same endpoint.
for qbittorrent docker-compose I use network_mode: service:wireguard
It depends how wireguard is implemented.
The container may be running wireguard in userspace, instead of the OS’s kernel implementation.
kinda fixed it, I think...
Checked what image I'm using, its linuxserver, and they're using the OS's kernel implementation. Also saw that in my logs.
I used this https://www.linuxserver.io/blog/routing-docker-host-and-container-traffic-through-wireguard and added these lines into my wg0.conf:
Then I regenerated my mullvad config with a different server.
Now I'm downloading the Arch Linux iso with 11Mbit/s
Honestly I've no idea what exactly solved the problem, iptables, networks and routing still feels likes witchcraft to me most of the time.
Can you please share your compose file?
I personally use a separate container instead of another service, not sure what difference it makes
network_mode: "container:wireguard"Using the
lscr.io/linuxserver/wireguard:latestimage btwI would try it with the
SYS_MODULEand/lib/moduleslines uncommented. That's how I have my container and it seems to perform just fine.It works without that. I commented it because the logs told me its already loaded and I should comment these lines.
Any reason you need the traefik label on the wireguard container? Seems unnecessary.