2. Open ports for remote access
A pre-requisite for remote access to your network storage is that you configure the firewall on your router so that it allows certain requests from the internet.
A packet filter works on your router in order to protect your home network from unwanted access attempts. In the default configuration, this packet filter only lets data packets through that have been requested by devices on your LAN. On the other hand, if you are on the go and want to access your NAS system to download data or to save them on the network storage, you have to define the exceptions – even these access attempts aren’t initiated internally and would otherwise be rejected by the router for security reasons. If you open the firewall for certain services such as FTP (File Transfer Protocol) or SSH (Secure Shell) this is known as port forwarding. You set this in the administration interface of your router. To do this, open the appropriate port for the desired service (e.g. FTP) and set up a redirect to the NAS system.
Modern network storage systems usually have an integrated FTP server, which – as long as it’s connected to the internet – can answer requests from FTP client programs such as FileZilla or WinSCP, thus enabling a convenient data exchange with various devices.
Theoretically, there are 65,536 ports available for network communication. Of these, ports 0 until 1023 have been reserved by the IANA (Internet Assigned Numbers Authority) as default ports for specific protocols or applications. The FTP server of your router, for example, generally accepts requests from the internet on port 21. To allow this, you must open the corresponding port on the surface and set up a redirect for incoming data packets to the network storage’s fixed LAN IP. For this purpose, you need to specify four settings in the administration interface of your router under the menu item 'Port forwarding' or 'Port mapping', depending on the router:
- The router’s port that is to be opened (known as 'Public Port' , 'External Port', or 'Inbound Service', depending on the device and manufacturer)
- The private IP address of the network device to which data packets are to be redirected (also 'Private IP' or 'Internal IP')
- The port on which the network device is to receive the data packets ('Private Port' or 'Internal Port')
- The protocol type to be used for data transmission ('Type')
To allow the FTP server of your NAS system to communicate via the internet, specify port number 21 for both the public port on the router, and the private port on the network storage. For the private IP address, use the fixed LAN IP that you determined in step 1 for your network storage. This instructs your router to automatically redirect requests and data packets from the internet that arrive at port 21 to your network storage’s port of the same name. However, to enable an interaction like this, client devices on the internet must know the address of your router. In step 3, therefore, it is important to define a consistent contact address.