Best way to access NAS for Plex remotely?

DLNA, AirPlay, Chromecast, PS3, XBOX, iTunes, & other media players
Poppy
Getting the hang of things
Posts: 73
Joined: Thu Sep 06, 2018 11:49 pm

Re: Best way to access NAS for Plex remotely?

Post by Poppy »

There are many ways to access your QNAP remotely but many of them present significant risk to your private Local Area Network and should never be used.
Exposing the NAS to the Internet is the most unsafe of the obvious options even if you only allow one single port to allow you to access a specific service such as SSH, SMB or Plex.
Also, you really need to define what you mean by "best" - easiest? cheapest? most secure? most robust?
If the remote access is always from the same specific location (such as your holiday home in the Algarve) then probably the most secure option is to have a dedicated point-to-point network connection (e.g. leased line) installed but this is definitely not a cheap option.
The cheaper option involves a Virtual Private Network (VPN) connection which uses tunnelling protocols to mimic the point-to-point connectivity of a leased line and also provide an easy option to encrypt any traffic using that tunnel. It is therefore very important to note that VPN does not always include encryption even though you probably want it be included.

Normally when people want remote access they mean that they (a roaming client with a laptop, tablet or phone) want to connect to some random nearby network and then connect over the public Internet to a static server on a local area network in a fixed location as if they were in that fixed location. Such access requires a VPN.
To establish a VPN connection to a specific server, several things are required:
  • client system (e.g. laptop, phone etc)
  • VPN client software to initiate a virtual point-to-point link
  • internet access for that client
  • internet connectivity to the fixed location (this has to be taken for granted because you can't do anything about it if it is not available!)
  • VPN endpoint at the fixed site
  • Connectivity and functionality for the server to which you want to connect
If you are a home user, one can assume that you have a laptop and a home network connected to the Internet through an ISP router, that the server (QNAP) provides a full service to your home network and that the ISP router includes some level of Firewall functionality. Therefore to connect back to your QNAP when you are out and about you really only need a VPN client and a VPN endpoint on your home network. Note that such VPN connectivity to a home wired network will also provide the same security for online shopping etc as ExpressVPN / NordVPN etc.

There are three options for a VPN endpoint:
  1. the ISP router/your Firewall
  2. the QNAP to which you are trying to connect (there is an official QVPN service available)
  3. a different endpoint device on your network (e.g. another server, router etc)
For option 1, you launch the VPN client on the laptop, establish a VPN tunnel to the ISP router/Firewall and then can access anything on your home network as if you were at home. Most ISP router/firewalls do not allow such functionality and using this device as the endpoint can negatively impact functionality.

To use options 2 or 3, you must first configure the Firewall to allow the ports and protocols required for the VPN tunnel to pass to the endpoint.
Then you launch the VPN client on the laptop, establish a VPN tunnel to the endpoint and proceed as if you were at home.
Option 2 of course exposes a single port of the QNAP server to the Internet for the QVPN service and is therefore not the most secure option but it is very easy and quick.
Option 3 is made more secure by creating a separate DMZ for the endpoint (note separate DMZ... do not put the endpoint in a publicly accessed DMZ!)

OpenVPN (included in the QVPN service) is one of the best options for VPN connectivity to your home network because it is readily available and only requires a single TCP port for full connectivity.
One "best" solution therefore might be:
  • Pick a port not normally used by common services (or used by a service you never use such as Battlenet authentication TCP/1119) for your tunnel
  • Buy a cheap Draytek router
  • Connect WAN port of Draytek to the DMZ port of your ISP router.
  • Connect LAN port of Draytek to the home network.
  • Configure OpenVPN endpoint on Draytek using the preassigned port for specific user(s) and export the connection certificate
  • Install OpenVPN client on laptop, phone, tablet etc... and import certificate.
  • Go roaming and watch your videos!
FSC830
Experience counts
Posts: 2043
Joined: Thu Mar 03, 2016 1:11 am

Re: Best way to access NAS for Plex remotely?

Post by FSC830 »

A brief description of the options, but I would not focus this to Plex.
This is valid for every remote access to the home network, so the post would be better placed in a more general section than in multimedia.

Regards
Post Reply

Return to “Media Streaming”