# ZeroTier

By joining a ZeroTier network, your router acts as a traffic gateway, enabling remote LAN access or interconnecting subnets across physical locations.

## Example of Setting ZeroTier

Navigate to the router menu: SYSTEM > Terminal. Enter the username root and log in with the password you set.

### 1. Zerotier Management

Visit [www.zerotier.com](https://www.zerotier.com) and log in.&#x20;

You will notice that networks are already configured by default. Select one of these or create your network, then save the Network ID.

&#x20;![](https://3846242597-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNX0lpv92wMW1lNVYR0rx%2Fuploads%2FMgh2AcDu2iz7amtQ8jAK%2Fimage.png?alt=media\&token=ce76e8e7-7e18-4eed-adec-2a73af0b80f6)

### 2. Install ZeroTier

All commands are executed in the SYSTEM >Terminal section of the router menu.

```
opkg update
opkg install zerotier
```

### 3. Enable the ZeroTier

Since ZeroTier is disabled by default, we need to activate the ZeroTier service.

```
uci set zerotier.sample_config.enabled='1'
uci commit zerotier
/etc/init.d/zerotier restart
```

### 4. Join Network

zerotier-cli join \<Network ID>&#x20;

Here, we use the network with the ID 35c192ce9b1ff07f in step 1 as an example.

```
zerotier-cli join 35c192ce9b1ff07f
```

{% code title="Response" %}

```markup
200 join OK
```

{% endcode %}

### 5. Authorize Device

Click on the networks we have selected. You can view the member information in Members. Select the member and click the Authorize button to authorize the device.

<figure><img src="https://3846242597-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNX0lpv92wMW1lNVYR0rx%2Fuploads%2Fj8YoJ22yIFSsgdkHBFNW%2Fimage.png?alt=media&#x26;token=85d5e500-b2ac-4810-9d8d-25212504bc92" alt=""><figcaption></figcaption></figure>

Once authorized, we can connect with each other via the Managed IPs assigned by Zerotier.

We can customize IP addresses or specific policies through ZeroTier's management platform. Click Settings to manage Managed IPs, and click Flow Rules to view related policy information.

<figure><img src="https://3846242597-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNX0lpv92wMW1lNVYR0rx%2Fuploads%2FeXm2IE6tz9OA9jQobfyz%2Fimage.png?alt=media&#x26;token=96113ff0-fe9a-483e-a319-ec70935855f2" alt=""><figcaption></figcaption></figure>

To delete a member from the network, click the Edit button for that member, select the Delete Member option, and then click the Delete Member button.

<figure><img src="https://3846242597-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FNX0lpv92wMW1lNVYR0rx%2Fuploads%2FvaibPdqhOpjYQnKrEYdv%2Fimage.png?alt=media&#x26;token=e01cc46c-a640-4038-957f-8f481ce9fbf6" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://how.router.works/remote/vpn-tunnel/zerotier.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
