• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting remotely connected via openvpn - local but need it to be treated as remote

    Pages (4): « Previous 1 2 3 4 Next »

     
    • 0 Vote(s) - 0 Average

    remotely connected via openvpn - local but need it to be treated as remote

    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #21
    2024-12-12, 03:28 PM (This post was last modified: 2024-12-12, 03:30 PM by TheDreadPirate. Edited 3 times in total.)
    This is the log I am looking for.

    Code:
    [2024-12-12 15:14:51.675 +00:00] [INF] User policy for "chenks". EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
    [2024-12-12 15:14:51.675 +00:00] [INF] RemoteClientBitrateLimit: 8000000, RemoteIP: "141.101.98.214", IsInLocalNetwork: False

    As for still being remote when local, you need to enable "NAT loopback" on your router. This will tell the router to keep traffic local if a URL resolves to itself or another local device.

    Your other option is to add custom DNS entries in your router that resolve your URL to the local IP of your jellyfin server.

    You will need to add your router as a known proxy for NAT loopback. That field can support more than one address, comma separated.

    You should also check if there is a setting in Infuse to NOT directly access media and to use Jellyfin's playback api.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    chenks
    Offline

    Member

    Posts: 52
    Threads: 8
    Joined: 2024 Feb
    Reputation: 0
    Country:United Kingdom
    #22
    2024-12-12, 03:35 PM
    (2024-12-12, 03:28 PM)TheDreadPirate Wrote: This is the log I am looking for.

    Code:
    [2024-12-12 15:14:51.675 +00:00] [INF] User policy for "chenks". EnablePlaybackRemuxing: True EnableVideoPlaybackTranscoding: True EnableAudioPlaybackTranscoding: True
    [2024-12-12 15:14:51.675 +00:00] [INF] RemoteClientBitrateLimit: 8000000, RemoteIP: "141.101.98.214", IsInLocalNetwork: False

    As for still being remote when local, you need to enable "NAT loopback" on your router.  This will tell the router to keep traffic local if a URL resolves to itself or another local device.

    Your other option is to add custom DNS entries in your router that resolve your URL to the local IP of your jellyfin server.

    You will need to add your router as a known proxy for NAT loopback.  That field can support more than one address, comma separated.

    You should also check if there is a setting in Infuse to NOT directly access media and to use Jellyfin's playback api.

    hmmm, NAT Reflection was set to "system default" for the 2 port foward rules in opnsense for port 80 and 443.
    i changed them both to "Enabled" and applied the changes.

    tested Swiftin whilst local and it still applied the remote limiting rule to playback.
    was the part about adding the router IP as a known proxy applicable to that or just if doing custom DNS entries?
    Jellyfin 10.10.6 (Proxmox LXC)
    Ubuntu 24.04 LTS
    Intel i3 12100
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #23
    2024-12-12, 03:46 PM
    I, personally, prefer custom DNS entries. This way if your Internet connection goes out, DNS resolution for your jellyfin address will still work.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    1
    chenks
    Offline

    Member

    Posts: 52
    Threads: 8
    Joined: 2024 Feb
    Reputation: 0
    Country:United Kingdom
    #24
    2024-12-12, 04:36 PM
    (2024-12-12, 03:46 PM)TheDreadPirate Wrote: I, personally, prefer custom DNS entries.  This way if your Internet connection goes out, DNS resolution for your jellyfin address will still work.

    ok i've added a host override in opensense for the domain (and subdomain) that i have.
    set the override to point to my nginx local IP address (i assume that's correct).

    i flushed the DNS on my laptop and now when pinging jellyfin.fubar.xyz is resolves to the local IP of nginx (previously it resolved to the WAN IP of cloudlfare), so i assume that is working correctly.

    did you say i also then had to add the IP of my router to the known proxies in jellyfin as well? (which would be 192.168.50.1)

    if that is correct i'll then test again using either Jellyfin Mobile or Swiftfin (both locally and remote) to see what happens.

    i've also posted the question about endpoints etc over on the Infuse forum to see what they come back with.
    Jellyfin 10.10.6 (Proxmox LXC)
    Ubuntu 24.04 LTS
    Intel i3 12100
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #25
    2024-12-12, 05:46 PM
    I THINK you only have to add the router to the known proxies for NAT loopback. I don't think you do for custom DNS entries since the router isn't acting as a proxy in that situation. Only in the NAT loopback situation.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    chenks
    Offline

    Member

    Posts: 52
    Threads: 8
    Joined: 2024 Feb
    Reputation: 0
    Country:United Kingdom
    #26
    2024-12-12, 07:12 PM
    Testing now seems to be doing what it should when using jellyfin mobile - playing full bitrate when local and restricted bitrate to 8Mbps when remote. This is when using the domain name with both connection methods.

    Now I just need to try and get infuse to play ball.

    Do I need to put in any extra protection now that my jellyfin instance is exposed to the Internet? Or is routing the domain name via cloudflare to nginx enough protection?
    Jellyfin 10.10.6 (Proxmox LXC)
    Ubuntu 24.04 LTS
    Intel i3 12100
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #27
    2024-12-12, 07:22 PM
    Using cloudflare to proxy or tunnel video services is against their TOS. Nginx is the "protection". If you want to go the extra mile, you can setup fail2ban.

    https://jellyfin.org/docs/general/networking/fail2ban/
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    chenks
    Offline

    Member

    Posts: 52
    Threads: 8
    Joined: 2024 Feb
    Reputation: 0
    Country:United Kingdom
    #28
    2024-12-12, 07:44 PM
    Oops, never knew that, I just used it as an extra level of protection so that my own wan ip was “hidden”.

    I don’t plan to use remote very often (probably just when on holidays), so will see what happens. Worst case I just have to set the nameservers back to the domain registrar and add the required A records.
    Jellyfin 10.10.6 (Proxmox LXC)
    Ubuntu 24.04 LTS
    Intel i3 12100
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,374
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #29
    2024-12-12, 07:52 PM
    If your domain is set to "DNS only" in cloudflare, that is fine. It's only when you flip the switch to "Proxied" that it is a problem.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    chenks
    Offline

    Member

    Posts: 52
    Threads: 8
    Joined: 2024 Feb
    Reputation: 0
    Country:United Kingdom
    #30
    2025-01-21, 03:55 PM
    (2024-12-12, 03:08 PM)TheDreadPirate Wrote: I don't have any Apple devices and have never used Infuse.  But I am interpreting the logs as Infuse directly accessing the media, perhaps via the "download" endpoint instead of the playback endpoints.  This means there are no checks for "locality", no application of bit rate controls, no checks for client compatibility and transcoding.

    ok so i've not had much luck getting the Infuse dev to answer the question i've asked about which endpoint they are using, be it "download" or "playback".
    is there anything in the logs that would tell me this?

    this is my post over on the infuse forum about this
    https://community.firecore.com/t/jellyfi...lity/53047
    Jellyfin 10.10.6 (Proxmox LXC)
    Ubuntu 24.04 LTS
    Intel i3 12100
    Pages (4): « Previous 1 2 3 4 Next »

    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode