# 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 overview <a href="#permission-overview" id="permission-overview"></a>

The local network permission works in tandem with [Traffic routing](https://meshnet.nordvpn.com/~/changes/Ppg3bMoVHwMks6LohjqQ/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 main version of the app, which can be downloaded from the [NordVPN website](https://nordvpn.com/download/mac/). 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).

&#x20;

<figure><img src="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2FTgJEV1azbO25Miax54ce%2Flan_on.svg?alt=media&#x26;token=cca9e6de-65ff-408b-ab77-6012d8421814" 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.

### 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%2F3pS9cgSsftet0pWSzSHv%2Flan_off.svg?alt=media&#x26;token=1d2b8cdc-1100-4bea-922e-4e77612858bb" 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.

## 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. The Meshnet permission view also indicates whether your peer has enabled or disabled the permission for your device:

![The section "Access to device's local network while routing traffic" is highlighted](https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2FAbzLQPZ7rc6ZbSW4nRj5%2Fnetwork_access.png?alt=media\&token=7751957b-a97b-4a71-b517-344466b71462)

{% 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 %}

### Manage local network permissions <a href="#manage-local-network-permissions-on-windows" id="manage-local-network-permissions-on-windows"></a>

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 Meshnet<img src="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2FxvxRyVglOq64BS4ArUK6%2Fmeshnet.svg?alt=media&#x26;token=accf346d-0d36-420d-a965-52ff921bb889" alt="" data-size="line"> tab.
3. Click the device that you want to alter the permissions for.
4. Under **Traffic routing permissions**, turn on or off **Access to your local network when routing traffic through your device**.<br>

   <div align="left"><figure><img src="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2Fj1JKlX90UoZzzPa1sCE8%2Fwin_toggle.png?alt=media&#x26;token=4ac462de-96f7-472b-90e5-db39ff655fb5" alt="Turning on Access to your local network "><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%2FxvxRyVglOq64BS4ArUK6%2Fmeshnet.svg?alt=media&#x26;token=accf346d-0d36-420d-a965-52ff921bb889" alt="" data-size="line"> tab.
3. Click the More![](https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2Fv7Fak8Uid9I73K1oeCBS%2FUnion.svg?alt=media\&token=d0c2dae7-77ed-4577-8317-627071b723b5) 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.<br>

   <div align="left"><figure><img src="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2FCeB5pLXA9cNB73lcoOR9%2Fmac_lan_permission.png?alt=media&#x26;token=e0b69483-12fe-4814-b22c-8ed72e2b343b" alt="Turning off access to your local network while routing traffic"><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:<br>

   ```bash
   nordvpn meshnet peer list
   ```

3. Note the Nord name of the peer you want to alter permissions for.<br>

   <div align="left"><figure><img src="https://3559400189-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F0cTezbT2vN0lurEio8Z5%2Fuploads%2FHq0iV7v2vOijVJRCUqd3%2Fimage.png?alt=media&#x26;token=8c5b3a07-8ddc-42b3-8426-01578097b28e" alt=""><figcaption></figcaption></figure></div>

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

   ```bash
   nordvpn meshnet peer local allow <NordName>
   nordvpn meshnet peer local deny <NordName>
   ```

{% endtab %}
{% endtabs %}

## &#x20;See also

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