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

ANSWERED 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

Hi there,

I ended up just installing everything I needed on windows 10 instead and everything is working as intended :)

Happy for this thread to be closed :)

Share this post


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

×
×
  • Create New...