Jump to content
Not connected, Your IP: 216.73.216.49
Sign in to follow this  
opperska

Gluetun Ignores Specified AirVPN Endpoint Server in Docker Setup

Recommended Posts

I wanted to share my issue regarding the setup of Gluetun. Here’s how I have it configured: I have Qbittorrent set up to port forward the listening port, excluding the WebUI, through Gluetun to AirVPN.

The problem I'm encountering is that when I connect to AirVPN, it randomizes the server, even though I have specified a server in my Docker Compose file.

While port forwarding is functioning correctly, Gluetun still connects me to a different server, despite it being set to the Taiwan Endpoint IP at the Sulafat server.

Anyone can help me to resolve my issue to connect to the Taiwan Endpoint only?

Thank you in advance to anyone who can assist me with this issue! See below my docker compose setup.

PS: I am using NGINX to access my Qbittorrent WebUI even though it is connected to VPN


services:
  gluetun:
    image: qmcgaw/gluetun
    container_name: gluetun
    cap_add:
      - NET_ADMIN
    devices:
      - /dev/net/tun:/dev/net/tun
    ports:
      - 8080:8080
      - 54801:54801/tcp
      - 54801:54801/udp
    environment:
      - VPN_SERVICE_PROVIDER=airvpn
      - VPN_TYPE=wireguard
      - WIREGUARD_PRIVATE_KEY=<redacted>
      - WIREGUARD_PUBLIC_KEY=<redacted>
      - WIREGUARD_PRESHARED_KEY=<redacted>
      - WIREGUARD_ADDRESSES=<redacted>/32
      - FIREWALL_VPN_INPUT_PORTS=<redacted>
      - WIREGUARD_ENDPOINT_IP= REDACTED but the endpoint IP is here came from a generated wireguard config, enabled for Sulafat server
      - WIREGUARD_ENDPOINT_PORT=<redacted>
    restart: unless-stopped
  qbittorrent:
    image: linuxserver/qbittorrent
    container_name: qbittorrent
    network_mode: service:gluetun
    depends_on:
      gluetun:
        condition: service_healthy
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=<redacted>
      - WEBUI_PORT=8080
      - TORRENTING_PORT=<redacted>
    volumes:
<redacted>
    restart: unless-stopped
  nginx:
    image: nginx:alpine
    container_name: nginx-qbittorrent
    network_mode: host
    volumes:
      <redacted>
    restart: unless-stopped
networks: {}
 

Share this post


Link to post
18 hours ago, opperska said:

Anyone can help me to resolve my issue to connect to the Taiwan Endpoint only?


Hello!

When VPN_SERVICE_PROVIDER is set to airvpn the optional environment variables deciding the end point are:
  • SERVER_COUNTRIES: Comma separated list of countries
  • SERVER_REGIONS: Comma separated list of regions
  • SERVER_CITIES: Comma separated list of cities
  • SERVER_NAMES: Comma separated list of server names
  • SERVER_HOSTNAMES: Comma separated list of server hostnames
https://github.com/qdm12/gluetun-wiki/blob/main/setup/providers/airvpn.md

If you feel that this is a bug or unexpected behavior (we see your point: WIREGUARD_ENDPOINT_IP should not be ignored when a non-generic VPN provider is selected, as it apparently happens in your case), the matter should be reported to GlueTun's developer. Please keep in mind that GlueTun is fully compatible and well integrated with AirVPN but it is not developed by AirVPN so every issue should be reported properly also here: https://github.com/qdm12/gluetun-wiki/issues

Kind regards
 

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Security Check
    Play CAPTCHA Audio
    Refresh Image
Sign in to follow this  

×
×
  • Create New...