# How to set up a remote NAS using OpenMediaVault and Meshnet

## Introduction

Having a robust [network-attached storage](https://www.seagate.com/blog/what-is-nas-master-ti/) (NAS) solution is vital in today’s digital landscape. Whether for personal or professional use, such a system is essential for storing and managing important files, including legal documents, invoices, or family photos and videos.

A frequent choice for a NAS solution is the free and open-source software [OpenMediaVault](https://www.openmediavault.org/about.html) (OMV). It’s an easy-to-use and highly customizable file-managing system that does not require extensive technical knowledge to set up. In addition, OMV offers web-based management, user and group access control, and plugin support for extending its functionality.

However, accessing shared folders on your NAS is typically limited to the same [local area network](https://nordvpn.com/blog/what-is-lan/) (LAN) when ports are not opened on your router. Thankfully, with [Meshnet](https://nordvpn.com/meshnet/), you can connect to your NAS remotely without compromising [network security](https://nordvpn.com/cybersecurity/network-security/). Meshnet allows using encrypted network tunnels to share data between your NAS and your end devices.

This guide describes how you can use OpenMediaVault to set up a remote NAS and access it using Meshnet.

## Installing OpenMediaVault <a href="#installing-openmediavault" id="installing-openmediavault"></a>

There are several ways in which you can install OpenMediaVault. This article demonstrates installing the OpenMediaVault 7.4.0-2 (Sandworm) operating system in a virtual environment. However, the setup procedure is the same on bare-metal machines.

1. Download the ISO installation image from the [OpenMediaVault downloads page](https://www.openmediavault.org/download.html).
2. Follow the instructions in the [Installation using an ISO image](https://docs.openmediavault.org/en/latest/installation/via_iso.html) article in the OpenMediaVault documentation to complete the installation.

For alternative installation methods, see the [OpenMediaVault documentation](https://docs.openmediavault.org/en/latest/installation/index.html).

### Install available updates <a href="#install-available-updates" id="install-available-updates"></a>

After installing the OMV, you should update it by accessing the NAS using an [SSH connection](https://meshnet.nordvpn.com/how-to/remote-access/access-remote-systems-over-ssh). SSH access for the user `root` is enabled by default. To install the updates, follow these steps:

1. Open **Command Prompt** (on Windows) or **Terminal** (on macOS and Linux).
2. Connect to your NAS via SSH by running this command, where `<server>` is the local IP address of the NAS:\
   &#x20;

   <pre class="language-bash" data-overflow="wrap"><code class="lang-bash">ssh root@&#x3C;server>
   </code></pre>

   &#x20;\
   **Example**

   <pre class="language-bash" data-overflow="wrap"><code class="lang-bash">ssh root@192.168.1.56
   </code></pre>

   &#x20;
3. Enter the root password you created during the installation process.
4. Run this command to gather and install all available updates:\
   &#x20;

   <pre class="language-bash" data-overflow="wrap"><code class="lang-bash">apt update &#x26;&#x26; apt upgrade -y
   </code></pre>

   &#x20;
5. During the update process, you may be asked for keyboard inputs. Choose your input according to the on-screen information.
6. Once the updates finish, reboot your NAS.

## Configuring a NAS <a href="#configuring-a-nas" id="configuring-a-nas"></a>

OpenMediaVault has an intuitive web interface that allows you to configure various folder-sharing options. To access the web interface:

1. Open your internet browser.
2. Enter the local IP address of your NAS to the internet browser and press **Enter**.\
   &#x20;\
   **Example**\
   `192.168.1.56`\
   &#x20;
3. Log in to the administrator account using the default OpenMediaVault web interface credentials.
   * User name: `admin`
   * Password: `openmediavault`

Now you have full control of the NAS from within your internet browser.

### Change the default password <a href="#change-the-default-password" id="change-the-default-password"></a>

First, make sure to change the default password of the OpenMediaVault web interface to minimize the risk of unauthorized access.

1. Click **User settings** > **Change password** in the upper-right corner.

   <div align="left"><figure><picture><source srcset="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2FNWQOy8vdupWHqLoVLIf3%2Fomv_change_pwd_dark.png?alt=media&#x26;token=42637793-ae64-465a-9c81-123229e3afb6" media="(prefers-color-scheme: dark)"><img src="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2F9XgU41yNELUVfdkSKKsn%2Fomv_change_pwd.png?alt=media&#x26;token=ae4bf513-5761-40cf-a44c-40437e6212ec" alt="Clicking &#x27;Change password&#x27; in the OMV web interface." width="375"></picture><figcaption></figcaption></figure></div>

   &#x20;
2. Enter your new password in both fields and click **Save**.

### Personalize your dashboard <a href="#personalize-your-dashboard" id="personalize-your-dashboard"></a>

Once the password has been changed, you can customize your OMV dashboard. The dashboard allows you to monitor the status of various essential services.

1. Head back to your dashboard by clicking the **Dashboard** tile.
2. Click the **settings page** link.

   <div align="left"><figure><picture><source srcset="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2FV4eLp9VA8sCLWQsZlC7b%2Fomv_settings_link_dark.png?alt=media&#x26;token=91a07a7f-4d00-4da9-bab1-d5029a04972e" media="(prefers-color-scheme: dark)"><img src="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2F58QEqVFCqKjuhFORgf0i%2Fomv_settings_link.png?alt=media&#x26;token=3276ea3f-c542-46fc-a829-e93222caa62b" alt="Clicking the &#x27;settings page&#x27; link."></picture><figcaption></figcaption></figure></div>

   &#x20;
3. Select the widgets you want to see on your dashboard and click **Save**.

All of the selected widgets are now visible on the OpenMediaVault dashboard.

<figure><picture><source srcset="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2FRRQS71cug2Qj2KoN8dy5%2Fomv_dash_dark.png?alt=media&#x26;token=6106881a-eecf-4588-b3d4-7bd7bdc11b3e" media="(prefers-color-scheme: dark)"><img src="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2FgcQpmPBZ8e07qvSymvp9%2Fomv_dash.png?alt=media&#x26;token=c63ac1c5-4c0b-45d6-9346-2da769abc3b2" alt="OpenMediaVault dashboard with added widgets."></picture><figcaption></figcaption></figure>

### Check disk availability <a href="#check-disk-availability" id="check-disk-availability"></a>

Before changing any further settings, it is essential to check if OpenMediaVault can see your storage mediums. You can do so by going to **Storage** > **Disks**.

<figure><picture><source srcset="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2FxhGiAR49n9g9Eoyyn5h5%2Fomv_disks_dark.png?alt=media&#x26;token=c4632312-411d-40bd-8381-cf0c6c20c6cb" media="(prefers-color-scheme: dark)"><img src="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2FCE8Nf1DpVr6f4elruIXt%2Fomv_disks.png?alt=media&#x26;token=9a47c6db-78db-4631-a47c-e66df5582427" alt="Table of available disks in OMV"></picture><figcaption></figcaption></figure>

If any of your storage devices are not displayed, click the **Scan for new devices** button and select **Yes** to confirm.

### Set up a file system <a href="#set-up-a-file-system" id="set-up-a-file-system"></a>

{% hint style="info" %}
**Note**

If you use more than one disk for storage, you should configure a [redundant array of independent disks](https://docs.openmediavault.org/en/latest/administration/storage/raid.html) (RAID).

In the OpenMediaVault web interface, RAID options can be found in **Storage** > **Software RAID**.
{% endhint %}

A file system is a method that an operating system uses to manage data on a storage disk. Without setting up a file system for your storage medium, you cannot share any folders as they will not be recognized as directories by the operating system.

To set up a file system:

1. Go to **Storage** > **File systems**.
2. Click the **Create and mount a file system** button and select [a file system](https://docs.openmediavault.org/en/latest/administration/storage/filesystems.html), for example, **EXT4**.

   <div align="left"><figure><picture><source srcset="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2Fs6tCPnwbV73ZWiErBYBW%2Fomv_ext4_dark.png?alt=media&#x26;token=48fa55a8-b2ba-49c0-a56a-f768f1133119" media="(prefers-color-scheme: dark)"><img src="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2FzB9t8Zq561GZgGqSHje7%2Fomv_ext4.png?alt=media&#x26;token=2afb6b55-3fa9-4c83-9e10-4c32bda3caff" alt="Selecting the EXT4 file system." width="375"></picture><figcaption></figcaption></figure></div>

   &#x20;
3. Select your storage from the **Device** dropdown and click **Save**.
4. Wait for the process to finish and select **Close**.
5. Choose your created file system from the **File system** dropdown, add any relevant tags, and click **Save** to mount the file system.

   <figure><picture><source srcset="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2FDnP4fZykrvMg7aDvIM4u%2Fomv_mount_dark.png?alt=media&#x26;token=e45da4f0-aa32-4172-ba75-92c229d2d485" media="(prefers-color-scheme: dark)"><img src="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2FRManAHhki0cFtdTyDCz9%2Fomv_mount.png?alt=media&#x26;token=42cc1461-9812-4dbe-9362-8bc0daf30fc6" alt="Clicking &#x27;Save&#x27;."></picture><figcaption></figcaption></figure>

   &#x20;
6. In the **Pending configuration changes** panel, click the Apply button.

   <figure><picture><source srcset="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2Fguo5NELVeE2h1Gpc2S9p%2Fomv_apply_changes_dark.png?alt=media&#x26;token=b4da6778-0400-44bd-ba17-f581d7ff1aaa" media="(prefers-color-scheme: dark)"><img src="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2FBpVC4dMez02HkmOSb3ST%2Fomv_apply_changes.png?alt=media&#x26;token=fe6726b6-2c0e-4e09-a17d-7a11bc714913" alt="Clicking the &#x27;Apply&#x27; button."></picture><figcaption></figcaption></figure>

   &#x20;
7. Select **Yes** to confirm.

The file system is now mounted on the operating system, and you can view it in the File systems section.

### Create shared folders <a href="#create-shared-folders" id="create-shared-folders"></a>

With the file system ready, you can start creating shared folders.

1. Go to **Storage** > **Shared folders**.
2. Click the **Create** button.
3. Fill in the required information.
   * **Name**: Enter any name for your shared folder.
   * **File system**: Select the file system you have set up.
   * **Relative path**: Enter a custom path to the folder you want to share. This section is filled in automatically after entering the name.
   * **Permissions**: Choose what permissions people accessing the shared folder have.
   * **Tags**: Add any relevant tags.
4. Click **Save**.

   <figure><picture><source srcset="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2FLwuAfH3dLLpzEDqiq35s%2Fomv_shared_folder_dark.png?alt=media&#x26;token=9b56fac0-4892-45b5-b5c2-fa669f3d6ce2" media="(prefers-color-scheme: dark)"><img src="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2FS4sX13y5lW96FQIWVHJv%2Fomv_shared_folder.png?alt=media&#x26;token=894b7499-73c4-4f09-8456-14349c9a0545" alt="Clicking &#x27;Save&#x27; in the shared folder creation menu."></picture><figcaption></figcaption></figure>

   &#x20;
5. In the **Pending configuration changes** panel, click the Apply button.
6. Select **Yes** to confirm.

Your shared folder should now appear in the **Shared folders** table.

<figure><picture><source srcset="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2FcKe0BzQeITwWILYzaujI%2Fomv_shared_folder_created_dark.png?alt=media&#x26;token=e98451ca-a996-44eb-970a-f28927fbdcc9" media="(prefers-color-scheme: dark)"><img src="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2F3ECvIxOBwKny6DyLr2y9%2Fomv_shared_folder_created.png?alt=media&#x26;token=fda41731-6125-421d-8992-0b7498013b9d" alt="The created shared folder."></picture><figcaption></figcaption></figure>

### Enable sharing services <a href="#enable-sharing-services" id="enable-sharing-services"></a>

Though the shared folders have been created, they are currently inaccessible since no folder-sharing services are active. To enable sharing for your created folder:

1. Go to **Services** > **SMB/CIFS** > **Shares**.
2. Click the **Create** button.

   <figure><picture><source srcset="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2FBdmJFaDFYjIdzYbiqXVZ%2Fomv_shares_dark.png?alt=media&#x26;token=e0d2ef58-06ee-4b33-85f4-7274a7fb04aa" media="(prefers-color-scheme: dark)"><img src="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2FanfHmU7xXSUabfSEIO48%2Fomv_shares.png?alt=media&#x26;token=c242e7a1-4388-41c5-9abc-a26651ce4aa4" alt="Arrow pointing to the &#x22;Create&#x22; button."></picture><figcaption></figcaption></figure>

   &#x20;
3. Make the following adjustments:
   * **Shared folder**: Select the folder you created earlier.
   * **Public**: Select **No** to allow only authenticated user access.

     <figure><picture><source srcset="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2FZJXz3msV5t1B0zWpCAWY%2Fomv_share_settings_dark.png?alt=media&#x26;token=16cfc46c-a87d-4d16-87e9-94a681c451cf" media="(prefers-color-scheme: dark)"><img src="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2F097IdtYhyPW7WAdEq0Wp%2Fomv_share_settings.png?alt=media&#x26;token=fc386c24-58bc-44f9-bc2a-804f946d3faf" alt="Selecting the name and the permissions of the shared folder."></picture><figcaption></figcaption></figure>

     &#x20;
4. Click **Save**.
5. Navigate to **Services** > **SMB/CIFS** > **Settings**.
6. Select the **Enabled** checkbox at the top to enable SMB/CIFS sharing and click **Save**.
7. In the **Pending configuration changes** panel, click the Apply button and select **Yes** to confirm.

Your shared folders are now fully set up and functional.

{% hint style="info" %}
**Note**

If you wish to use your shared folder for [macOS Time Machine backups](https://meshnet.nordvpn.com/how-to/remote-access/macos-time-machine-backups), select the **Time machine support** option when enabling SMB/CIFS for the folder.
{% endhint %}

### Creating new user accounts

Currently, shared folders can only be accessed using the administrator account credentials, which is not recommended. A better and safer approach is to create individual user accounts for each person accessing the NAS. This ensures that your administrator credentials remain private and minimizes the risk of unauthorized access to the NAS.

1. Go to **Users** > **Users**.
2. Click the **Create | Import** button and choose **Create**.

   <figure><picture><source srcset="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2F0VEj0B4rWVsJkXZDLrrb%2Fomv_user_create_dark.png?alt=media&#x26;token=1c1ecfff-b848-44d4-bf59-918d82d4ef5d" media="(prefers-color-scheme: dark)"><img src="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2FBPLWHi0nXSOVpUVRp8r0%2Fomv_user_create.png?alt=media&#x26;token=f92a345f-95b4-4bf4-a9b7-806d03eaac02" alt=""></picture><figcaption></figcaption></figure>

   &#x20;
3. Fill in the following fields:
   * In the **Name** field, enter a username for the new account.
   * In the **Password** and **Confirm password** fields, type in a secure password for the new user.\
     &#x20;\
     **Example**

     <figure><picture><source srcset="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2FhN2pkAYvESR7YjwHczbC%2Fomv_user_details_dark.png?alt=media&#x26;token=119a620d-984e-4e1e-a088-89cf5fa756ca" media="(prefers-color-scheme: dark)"><img src="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2FZ98I9Wau1d6PkorXanYJ%2Fomv_user_details.png?alt=media&#x26;token=197cf393-16ff-46df-b7e1-cf8c517a52d9" alt="Username and password of the new user."></picture><figcaption></figcaption></figure>

     &#x20;
4. Click **Save**.
5. In the **Pending configuration changes** panel, click the Apply button and select **Yes** to confirm.

The newly created account should now be displayed in the **Users** table.

<figure><picture><source srcset="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2FbeUI8TZBmhXOFADf6gb5%2Fomv_user_table_dark.png?alt=media&#x26;token=7e41a783-c223-488c-be4d-f6b2e91518e5" media="(prefers-color-scheme: dark)"><img src="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2FJ9XBGdoEXA33UYagGMMb%2Fomv_user_table.png?alt=media&#x26;token=e0b46c85-c763-4500-85f3-69565c18ea07" alt="New user highlighted in the &#x22;Users&#x22; table."></picture><figcaption></figcaption></figure>

## Setting up NordVPN <a href="#setting-up-nordvpn" id="setting-up-nordvpn"></a>

To allow remote connections to the NAS, you need to install NordVPN and enable Meshnet. Since the OpenMediaVault operating system is based on Debian, you can [install and use the Linux version of the NordVPN app](https://nordvpn.com/download/linux/) hassle-free.

### Install NordVPN on the NAS <a href="#install-nordvpn-on-the-nas" id="install-nordvpn-on-the-nas"></a>

Follow these steps to set up NordVPN on your NAS:

1. Access the NAS using SSH.
2. Download and install the NordVPN app for Linux by running the command below.\
   &#x20;

   <pre class="language-bash" data-overflow="wrap"><code class="lang-bash">sh &#x3C;(wget -qO - https://downloads.nordcdn.com/apps/linux/install.sh)
   </code></pre>

   &#x20;
3. Log in to your NordVPN account.

### Log in to NordVPN <a href="#log-in-to-nordvpn" id="log-in-to-nordvpn"></a>

You can log in to your NordVPN account without the use of a graphical user interface (GUI) in two ways:

* By running the `nordvpn login` command with the `--token` flag
* By running the `nordvpn login` command with the `--callback` flag

Instructions for both methods are outlined below.

<details>

<summary>Log in using a token</summary>

1. On any device, log in to your [Nord Account](https://my.ndaccount.com/) dashboard and select the **Meshnet (by NordVPN)** card.

   <div align="left"><figure><img src="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2FxpqHfJyxPLb25uHSZ74I%2Fucp_meshnet_card.png?alt=media&#x26;token=c9bc9798-bc96-4dfc-8ac7-8a3cf1b4538a" alt="&#x22;Meshnet (by NordVPN)&#x22; card highlighted."><figcaption></figcaption></figure></div>

   &#x20;
2. Under **Advanced settings**, select **Get access token**.

   <div align="left"><figure><img src="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2FJn3YfCSN2rokFjnMJAzS%2Fucp_get_token.png?alt=media&#x26;token=9f657403-0eff-47af-8da3-4a4837db5d4b" alt="Clicking the &#x27;Set up NordVPN manually&#x27; button."><figcaption></figcaption></figure></div>

   &#x20;
3. Enter the verification code sent to your email address.
4. Under **Access token**, click **Generate new token**.

   <div align="left"><figure><img src="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2F2rdjIz6B8KD69EpvERV2%2Fucp_generate_token.png?alt=media&#x26;token=ca21fa64-1669-4786-945f-d2af2fec5cdb" alt="Clicking &#x27;Generate new token&#x27;."><figcaption></figcaption></figure></div>

   &#x20;
5. In the dialog that appears, choose either a token that expires in 30 days or one that never expires, and then select **Generate token**.

   <div align="left"><figure><img src="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2FM44Zi3LCVbbovfM5sCra%2Fucp_generate_new.png?alt=media&#x26;token=c06d9740-1a21-4acd-8246-fc81208576bb" alt="Selecting the token expiry option." width="563"><figcaption></figcaption></figure></div>

   &#x20;
6. Select **Copy and close**.
7. On your NAS, run the `nordvpn login --token <your_token>` command, replacing `<your_token>` with the copied token.\
   &#x20;\
   **Example**

   <pre class="language-bash" data-overflow="wrap"><code class="lang-bash">nordvpn login --token 3fe460cefb8dcf1478c92e45903cec9f9bdbadf7a456a6dfb35dc2c58ee39d5b
   </code></pre>

You should now see a welcome message.

</details>

<details>

<summary>Log in using a URL</summary>

1. Run the `nordvpn login` command.
2. Open the provided link in your browser on any device.
3. Complete the login procedure.
4. Right-click the **Continue** button and select **Copy link address**.
5. Run the `nordvpn login --callback "<URL>"` command, replacing `<URL>` with the previously copied link address.\
   &#x20;\
   **Example**

   <pre class="language-bash" data-overflow="wrap"><code class="lang-bash">nordvpn login --callback "nordvpn://login?action=login&#x26;exchange_token=MGFlY2E1NmE4YjM2NDM4NjUzN2VjOWIzYWM3ZTU3ZDliNDdiNzRjZTMwMjE5YjkzZTNhNTI3ZWZlOTIwMGJlOQ%3D%3D&#x26;status=done"
   </code></pre>

You should now see a welcome message.

</details>

{% hint style="success" %}
**Tip**

To preserve your token when logging out of the NordVPN app, use the `nordvpn logout --persist-token` command. Otherwise, your token will be revoked.&#x20;
{% endhint %}

### Enable Meshnet <a href="#enable-meshnet" id="enable-meshnet"></a>

On your NAS, enable Meshnet on Linux by typing in this command:

{% code overflow="wrap" %}

```bash
nordvpn set meshnet on
```

{% endcode %}

To view the Nord name and Meshnet IP address of your NAS, enter the following command:

{% code overflow="wrap" %}

```bash
nordvpn meshnet peer list
```

{% endcode %}

**Example**

<figure><picture><source srcset="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2FaQVe77KCbZQbCuRjjjHh%2Fomv_mesh_peer_list_dark.png?alt=media&#x26;token=f0741930-713a-4a5d-adb4-4c18969aa55b" media="(prefers-color-scheme: dark)"><img src="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2FTRIARyh7JG1elHzrVaBx%2Fomv_mesh_peer_list.png?alt=media&#x26;token=ddfe354b-10b4-4012-82eb-7d41b8029436" alt="Enabling Meshnet and checking the Nord name and Meshnet IP of the NAS."></picture><figcaption></figcaption></figure>

You will also see the list of your linked devices that can access this NAS over Meshnet.

## Connecting to the NAS over Meshnet <a href="#connecting-to-the-nas-over-meshnet" id="connecting-to-the-nas-over-meshnet"></a>

Your Meshnet devices should now be able to access the shared folders you have created on your NAS. To access the shared folders from your NAS, use this format `<server>/<shareName>`, where `<server>` is the Nord name or Meshnet IP address of the NAS and `<shareName>` is the name of the shared folder.

**Example**

`secret.meerkat-alps.nord/MeshnetStorage`

<figure><picture><source srcset="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2Fjuy1gSOHmYDx4jfEi0En%2Fomv_folder_access_dark.png?alt=media&#x26;token=1efa17e9-9e6c-4bea-b127-b241010374c0" media="(prefers-color-scheme: dark)"><img src="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2FVw4LoA5dve8ZNNc91JZI%2Fomv_folder_access.png?alt=media&#x26;token=aac48a75-2d21-4066-bc4b-141bf259f57c" alt="OMV shared folder open in macOS Finder."></picture><figcaption></figcaption></figure>

For detailed, OS-specific instructions on accessing shared folders, see the following articles:

* [Accessing shared folders from Windows](https://meshnet.nordvpn.com/how-to/set-up-folder-sharing/configure-and-access-shared-folders-on-windows#access-shared-folders)
* [Accessing shared folders from macOS](https://meshnet.nordvpn.com/how-to/set-up-folder-sharing/configure-and-access-shared-folders-on-macos#access-shared-folders)
* [Accessing shared folders from Linux](https://meshnet.nordvpn.com/how-to/set-up-folder-sharing/configure-and-access-shared-folders-on-linux#access-shared-folders)
* [Accessing shared folders from Android](https://meshnet.nordvpn.com/how-to/remote-files-media-access/set-up-folder-sharing/access-shared-folders-on-android)
* [Accessing shared folders from iPhone/iPad](https://meshnet.nordvpn.com/how-to/remote-files-media-access/set-up-folder-sharing/access-shared-folders-on-ios)
* [Accessing shared folders from Android TV](https://meshnet.nordvpn.com/how-to/set-up-folder-sharing/access-shared-folders-from-android-tv#access-shared-folders)

Additionally, you can access the OpenMediaVault web interface over Meshnet by entering the Nord name or the Meshnet IP address of the NAS in your internet browser’s address bar.

**Example**

<figure><img src="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2FB8v3zbR7fI3HNiIYFej6%2Fomv_web_mesh_access.png?alt=media&#x26;token=b4c993d0-ae5d-43de-91d7-19215be858c2" alt="OpenMediaVault web interface accessed using the Nord name of the NAS."><figcaption></figcaption></figure>

&#x20;
