Remote access to USB drive files from the Internet

If you connect a USB drive to a Keenetic router, you can not only share files within your home network but also set up remote access to your USB drive from the Internet. USB drive files can be accessed from a computer as well as from a mobile device.

Imagine that you have a Keenetic router at home and a USB drive connected to it. You want to access your USB drive files from anywhere on the Internet (e.g. from a computer at work).

Remote access can be provided in several ways, depending on what IP address (public or private) and what type of connection (FTP, PPTP, SSTP, L2TP/IPsec) is used on the Keenetic.
For information on how to check if the IP address is public, see What is the difference between a public and private IP address?.

The IP address for Internet connection: private IP public IP
Remote access options:
  • router web interface by KeenDNS domain name
  • WebDAV connection
  • SSTP connection
  • router web interface by KeenDNS domain name
  • WebDAV connection
  • L2TP/IPsec connection
  • SSTP connection
  • FTP connection
  • PPTP connection


1. Remote access to a USB drive with a private IP address used for Internet access.

At first, connect a USB drive to the Keenetic as follows: Connecting a USB drive.

Then register a permanent domain name for the router in the KeenDNS service (use the 'Cloud access' mode). You can do this by following the KeenDNS service instruction.

1.1. Remote access to the Keenetic web interface by its KeenDNS domain name.

Use the KeenDNS registered domain name to connect to the Keenetic web interface. Once connected, go to the 'Applications' page and click on the connected disk entry.

usb-access-01-en.png

The built-in file manager will appear, where you will see all folders on the disk.

usb-access-02-en.png

With the built-in file manager, you can:

  • fb01.png Create a directory inside the selection;
  • fb02.png Download a file to your computer;
  • fb03.png Upload a file to the selected directory;
  • fb04.png Delete a file or folder.

1.2. Remote access via WebDAV connection.

From KeeneticOS version 3.4, the WebDAV protocol support is implemented to work via KeenDNS — our cloud-based domain name service.

You will be able to access files and folders of your USB drive connected to your Keenetic router remotely at

https://{keendns-name}/webdav/

 

NOTE: Important! A special feature of Keenetic's WebDAV support is the ability to read and write files on the drive remotely, even if a private IP address is used for Internet access.

To remotely access files and folders on your USB drive, you need to run a web browser (or a file manager with WebDAV support) on the client device and set up a connection to your Keenetic. Using a web browser to connect, you can only browse and download files. Connecting from a file manager via the Internet to a USB drive will allow you to add, delete, copy, move files and folders just like on a local device.

For more information on the configuration and use of WebDAV, see Connecting to a USB drive with WebDAV.

To set up the WebDAV server on a Keenetic router, go to the 'Applications' menu. In the 'Private cloud' section, turn on the 'Allow access from the Internet' option. In the 'Users and access' subsection, enable the 'WebDAV' option for the user you want to allow remote access and then click 'Select folder' to specify the desired folder on the USB drive.

webdav01.png

webdav_folder.png

NOTE: Important! Be sure to check the permissions for the parent folder. Click on 'Select folder', in the window that appears click on the parent folder in the built-in file manager, then on the usb08.png button and assign 'Read-only' or 'Read & Write' access rights.

Now go back to the 'Applications' page. By default, the WebDAV server is disabled. To enable the server, move the switch to the 'Enabled' state.

webdav_on.png

Next, you need to establish a remote connection to the WebDAV server. This can be done through a web browser or a file manager that supports the WebDAV protocol. The choice of software depends on the operating system and the type of device (mobile device or desktop PC) from which the connection will be made. We recommend using a file manager so that you can delete, move or add a file to the USB drive. If you only need access to files, use the easiest and most accessible option, your Internet browser. Examples are shown in the Connecting to a USB drive with WebDAV instructions.
For example, access via WebDAV from an Android mobile device:

explorer.png

webdav02.png

webdav03.png

webdav04.png

1.3. Remote access via SSTP connection.

You can set up an SSTP VPN server in your Keenetic router. It allows the remote connection of clients to your local network.

NOTE: Important! The main advantage of the SSTP (Secure Socket Tunnel Protocol) tunnel is its ability to work through the cloud, i.e. it allows you to establish a connection between the client and the server, even if there are private IP addresses on both sides. All other VPN servers require a public IP address.

Configure the SSTP server according to the instruction SSTP VPN server. For example:

usb-access-03-en.png

Then, for remote access to the server, you need to configure the SSTP client. The SSTP client can be:

After successfully connecting to the SSTP VPN server, set up network access to a USB drive connected to the Keenetic. For example, in Windows, launch the 'Run' application or the 'Explorer'. In the address bar, enter the local IP address of the Keenetic after '\\' symbols (in our example it is \\192.168.1.1).

usb-access-05-en.png

usb-access-06-en.png

usb-access-07-en.png

If 'Anonymous Access' is turned off when you set up USB sharing on the 'Windows Network' page, you will be prompted to enter your login and password. In this case, you need to specify the account information to access your Windows home network and USB drives via SMB/CIFS protocol.

2. Remote access to a USB drive with a public IP address used for Internet access.

The remote access options mentioned above for a private IP address are also suitable for access from a public IP address. Still, with a public address, these options are more numerous than with a private address. They consist of enabling one of the L2TP/IPsec (L2TP over IPsec), FTP, SSTP or PPTP servers for remote access to the local network where the USB drive is connected.

At first, connect a USB drive to the Keenetic as follows: Connecting a USB drive.

Then register a permanent domain name for the router in the KeenDNS service (use the 'Cloud access' mode). You can do this by following the instructions KeenDNS service.

2.1. Remote access via L2TP/IPsec connection.

We recommend you to use an L2TP/IPsec server for secure access to local network resources. This type of connection can be established from a smartphone, tablet or computer with minimal configuration: Android, iOS and Windows have a convenient built-in client for this type of VPN.

Configure the L2TP over IPsec according to the instruction L2TP/IPsec VPN server. For example:

usb-access-04-en.png

Then, for remote access to the server, you need to configure the L2TP/IPsec client. The L2TP/IPsec client can be:

After successfully connecting to the L2TP/IPsec VPN server, set up network access to a USB drive connected to the Keenetic. For example, in Windows, launch the 'Run' application or the 'Explorer'. In the address bar, enter the local IP address of the Keenetic after '\\' symbols (in our example it is \\192.168.1.1).

usb-access-05-en.png

usb-access-06-en.png

usb-access-07-en.png

If 'Anonymous Access' is turned off when you set up USB sharing on the 'Windows Network' page, you will be prompted to enter your login and password. In this case, you need to specify the account information to access your Windows home network and USB drives via SMB/CIFS protocol.

For information on how to access files and folders from your mobile device, see the article Accessing USB storage files from an Android mobile device.

TIP: Tip: For easy access to a network share, you can connect it as a network drive so that it appears as a normal logical drive in Windows Explorer or a file manager. For this setting, see How to create a network drive in Windows to access a USB drive connected to a router.

TIP: Note: Using a VPN connection to one of the Keenetic servers (SSTP, L2TP/IPsec, PPTP), you can set up remote access to a USB printer or any other LAN device such as a webcam, network drive, media server, etc.

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.