Jump to content
Not connected, Your IP: 3.144.108.220
Sign in to follow this  
OnEyeVPN

ANSWERED random connections to different cities with a specific city vpn

Recommended Posts

Hi hoping someone can guide me here.  when i've connected with the specific credentials via Openwrt, Linux server or client, i always connect to the correct city and if i reconnect quickly enough, i receive the same IP address. 
but i been having issues with Truenas server and connecting to private tracking sites. i need to have the same IP address with Prowlarr and my torrent. It would be ideal to have my browser as well, so if anyone knows how I can get Tailscale with the exit node working, that would be great.  Anyway, i am using Dockge to install qbit, prowlarr and gluetun. The VPN connection works great, ie it connects, and i have access to both apps. They communicate with each other perfectly. Also, i am using the proper port with Airvpn. (love that service)  can someone please let me know what i can fix in the stack below to improve this id be very happy. :)   
so like i said the stack below works but everytime i reconnect i connect to a different country/city not even close to the IP range specified. this is supposed to be Alhena Tornonto but im  connecting to 185.200.116.211 184.75.221.195 AND 146.70.76.35 those are only 3 of the many different address i get when i reconnect.

services:
  gluetun:
    image: qmcgaw/gluetun
    container_name: gluetun
    # Hostname to use for container, required in some instances for the rest of the stack to each other endpoints 
    hostname: gluetun
    # line above must be uncommented to allow external containers to connect.
    # See https://github.com/qdm12/gluetun-wiki/blob/main/setup/connect-a-container-to-gluetun.md#external-container-to-gluetun
    cap_add:
      - NET_ADMIN
    devices:
      - /dev/net/tun:/dev/net/tun
    ports:
      - 6881:6881
      - 6881:6881/udp
      - 8085:8085 # qbittorrent
      - 9696:9696 # Prowlarr
    volumes:
      - /mnt/mediapool/docker/stacks/gluetun:/gluetun
    environment:
      - VPN_TYPE=wireguard
      - VPN_SERVICE_PROVIDER=airvpn
      - WIREGUARD_ENDPOINT_IP=162.219.176.5
      - WIREGUARD_PUBLIC_KEY=pubkey
      - WIREGUARD_PRIVATE_KEY=privatekey
      - WIREGUARD_PRESHARED_KEY=presharedkey
      - WIREGUARD_ADDRESSES=10.135.235.221/32
      - TZ=America/Toronto
    restart: always
  qbittorrent:
    image: lscr.io/linuxserver/qbittorrent
    container_name: qbittorrent
    network_mode: service:gluetun
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=America/Toronto
      - WEBUI_PORT=8085
    volumes:
      - /mnt/mediapool/docker/stacks/qbit:/config
      - /mnt/mediapool/media/qbit/downloads/:/downloads
    depends_on:
      - gluetun
    restart: always
  prowlarr:
    image: lscr.io/linuxserver/prowlarr:latest
    container_name: prowlarr
    network_mode: service:gluetun
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=America/Toronto
    volumes:
      - /mnt/mediapool/docker/stacks/prowlarr/data:/config
    restart: unless-stopped
networks: {}

 

Share this post


Link to post

Hello!

For the readers' comfort, we paste here the solution, that you confirmed as working, suggested by the support team on your ticket

Kind regards

=====

Hello and thank you for your choice!

Thank you for your great feedback.

 

GlueTun supports AirVPN and bypasses the endpoint specified in the WireGuard profile, hence the problem you experience occurs. Therefore, you should make use of its environment variables to make sure that it connects always to the same server:
SERVER_NAMES: Comma separated list of server names

Example:
SERVER_NAMES=Angetenar

or always to the same city (but potentially to different servers if that city offers multiple servers):
SERVER_CITIES: Comma separated list of cities

Example:
SERVER_CITIES=Toronto

 

You can add the above in the compose file. Please check the documentation here:
https://github.com/qdm12/gluetun-wiki/blob/main/setup/providers/airvpn.md

Kind regards

AirVPN Support Team


 

Share this post


Link to post
Guest
This topic is now closed to further replies.
Sign in to follow this  

×
×
  • Create New...