# Local network permissions

## Introduction <a href="#introduction" id="introduction"></a>

The article discusses Meshnet's local network permission, the differences in functionality when the permission is enabled or disabled, and the effect it has on your peer’s device. It also provides guidance on managing the local network permission for each device on your Meshnet.

## Permission basics <a href="#permission-overview" id="permission-overview"></a>

The local network permission works in tandem with [Traffic routing](https://meshnet.nordvpn.com/features/routing-traffic-in-meshnet). Its function is to either permit or deny access to your local network devices while a Meshnet peer is routing traffic through your device. Local network access is a supplementary feature to traffic routing, and as such, traffic routing must be enabled to make use of the LAN permission.

LAN access with traffic routing is available on the NordVPN app for Windows, Linux, and macOS.&#x20;

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

On macOS, traffic routing is available only on the [direct download](https://nordvpn.com/download/mac/) version of the app. The App Store version of NordVPN doesn't provide the required functionality for your device to act as a traffic routing host.
{% endhint %}

### What happens when local network permission is enabled? <a href="#what-happens-when-local-network-permission-is-enabled" id="what-happens-when-local-network-permission-is-enabled"></a>

With the local network permission enabled, your Meshnet peer can route their internet traffic through your device and interact with all of the devices that are located in the same local area network. The devices can vary from a router to a [home server](https://nordvpn.com/blog/home-server/) or [network-attached storage](https://www.seagate.com/blog/what-is-nas-master-ti/) (NAS).

<figure><img src="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2FxgIuFSxlr1bl5CR4jh3F%2Fmeshnet-scheme-local-network-on.svg?alt=media&#x26;token=49f93efe-f180-4c8a-a04c-003cdf6bb6c1" alt="Local network permission enabled"><figcaption><p>Figure 1. Local network permission enabled</p></figcaption></figure>

As depicted in the model above, the home computer, which routes traffic, and local devices communicate through their respective LAN IP addresses. Consequently, the laptop routing traffic through the home computer can interact with all of the devices in the `192.168.1.0/24` local subnet.

{% hint style="warning" %}
**Caution**

Enable local network permission only for trusted devices to ensure home network and device security. Untrusted entities may cause severe damage if granted full access to your LAN devices.
{% endhint %}

### What happens when local network permission is disabled? <a href="#what-happens-when-local-network-permission-is-disabled" id="what-happens-when-local-network-permission-is-disabled"></a>

When the local network permission is disabled, the Meshnet peer cannot access devices on your LAN.&#x20;

<figure><img src="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2F2LHuqMK4JuN5Q4AldSo0%2Fmeshnet-scheme-local-network-off.svg?alt=media&#x26;token=d529e615-15e3-409f-a142-1e9d8800abea" alt="Local network permission disabled"><figcaption><p>Figure 2. Local network permission disabled</p></figcaption></figure>

Traffic routing remains functional unless otherwise configured, but it only alters the Meshnet peer’s public IP address. Should the peer attempt to connect to a local IP address, the connection will default to their LAN instead of yours.

### Icon reference table

If you want to change the status of the local network permission, you can do so for each device individually. You can also check whether your peer has enabled or disabled the permission for your device.

<table><thead><tr><th width="100" align="center">Icon</th><th>State</th><th>Impact</th></tr></thead><tbody><tr><td align="center"><picture><source srcset="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2FvTQqnXhhqIwIHKXSZtKy%2Flan_on_dark.png?alt=media&#x26;token=f291c762-82a0-4648-8ae5-98e68c39ba04" media="(prefers-color-scheme: dark)"><img src="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2F453fOkn04avszxAOfKuf%2Flan_on.png?alt=media&#x26;token=2b38d9cc-3072-4708-a3b7-504bcad0e375" alt="Local network permission icon with two arrows"></picture></td><td>Local network access is enabled for your device and the linked device.</td><td><ul><li>Your device can access the peer device's local network while routing traffic through it.</li><li>The peer device can access your device's local network while routing traffic through it.</li></ul></td></tr><tr><td align="center"><picture><source srcset="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2F1CrKHWcWm5HUSJzCRzEB%2Flan_in_dark.png?alt=media&#x26;token=6d7cca71-f89d-4100-be3e-aaeb8b609dc4" media="(prefers-color-scheme: dark)"><img src="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2FfqFW0U8QSC8XqFp3tCu5%2Flan_in.png?alt=media&#x26;token=039dafe1-a22f-451e-9df2-003419086082" alt="Local network permission icon with one arrow pointing inward"></picture></td><td>Local network access is enabled for your device.</td><td><ul><li>Your device cannot access the peer device's local network while routing traffic through it.</li><li>The peer device can access your device's local network while routing traffic through it.</li></ul></td></tr><tr><td align="center"><picture><source srcset="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2FfV5ZJm9OyoBXi1HnG2fv%2Flan_out_dark.png?alt=media&#x26;token=814f722d-1e9e-457c-af72-71d69aec28e0" media="(prefers-color-scheme: dark)"><img src="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2FdJc6FnLZNbkqDMjVIiUm%2Flan_out.png?alt=media&#x26;token=54bc2a41-dd73-4735-95c9-0a5554846614" alt="Local network permission icon with one arrow pointing outward"></picture></td><td>Local network access is enabled for the linked device.</td><td><ul><li>Your device can access the peer device's local network while routing traffic through it.</li><li>The peer device cannot access your device's local network while routing traffic through it.</li></ul></td></tr><tr><td align="center"><picture><source srcset="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2F6sN2u20zcLukc8cen1kE%2Flan_off_dark.png?alt=media&#x26;token=1d83497d-bcc9-4341-b47c-d11c97f7d7f7" media="(prefers-color-scheme: dark)"><img src="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2FR1FWJpPn5JNHVBydWf1p%2Flan_off.png?alt=media&#x26;token=05337001-d4e5-4342-9ad8-c001daea024d" alt="Local network permission icon with an x symbol"></picture></td><td>Local network access is disabled.</td><td><ul><li>Your device cannot access the peer device's local network while routing traffic through it.</li><li>The peer device cannot access your device's local network while routing traffic through it.</li></ul></td></tr></tbody></table>

## Changing permissions <a href="#changing-permissions" id="changing-permissions"></a>

If you want to change the status of the local network permission, you can do so for each device individually. You can also check whether your peer has enabled or disabled the permission for your device.

To manage the local network permission, proceed with the following instructions:

{% tabs %}
{% tab title="Windows" %}

1. Open the NordVPN app. [Log in](https://my.nordaccount.com/) if necessary.
2. On the left-side menu, select the **Devices in Meshnet** <img src="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2FyNPGbeTmyQ5agRdyJD19%2Ficon_meshnet_blue.svg?alt=media&#x26;token=478d08e6-81b2-4acc-af45-46579f95599e" alt="" data-size="line"> tab.
3. Next to the device that you want to alter the permissions for, click the three-dot menu and select **Manage device**.

   <div align="left"><figure><picture><source srcset="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2FEBlAeNIWAh0t3CnFstbH%2Fwin_manage_device_button_dark.png?alt=media&#x26;token=e9500f3e-689d-4a09-8030-1604419c6fb6" media="(prefers-color-scheme: dark)"><img src="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2FZCu8JQ5JBRD5CCcUsz3t%2Fwin_manage_device_button.png?alt=media&#x26;token=53caf5e5-df83-44d1-b9d1-71b7655ea123" alt="Selecting &#x22;Manage device&#x22; from the three-dot menu."></picture><figcaption></figcaption></figure></div>

   &#x20;
4. Under **Traffic routing permissions**, turn on or off the **Access to your local network when routing traffic through your device** toggle.

   <div align="left"><figure><picture><source srcset="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2FNo2aJhUUGR0N91WnxrtH%2Fwin_local_network_dark.png?alt=media&#x26;token=13ad0f84-ccd2-4f3c-accc-eb8f31a34737" media="(prefers-color-scheme: dark)"><img src="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2F7MMywuaRJgn7SFPxvYGq%2Fwin_local_network.png?alt=media&#x26;token=d508ba4f-fa45-43c6-9f76-ac27f049ed26" alt="Turning on Access to your local network "></picture><figcaption></figcaption></figure></div>

{% endtab %}

{% tab title=" macOS" %}

1. Open the NordVPN app. [Log in](https://my.nordaccount.com/) if necessary.
2. On the left-side menu, select the **Meshnet** <img src="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2FyNPGbeTmyQ5agRdyJD19%2Ficon_meshnet_blue.svg?alt=media&#x26;token=478d08e6-81b2-4acc-af45-46579f95599e" alt="" data-size="line"> menu.
3. Click the **More** <img src="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2FFEbtqv2YQL7cmH2Rrv9b%2Ficon_meshnet_more_blue.svg?alt=media&#x26;token=11f0a3bf-162c-49cd-88cb-76d5519a486a" alt="" data-size="line"> button next to the device that you want to alter the permissions for.
4. Select the **Don't allow access to your local network while routing traffic** or the **Allow access to your local network while routing traffic** option.

   <div align="left"><figure><picture><source srcset="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2FVSO93P2ckhYDKLKcxIrk%2Fmac_permission_local_dark.png?alt=media&#x26;token=038c8d1e-3b1e-4c32-86b7-d4105f830641" media="(prefers-color-scheme: dark)"><img src="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2FgJeo0ZLTARJnQOuZ4Jyq%2Fmac_permission_local.png?alt=media&#x26;token=eed3af57-da38-4faa-af65-18cf0b7a452b" alt="Revoking the &#x22;Access to your local network while routing traffic&#x22; permission."></picture><figcaption></figcaption></figure></div>

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

If you're using the App Store version of the app, the local network permission will not be visible because this version does not support traffic routing.
{% endhint %}
{% endtab %}

{% tab title="Linux" %}

1. Open the terminal.
2. Run the following command to list all of your Meshnet peers:

   <pre class="language-bash" data-overflow="wrap"><code class="lang-bash">nordvpn meshnet peer list
   </code></pre>

   &#x20;
3. Note the Nord name of the peer you want to alter permissions for.

   <div align="left"><figure><img src="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2Flu7jFRKTlldabekqtXkg%2Flinux_peer_name_himalayas.png?alt=media&#x26;token=1cfabc26-9741-44b9-b170-50b24e9f0d8b" alt="Peer device&#x27;s Nord name highlighted in Terminal."><figcaption></figcaption></figure></div>

   &#x20;
4. To either allow or disable the permission, use one of the following commands, replacing `<device>` with the peer’s Nord name, nickname, or Meshnet IP:

   <pre class="language-bash" data-overflow="wrap"><code class="lang-bash">nordvpn meshnet peer local allow &#x3C;device>
   nordvpn meshnet peer local deny &#x3C;device>
   </code></pre>

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

To find your peer's Nord name faster, start typing the name and press **Tab**. The system will auto-complete the name based on matching peers.
{% endhint %}
{% endtab %}
{% endtabs %}

## See also

* [Traffic routing permissions](https://meshnet.nordvpn.com/features/explaining-permissions/traffic-routing-permissions)
