qdm12 / gluetun

VPN client in a thin Docker container for multiple VPN providers, written in Go, and using OpenVPN or Wireguard, DNS over TLS, with a few proxy servers built-in.
https://hub.docker.com/r/qmcgaw/gluetun
MIT License
6.71k stars 331 forks source link

Bug: gulten ignoring wireguard #2237

Closed Dialgatrainer02 closed 2 months ago

Dialgatrainer02 commented 2 months ago

Is this urgent?

No

Host OS

arch but will be changed to alpine later

CPU arch

x86_64

VPN service provider

ProtonVPN

What are you using to run the container

docker-compose

What is the version of Gluetun

Running version v3.38.0 built on 2024-03-25T15:53:33.983Z (commit b3ceece)

What's the problem 🤔

gluten looks for openvpn config and ignores wg0.conf i want to source the file instead of envars as it allows me to switch proton vpn servers easier

Share your logs (at least 10 lines)

========================================
========================================
=============== gluetun ================
========================================
=========== Made with ❤️ by ============
======= https://github.com/qdm12 =======
========================================
========================================

Running version v3.38.0 built on 2024-03-25T15:53:33.983Z (commit b3ceece)

🔧 Need help? https://github.com/qdm12/gluetun/discussions/new
🐛 Bug? https://github.com/qdm12/gluetun/issues/new
✨ New feature? https://github.com/qdm12/gluetun/issues/new
☕ Discussion? https://github.com/qdm12/gluetun/discussions/new
💻 Email? quentin.mcgaw@gmail.com
💰 Help me? https://www.paypal.me/qmcgaw https://github.com/sponsors/qdm12
2024-04-24T20:20:30Z INFO [routing] default route found: interface eth0, gateway 172.20.0.1, assigned IP 172.20.0.2 and family v4
2024-04-24T20:20:30Z INFO [routing] local ethernet link found: eth0
2024-04-24T20:20:30Z INFO [routing] local ipnet found: 172.20.0.0/16
2024-04-24T20:20:30Z INFO [routing] local ipnet found: fe80::/64
2024-04-24T20:20:30Z INFO [firewall] enabling...
2024-04-24T20:20:30Z INFO [firewall] enabled successfully
2024-04-24T20:20:31Z INFO [storage] merging by most recent 19476 hardcoded servers and 19476 servers read from /gluetun/servers.json
2024-04-24T20:20:31Z ERROR VPN settings: OpenVPN settings: custom configuration file: filepath is missing
2024-04-24T20:20:31Z INFO Shutdown successful

Share your configuration

version: "3.9"
name: media-stack
services:

  # To use/enable VPN, Run this compose file with --profile=vpn. Its highly recommended to use VPN.
  vpn:
    ## Read https://github.com/qdm12/gluetun-wiki/tree/main/setup/providers for details on configuring VPN for your service provider.
    profiles: ["vpn"]
    container_name: vpn
    image: qmcgaw/gluetun:v3.38.0
    cap_add:
      - NET_ADMIN
    environment:
      - VPN_SERVICE_PROVIDER=custom
      - VPN_TYPE=wireguard
      - VPN_PORT_FORWARDING=on
      - VPN_PORT_FORWARDING_PROVIDER=protonvpn
      - VPN_PORT_FORWARDING_STATUS_FILE=/gluetun/forwarded_port
      - UPDATER_PERIOD=24h
    ## Enable volume if VPN_SERVICE_PROVIDER=custom and VPN_TYPE=openvpn is used
    volumes:
    - "./wg0.conf:/gluetun/wireguard/wg0.conf"

    networks:
      - mynetwork

    # Uncomment/enable below ports if VPN is used/enabled
    ports:
       # qbittorrent ports
      - 5080:5080
      - 6881:6881
      - 6881:6881/udp
       # prowlarr ports
      - 9696:9696
    restart: "unless-stopped"

extra info

this is just s snippet of the compose file and this is my first time using gluten or a vpn properly

github-actions[bot] commented 2 months ago

@qdm12 is more or less the only maintainer of this project and works on it in his free time. Please:

Dialgatrainer02 commented 2 months ago

it foud it now when i run the entire compose instead of just vpn service

github-actions[bot] commented 2 months ago

Closed issues are NOT monitored, so commenting here is likely to be not seen. If you think this is still unresolved and have more information to bring, please create another issue.

This is an automated comment setup because @qdm12 is the sole maintainer of this project which became too popular to monitor issues closed.