Gluetun and AIRVPN

Questions about qBittorrent or Gluetun (VPN).
Post Reply
kromz
Posts: 4
Joined: Fri Aug 01, 2025 12:23 am
Bulgaria

Gluetun and AIRVPN

Post by kromz »

swear to goodness I have tried a million different iterations. I literally need
"EXPLAIN TO ME LIKE I AM 5 - how to setup vpn in YAMS."

I tried wireguard.

Failed to get qBittorrent IP from any endpoint

I know I am missing something inherently basic.

I just cant seem to get past the failure message.

I have copied and pasted every single option that I can think of to make this work. I have taken examples from airvpn's page as well as YAMS walkthrough for vpns including AIRVPN

Here is a copy of my YAML for GLUETUN

Someone please put me out of my misery :P

Gluetun is our VPN, so you can download torrents safely

gluetun:
image: qmcgaw/gluetun:v3
container_name: gluetun
cap_add:
- NET_ADMIN
devices:
- /dev/net/tun:/dev/net/tun
ports:
- 8888:8888/tcp # HTTP proxy
- 8388:8388/tcp # Shadowsocks
- 8388:8388/udp # Shadowsocks
- 8003:8000/tcp # Admin
- 8080:8080/tcp # gluetun
- 8081:8081/tcp # gluetun
environment:
- VPN_SERVICE_PROVIDER=airvpn
- VPN_TYPE=wireguard
- WIREGUARD_PRIVATE_KEY=REDACTED
- WIREGUARD_PUBLIC_KEY=REDACTED
- WIREGUARD_PRESHARED_KEY=REDACTED
- WIREGUARD_ADDRESSES=1REDACTED
- SERVER_COUNTRIES=Europe
- OPENVPN_CIPHERS=AES-256-GCM
- PUID=1000
- PGID=1000
- TZ=America/New_York

Code: Select all

  #- VPN_PORT_FORWARDING=on
  #- VPN_PORT_FORWARDING_PROVIDER=airvpn
  #- PORT_FORWARD_ONLY=on
  - OPENVPN_USER=REDACTED
  - OPENVPN_PASSWORD=REDACTED
  - OPENVPN_CIPHERS=AES-256-GCM
  #- PORT_FORWARD_ONLY=off
  - VPN_PORT_FORWARDING=off
  - FIREWALL_OUTBOUND_SUBNETS=172.60.0.0/24
restart: unless-stopped
networks:
  yams_network:
    ipv4_address: 172.60.0.18
kromz
Posts: 4
Joined: Fri Aug 01, 2025 12:23 am
Bulgaria

Re: Gluetun and AIRVPN

Post by kromz »

FYI I did search.... I did read.... I did triple check... I am missing something inherently stupid I am sure

TIA!!!

User avatar
rogs
Site Admin
Posts: 405
Joined: Mon Oct 23, 2023 12:53 pm
Location: Montevideo, Uruguay
Gender:
Contact:
Uruguay

Re: Gluetun and AIRVPN

Post by rogs »

Hey @kromz!

Did you read the documentation for AirVPN? I'm guessing that you didn't, because there are two things I see are incorrect:

  • AirVPN doesn't need a WIREGUARD_PUBLIC_KEY.
  • "Europe" is not a valid country for SERVER_COUNTRIES.

Please, read the docs for your VPN.

Cheers!

Roger.

YAMS Creator

E: roger (at) rogs.me. Fuck you, email bots.
W: https://rogs.me
gpg: curl -sL https://rogs.me/rogs.txt | gpg --import
fingerprint: ADDF BCB7 8B86 8D93 FC4E 3224 C7EC E9C6 C36E C2E6


Also, I love cats :mrgreen:

Pirate jet, pirate jet
kromz
Posts: 4
Joined: Fri Aug 01, 2025 12:23 am
Bulgaria

Re: Gluetun and AIRVPN

Post by kromz »

i did i promise.... i really tried every iteration of options and kept getting errors so i tried this version and it failed...

I will take another look and try again.

i think my issue is that i am able to run gluetun on its own in docker with airvpn .....

anyway thanks for the reply.... i dont like to waste people's time .... but sometimes i just dont get stuff :)

best,
Paul

User avatar
rogs
Site Admin
Posts: 405
Joined: Mon Oct 23, 2023 12:53 pm
Location: Montevideo, Uruguay
Gender:
Contact:
Uruguay

Re: Gluetun and AIRVPN

Post by rogs »

No worries Paul! We are all learning here :mrgreen:

Let me know if you tried things our and need more help

Cheers!

Roger.

YAMS Creator

E: roger (at) rogs.me. Fuck you, email bots.
W: https://rogs.me
gpg: curl -sL https://rogs.me/rogs.txt | gpg --import
fingerprint: ADDF BCB7 8B86 8D93 FC4E 3224 C7EC E9C6 C36E C2E6


Also, I love cats :mrgreen:

Pirate jet, pirate jet
kromz
Posts: 4
Joined: Fri Aug 01, 2025 12:23 am
Bulgaria

Re: Gluetun and AIRVPN

Post by kromz »

see i knew it was something basic...........like really basic. :oops:
THANK YOU :lol: :D

THANKS AGAIN ROGER!!!!!!!!!!!!!!!!!!!!!!!

Post Reply