Hello everyone,
I had the same problem as you but at the end I ended up using qBitorrent-VPN from Markus McNugen.
As I am on a Raspberry Pi, I used a fork (someone was really kind to make one!) but the normal repo should work also with the information provided on the GitHub page linked above if you're on another architecture.
Here are the steps :
So I created this folder :
.../config/qBitorrentvpn/
& then the folder openvpn inside :
.../config/qBitorrentvpn/openvpn/
I dropped in this folder (.../openvpn/) the following files got from AirVPN in the config generator :
The .ovpn, ca.crt, ta.key, user.crt, user.key.
To get these files from AirVPN, here are the steps and the options that must be chosen :
Go to Config Generator
Advanced Mode: Checked
API Reference: Unchecked
Select "Linux"
IP Layer: IPv4 only
Connect with IP layer: IPv4
Protocols: UDP/443
Bundle executables: No
OpenVPN version: >=2.4
Separatekeys/certs from .ovpn file: Checked
Proxy: None
Choose servers: for example "Switzerland"
Then, Generate.
On the download page, download the zip file.
Drop all the files included in the zip file (.crt, .key, .ovpn, ...) into your .../qBitorrent/openvpn/ folder
Open the .ovpn file with notepad (or other software) and add this line at the end :
auth-user-pass
Still in the same folder (.../qBitorrent/openvpn/) create a text file (.txt if you're on Windows) that you will call auth-user-pass credentials.conf which will contain the following lines :
username
password
Replace of course the username by your AirVPN username and the password by your AirVPN password.
If you're on Windows (might be different on MacOS/Linux distro), delete the .txt at the end of the file so it is a .conf
Now you can run the docker run command and it should be working. (for some reasons I did not succeed to run a docker-compose.yml via Portainer)
docker run --privileged -d \
-v /srv/dev-disk-by-label-mediadisk/databases/downloads/:/downloads \
-v /srv/dev-disk-by-label-mediadisk/config/qbitorrentvpn/:/config \
-e "VPN_ENABLED=yes" \
-e "LAN_NETWORK=192.168.1.0/24" \
-e "NAME_SERVERS=9.9.9.9,149.112.112.112" \
-e "VPN_USERNAME=XXXXX" \
-e "VPN_PASSWORD=XXXXX" \
-e "PUID=XXX" \
-e "PGID=XXX" \
-p 8080:8080 \
-p 8999:8999 \
-p 8999:8999/udp \
--sysctl net.ipv6.conf.all.disable_ipv6=0 \
--name qbittorrent-openvpn \
chrisjohnson00/qbittorrent-openvpn:latest
Replace the XXX by the corresponding inputs from your raspberry and AirVPN login.
Hope this will help people !