Jump to content
Not connected, Your IP: 216.73.216.120
charoki60

Expose Jellyfin to internet through AirVPN port forwarding

Recommended Posts

Hello!

I'm trying to expose Jellyfin to internet through AirVPN port forwarding, but I can't for the life of me make it to work.

You can see the gluetun stack I'm using bellow

45554 is the port I'm trying to use for Jellyfin.
42148 is the one I'm using for Qbittorrent. You can ignore this, it's working perfectly.

I have no idea what I could be doing wrong, tried everything that came to my mind.

In the AirVPN => Client Area => Forwarded Port, I tried to bind 45554 to "local port" 8096, without success.

I'd really appreciate any help,

Thanks for your time!
 

services:
  gluetun:
    image: qmcgaw/gluetun
    container_name: gluetun
    cap_add:
      - NET_ADMIN
    devices:
      - /dev/net/tun:/dev/net/tun
    environment:
      - VPN_SERVICE_PROVIDER=airvpn
      - VPN_TYPE=wireguard
      - WIREGUARD_PRIVATE_KEY=xxx
      - WIREGUARD_PRESHARED_KEY=xxx
      - WIREGUARD_ADDRESSES=xxx
      - SERVER_REGIONS=Europe
      - FIREWALL_VPN_INPUT_PORTS=45554,42148
    ports:
      - 8080:8080 # Qbittorrent1
      - 42148:42148 # Qbittorrent1 port forwarding
      - 42148:42148/udp # Qbittorrent1 port forwarding
      - 8181:8181 # Qbittorrent2
      - 6881:6881 # Qbittorrent2 port
      - 6881:6881/udp # Qbittorrent2 port
      - 8096:8096 # Jellyfin
      - 45554:45554



  qbittorrent:
    image: lscr.io/linuxserver/qbittorrent:latest
    container_name: qbittorrent1
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Etc/UTC
      - WEBUI_PORT=8080
      - TORRENTING_PORT=42148
    volumes:
      - /home/charly/container/qbittorrent1/appdata/:/config
      - /home/charly/Téléchargements/:/downloads
    network_mode: 'service:gluetun'
    depends_on:
      - gluetun
    restart: unless-stopped



  qbittorrent2:
    image: qbittorrentofficial/qbittorrent-nox:latest
    container_name: qbittorrent2
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Etc/UTC
      - TORRENTING_PORT=6881
      - QBT_LEGAL_NOTICE=confirm
      - QBT_VERSION=latest
      - QBT_WEBUI_PORT=8181
    volumes:
      - /home/charly/container/qbittorrent2/appdata/:/config
      - /home/charly/Téléchargements/:/downloads
    network_mode: 'service:gluetun'
    depends_on:
      - gluetun
    restart: unless-stopped



  jellyfin:
    image: jellyfin/jellyfin
    container_name: jellyfin
    network_mode: 'service:gluetun'
    volumes:
      - /home/charly/container/jellyfin/config:/config
      - /home/charly/container/jellyfin/cache:/cache
      - /home/charly/container/jellyfin/movies:/movies
      - /home/charly/container/jellyfin/tvshows:/tvshows
    restart: 'unless-stopped'
    environment:
      - TZ=Etc/UTC
      - PUID=1000
      - PGID=1000

Share this post


Link to post

HI guys,
i was tryed do this with rhis video https://www.youtube.com/watch?v=LV3mcfqNgcQ , but still not working.
Here is my compose. Maybe someone figure it out.
 

Quote
services:
  jellyfin:
    image: jellyfin/jellyfin
    container_name: jellyfin
    ports:
      - 8097:8097/tcp
      # - 7359:7359/udp 
    volumes:
      - ./jellyfin-config:/config
      - ./jellyfin-cache:/cache
      - /mnt/#/media:/media
    restart: unless-stopped
    environment:
      - PUID=568
      - PGID=568
      - TZ=Europe/Warsaw
      - /dev/dri:/dev/dri
  gluetun:
    image: qmcgaw/gluetun
    container_name: gluetun2
    cap_add:
      - NET_ADMIN
    devices:
      - /dev/net/tun
    ports:
      # Expose qBittorrent's web UI and torrent ports through VPN
      - #airvpn_port:8097 # Jellyfin
    volumes:
      - ./gluetun:/gluetun
    environment:
      - VPN_TYPE=wireguard
      - VPN_SERVICE_PROVIDER=airvpn
      - TZ=#
      - WIREGUARD_PRIVATE_KEY=#
      - WIREGUARD_PRESHARED_KEY=#
      - WIREGUARD_ADDRESSES=#
      - VPN_LAN_NETWORK=#
    sysctls:
      - net.ipv4.conf.all.src_valid_mark=1
      - net.ipv6.conf.all.disable_ipv6=1
    restart: unless-stopped
    depends_on:
      - jellyfin
networks: {}
When i add end point manualy in compose its drop error - "ERROR [vpn] finding a VPN server: target IP address not found: in 250 filtered connections".
Without Endpoint it showing evething is healthy but when i check "curl ifconfig.io" is some ipv6, but no mine end point ipv4.
When i click into jellyfin port its now show jellfin gui.
I`not using 8096 because its busy by running jellyfin serwer.
Jellyfin serwer 8096 i have on Truenas scale
Jellyfin serwer 8097 i wanna run on Truenas->Dockge
I have already qbittorrent on Docke and its working fine.
God bless you all for help;)


 

Share this post


Link to post

Hello there!
Is there a reason to use Jellyfin through the VPN and port forward it?

The most common ways of sharing Jellyfin/Plex would be to have a reverse proxy on your network like Nginx Proxy Manager and accessing it from there if you are outside your home network.

Br Cbkosl

Share this post


Link to post
@Bobo90

Hello!

Your compose file lacks the proper setting of the FIREWALL_VPN_INPUT_PORTS environment variable. If you set it on the command line options fine, but if not you must add it and set it properly. The FIREWALL_VPN_INPUT_PORTS environment variable in Gluetun specifies a comma-separated list of ports that must be allowed through the firewall. Without it, packets forwarded by the VPN server will be dropped by GlueTun firewall.

About this error:
"ERROR [vpn] finding a VPN server: target IP address not found: in 250 filtered connections".

you should be able to resolve it by reading the documentation specific for AirVPN:
https://github.com/qdm12/gluetun-wiki/blob/main/setup/providers/airvpn.md

Kind regards

 

Share this post


Link to post
@cbkosl
I have CGNAT internet. At this moment i get to my web with tailscale and its fine, but i want to share my media with family.
@Staff

i ad "FIREWALL_VPN_INPUT_PORTS=#port_from_airvpn" and nothing change. 
i read topic from your link and nothing change, same error.

 

 

Share this post


Link to post
4 hours ago, Bobo90 said:

read topic from your link and nothing change, same error.


Hello!

Reading it is not sufficient, then you have to change your configuration accordingly. How did you add the end point (destination VPN server)?

Kind regards
 

Share this post


Link to post
 i added it to compose
Quote
environment:
- WIREGUARD_ENDPOINT_IP=#ip
 - WIREGUARD_ENDPOINT_PORT=#port
Few attemps ago i tried with wg0.conf but docker didnt read it
 

 

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

×
×
  • Create New...