# OpenWrt

[Sinip](https://sinip.tech) enables you to remotely manage **OpenWrt** devices that don't have a public IP address.

## Pre-requisites

To remotely manage your *OpenWrt* devices you'll need:

* One or more OpenWrt devices to be used as `Remote Devices`
* A PC or Smartphone to be used as `Admin Device`
* A *key* (file with .ovpn extension) downloaded from you [Sinip account](https://my.sinip.tech)

{% hint style="danger" %}
Remember: *key* files allow you to connect devices to your *Sinip* network, don't give them to anyone!
{% endhint %}

The *OpenWrt* firmware supports various network devices like:

* TP-Link
* D-Link
* Linksys
* MikroTik
* Ubiquiti
* Netgear
* TRENDnet
* Asus
* Xiomi

And many other brands, here is an exhaustive list: <https://openwrt.org/toh/start>

To install *OpenWrt* on your devices follow the official documentation: <https://openwrt.org/docs/start>

## Connect an OpenWrt device to your Sinip network

Connect to its web interface using a web browser (the default local IP address is `192.168.1.1`). Login as the `root` user.

Go to `System` -> `Software` and click `Update lists`.

Use the "Filter" field to find and install these packages:

* luci-app-openvpn
* openvpn-easy-rsa
* openvpn-openssl

Logout and Login back again to refresh the interface.

Download an unused *key* from your [Sinip account](https://my.sinip.tech). Make sure that you're not currently using the same key in another device. Then, on the OpenWrt device's web interface, go to `VPN` -> `OpenVPN` and upload the *key* file on the `OVPN configuration file upload` section using the name "Sinip".

{% hint style="warning" %}
Each device must use a *key* that is not currently used by any other device in your *Sinip* network.
{% endhint %}

Check the `Enabled` box for the "Sinip" connection, click `start`, and then click `Save & Apply`.

If everything went well, the `Started` field of the "Sinip" connection will have a `yes` value.

![](/files/-MG5cG_Seme4yazXkObH)

{% hint style="success" %}
If the *"Started"* field is *"yes"*, your device is successfully connected to your *Sinip* network and ready to use!
{% endhint %}

## Remotely manage an OpenWrt device

Once your OpenWrt device is connected to you *Sinip* network, you can manage it from an admin PC or Smartphone using a web browser, just connect to its *Sinip* IP address.


---

# 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://docs.sinip.tech/sinip/lang-en/setup-remote-devices/openwrt.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.
