tdam2112 0 Posted ... I've a 2014 Mac mini server setup and I'm using Docker to run qBittorrent. I set up AirVPN on GlueTun using WireGuard as shown in the attached Docker Compose file. I've also set up port forwarding and tested it within the AirVPN port forwarding tool. (I followed this guide https://www.youtube.com/watch?v=SQEqsaKN-Go&t=350s for reference). My problem is that my torrent speeds are quite slow in qBittorrent (averaging 30-40Kbps), if I turn off the VPN I can easily hit speeds above 2-3Mbps. I'm wondering if I got something configured incorrectly, or if there are some settings I need to tweak on my end. compose.yml Quote Share this post Link to post
rustintimberlake 13 Posted ... Do a 3-hr test with DHT unchecked in qBittorrent settings. Also only use TCP. Quote Share this post Link to post
tdam2112 0 Posted ... Thanks for the reply. Since I posted I did the following: 1. I switched server to one with a lower response time from me. This helped a bit, got speeds closer to 1Mbps, however only in new public torrents. 2. I rebuilt the Gluetun and Qbittorrent docker containers and speeds on some of the torrents up, I saw close to 3Mbps upload speeds, but download stayed low. 3. Tried turning off DHT and the speeds are down to 10-100 bps now... 4. Turned DHT back on after keeping it off overnight and restarted the containers, but the speeds now linger around 1Kbps Quote Share this post Link to post
Staff 10083 Posted ... On 2/23/2025 at 7:13 PM, tdam2112 said: My problem is that my torrent speeds are quite slow in qBittorrent (averaging 30-40Kbps), if I turn off the VPN I can easily hit speeds above 2-3Mbps Hello! Please try to set WireGuard interface MTU to 1280 bytes. GlueTun's default is 1400 bytes which could be too large for your network. A too large MTU will cause major performance hit or even disconnections.. MTU size can be set through the WIREGUARD_MTU environment variable. "You can bind mount an ini Wireguard configuration file to /gluetun/wireguard/wg0.conf. " https://github.com/qdm12/gluetun-wiki/blob/main/setup/options/wireguard.md Another performance improvement can be obtained by configuring correctly the container in order to allow the torrent software to receive the incoming packets. Note that in your compose file you did not map the proper port in the ports: section and you did not define properly the FIREWALL_VPN_INPUT_PORTS environment variable, which should be set according to the port you remotely forwarded on your AirVPN account port panel. EDIT: after a few minutes we published this message we noticed that your torrent software became reachable, so the above setting modifications are probably unnecessary. Kind regards Quote Share this post Link to post
tdam2112 0 Posted ... I added the file with the reduced packet size. It didn't seem to make much difference, everything was still only a few Bps at best. I tried changing servers (not much difference) Then I switched the peer connection back to TCP & UDP and that improved things back to how it was before, as a benchmark, I'm getting roughly 1Mbps on an Ubuntu ISO. I can't really tell if I'm hitting the limits of the peer connections through the VPN now or if I'm missing something else. Quote Share this post Link to post