Garthski

joined 1 year ago
[–] Garthski@lemmy.world 0 points 1 year ago (1 children)

This is what I do but with qbittorrent and ProtonVPN. Just put the port details in the gluetun section and in the qbittorrent section put in network_mode: "service:gluetun". Works just fine so far for me.

https://github.com/qdm12/gluetun/wiki/Connect-a-container-to-gluetun

***
version: "2.1"
services:
  gluetun:
    image: qmcgaw/gluetun
    container_name: gluetun
    cap_add:
      - NET_ADMIN
    devices:
      - /dev/net/tun:/dev/net/tun
    network_mode: bridge
    ports:
      - 8081:8000/tcp # http control
      - 8888:8888/tcp # HTTP proxy
      - 8080:8080/tcp # qBittorrent
      - 9117:9117/tcp # Jackett
    volumes:
      - /docker/gluetun:/gluetun
    environment:
      - VPN_SERVICE_PROVIDER=protonvpn
      - TZ=Europe/London
      - SERVER_COUNTRIES=Netherlands
      - OPENVPN_USER=USERNAME
      - OPENVPN_PASSWORD=PASSWORD
      - HTTPPROXY=on
      - HTTPPROXY_STEALTH=on
      - HTTPPROXY_USER=username
      - HTTPPROXY_PASSWORD=password
    restart: always

  qbittorrent:
    image: ghcr.io/linuxserver/qbittorrent
    container_name: qbittorrent
    network_mode: "service:gluetun"
    environment:
      - PUID=1000
      - PGID=100
      - TZ=Europe/London
      - WEBUI_PORT=8080
      - DOCKER_MODS=arafatamim/linuxserver-io-mod-vuetorrent
    volumes:
      - /docker/qbittorrent:/config
      - /srv/mergerfs/downloads/torrents:/downloads
    restart: always
 

Hi all,

Apologies if this isn't the correct place to ask, if not just point me in the right direction.

Hopefully someone can help me with this as i've been struggling for a while now. Previously i've been using the free Oracle VPS to proxy some services that are being ran from my local server to access them without tailscale but am now looking to host some stuff myself on it like FreshRSS.

I'm running Ubuntu 22.04.2 LTS (GNU/Linux 5.15.0-1037-oracle aarch64) on the VPS, Nginx Proxy Manager and using Cloudflare for domain stuff.

The issue is, whenever i try to access the URL of something set up on the VPS with the IP on NPM set to either the private IP, localhost, VPS tailscale IP or 127.0.0.1, i get a 502 error from cloudflare, however, if i set that same proxy host to the tailscale IP and port of something on my local server, it works fine, which suggests to me it's something LAN related on the VPS i need to sort but i just can't figure out what.

Anyone got any ideas?