Jump to content
Not connected, Your IP: 18.216.93.197
Sign in to follow this  
James8795

AirVPN wireguard through gluetun and portainer

Recommended Posts

Hi there,

I am fairly new to this and trying to deploy gluetun using airvpn and wireguard through portainer.

Every time I attempt to deploy the stack I receive gluetun container is unhealthy error. Config below:

  gluetun:
    image: qmcgaw/gluetun
    container_name: gluetun
    cap_add:
      - NET_ADMIN
    devices:
      - /dev/net/tun:/dev/net/tun # If running on an LXC see readme for more info.
    networks:
      servarrnetwork:
        ipv4_address: 192.168.20.2
    ports:
      - 22360:22360 # airvpn forwarded port (https://airvpn.org/ports/)
      - 22360:22360/udp
      - 8080:8080 # qbittorrent web interface
      - 6881:6881 # qbittorrent torrent port
      - 6789:6789 # nzbget
      - 9696:9696 # prowlarr
    volumes:
      - /gluetun:/gluetun
    environment:
      - VPN_SERVICE_PROVIDER=airvpn
      - VPN_TYPE=wireguard
      - HEALTH_VPN_DURATION_INITIAL=120s
      - FIREWALL_VPN_INPUT_PORTS=22360 # mandatory, airvpn forwarded port
      - WIREGUARD_PUBLIC_KEY=xxx # copy from config file
      - WIREGUARD_PRIVATE_KEY=xxx # copy from config file
      - WIREGUARD_PRESHARED_KEY=xxx # copy from config file
      - WIREGUARD_ADDRESSES=10.191.106.245/32 # copy from config file
      - SERVER_COUNTRIES=New Zealand # optional, comma seperated list, no spaces after commas, make sure it matches the config you created

Any help would be greatly appreciated

Share this post


Link to post
@James8795

Hello!

Can you please publish the complete container's log taken after the problem has occurred? As a first "blind" attempt to resolve the situation, please test again with a WireGuard interface MTU set to 1280 bytes. Set the WIREGUARD_MTU environment variable to 1280 in the environment: section:
environment:
      - VPN_SERVICE_PROVIDER=airvpn
      - VPN_TYPE=wireguard
      - HEALTH_VPN_DURATION_INITIAL=120s
      - WIREGUARD_MTU=1280
...
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...