Jump to content
Not connected, Your IP: 18.191.27.94
adminnas

ANSWERED Remote access to Emby behind Airvpn

Recommended Posts

Posted ... (edited)

Hi, I'm trying to set up a Docker with Gluetun and another one running Emby to do remote access to the Emby server. I managed to make it work to access my server remotely, however, the speed seems to be super slow. I'm having a 1000/1000Mb network, but the maximum up speed when it was playing was 1.5 MB/s. Is there some potential way to optimize? Or is it just my network's problem?
The following is my Docker Compose file. Has anyone tried to use AirVPN's port forwarding to access Emby remotely? Can anyone please help me check if there's something wrong with my setup?
 

services:
gluetun_emby:
image: qmcgaw/gluetun:latest
container_name: gluetun_emby
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=9268
- FIREWALL_OUTBOUND_SUBNETS=192.168.0.0/16
- TZ=Europe/Copenhagen
ports:
- 8096:8096
- 8920:8920
- 9268:9268
restart: unless-stopped
emby:
image: emby/embyserver
container_name: embyserver
network_mode: "service:gluetun_emby"
environment:
- UID=1000
- GID=10
- TZ=Europe/Copenhagen
volumes:
- ./programdata:/config
- /volume1/BitDownload/Link/Movies:/data/Movies
- /volume1/BitDownload/Link/TVSeries:/data/TVSeries
devices:
- /dev/dri:/dev/dri
restart: on-failure
Edited ... by adminnas

Share this post


Link to post

Hello!

Please try various WireGuard's interface MTU, starting from 1280 bytes and slowly increasing it, and check whether you have a specific value which improves the upload speed. GlueTun's environment variable setting WireGuard interface MTU is WIREGUARD_MTU. You can set it in the compose file environment: section. Remember to re-start the container each time you change the setting. Example:

environment:
- UID=1000
- GID=10
- TZ=Europe/Copenhagen
- WIREGUARD_MTU=1280

Although you are probably in the EU, where such behavior would be illegal except when forced by congestion or exceptional causes, please note that some ISPs could cap UDP in upload even on symmetric lines (we mention UDP because WireGuard works over UDP). Please check the "traffic management" policy of your ISP, just in case.

Kind regards
 

Share this post


Link to post
1 hour ago, Staff said:

Hello!

Please try various WireGuard's interface MTU, starting from 1280 bytes and slowly increasing it, and check whether you have a specific value which improves the upload speed. GlueTun's environment variable setting WireGuard interface MTU is WIREGUARD_MTU. You can set it in the compose file environment: section. Remember to re-start the container each time you change the setting. Example:


environment:
- UID=1000
- GID=10
- TZ=Europe/Copenhagen
- WIREGUARD_MTU=1280

Although you are probably in the EU, where such behavior would be illegal except when forced by congestion or exceptional causes, please note that some ISPs could cap UDP in upload even on symmetric lines (we mention UDP because WireGuard works over UDP). Please check the "traffic management" policy of your ISP, just in case.

Kind regards
 
Thank you for your response! I didn't find any related policy on my ISP's website, so I assume it's ok to change. 

I have another question, if I set the server to be Europe in config generation, will it automatically change the actual server for better performance during connection? Or is it only changing when I restart my Gluetun Docker?

Share this post


Link to post
10 minutes ago, adminnas said:

if I set the server to be Europe in config generation, will it automatically change the actual server for better performance during connection? Or is it only changing when I restart my Gluetun Docker?


Hello!

GlueTun offers a remarkable integration with AirVPN and in general will not consider the configuration file to determine the end point. Instead, it will evaluate specific environment variables, please see here:
https://github.com/qdm12/gluetun-wiki/blob/main/setup/providers/airvpn.md#optional-environment-variables

Even if you set SERVER_REGIONS=Europe or something similar, a new end point will be determined only upon disconnection or container restart. Under no circumstance a connection will be intentionally and suddenly broken and then re-established to a different server without the operator's intervention.

Remember that the mentioned environment variables will be correctly evaluated when the VPN_SERVICE_PROVIDER variable is set to airvpn:
VPN_SERVICE_PROVIDER=airvpn

Kind regards
 

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...