# Mikrotik

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

## Pre-requisites

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

* One or more Mirkotik 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 %}

You'll need to connect to you Mikrotik devices using [`WinBox`](https://mikrotik.com/download), you can download it from here: <https://download.mikrotik.com/routeros/winbox/3.24/winbox.exe>

{% hint style="info" %}
If you're on *Windows* you can use `WinBox` directly, if you're on *Linux* or *MacOS* use [Wine](https://www.winehq.org/).
{% endhint %}

## Connect a Mikrotik device to your Sinip network

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. Start `WinBox` and drag the *key* file (with *.ovpn* extension) to the *"Files"* section.

![](https://2680672255-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LnTr9AJw2LSkE1jBNGj-1199083947%2Fuploads%2Fgit-blob-64e5f93e9e6c8e6934ac27ddb257cac9ce02021d%2Ffiles.png?alt=media)

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

Start up a *terminal* from the *"New Terminal"* section and run the following command. Replace `<key_file_name>` with the name of the *key* file you've downloaded.

```
certificate import file-name=<key_file_name>.ovpn
```

It will ask for a *passphrase*, leave it blank and press *Enter*.

![](https://2680672255-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LnTr9AJw2LSkE1jBNGj-1199083947%2Fuploads%2Fgit-blob-6b4b4260c5ce09c977653a6284f6d1b16caea302%2Fcertificate.png?alt=media)

Go to the *"PPP"* menu and click the *"+"* button, then select *"OVPN Client"*.

![](https://2680672255-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LnTr9AJw2LSkE1jBNGj-1199083947%2Fuploads%2Fgit-blob-ee6a5e2eed6cbcd7f3d871b3e439cd3d22af4d6d%2Fppp.png?alt=media)

Fill up the configuration form with these values:

* **Connect To:** station1.sinip.tech
* **Port:** 1194
* **Mode:** ip
* **User:** sinip
* **Password:** *(leave this blank)*
* **Profile:** default
* **Certificate:** `<key_file_name>`.ovpn\_1

Replace `"key_file_name"` with the name of the *key* file you've downloaded.

* **Auth:** sha1
* **Cipher:** aes 128
* **Add Default Route:** *(unchecked)*

![](https://2680672255-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LnTr9AJw2LSkE1jBNGj-1199083947%2Fuploads%2Fgit-blob-018dee875d3c63c0fa9780122a5d1f12f1dca0a9%2Fovpn.png?alt=media)

Click on *"Apply"*.

If everything went well, in the bottom right corner you'll see the *"Status"* indicator as *"link established"* and then, after a few seconds, *"connected"*.

![](https://2680672255-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LnTr9AJw2LSkE1jBNGj-1199083947%2Fuploads%2Fgit-blob-fee06a6c0b2513428303ea4d0f52639663d1cc24%2Fovpn_connected.png?alt=media)

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

## Remotely manage a Mikrotik device

Once your Mikrotik device is connected to you *Sinip* network, you can manage it from an admin PC or Smartphone.

### From an `Admin PC`

Connect an `Admin PC` to your *Sinip* network by following the [Admin PC guide](https://docs.sinip.tech/sinip/lang-en/setup-admin-devices/pc).

Then, using the *Sinip* IP address of your Mikrotik device (the one listed in your [Sinip account](https://my.sinip.tech)), you can connect to it using [`WinBox`](https://mikrotik.com/download) or via the web interface with a web browser.

{% hint style="info" %}
The IP addresses in the following images are examples, replace them with the *Sinip* IP address of each of you devices listed in your [Sinip account](https://my.sinip.tech).
{% endhint %}

![](https://2680672255-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LnTr9AJw2LSkE1jBNGj-1199083947%2Fuploads%2Fgit-blob-83745d0bd0095b682d69545768336c8d554e769c%2Fwinbox_admin.png?alt=media)

![](https://2680672255-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LnTr9AJw2LSkE1jBNGj-1199083947%2Fuploads%2Fgit-blob-c4bfccad0b663819de9386f77e542077da82a8a8%2Fwebfig_admin.png?alt=media)

### From an `Admin Smartphone`

Connect an `Admin Smartphone` to your *Sinip* network by following the [Admin Smartphone guide](https://docs.sinip.tech/sinip/lang-en/setup-admin-devices/smartphone).

Then, using the *Sinip* IP address of your Mikrotik device (the one listed in your [Sinip account](https://my.sinip.tech)), you can connect to it using the Mikrotik apps you'll find on the app stores.

{% hint style="info" %}
The IP addresses in the following images are examples, replace them with the *Sinip* IP address of each of you devices listed in your [Sinip account](https://my.sinip.tech).
{% endhint %}

* Android: <https://play.google.com/store/apps/details?id=com.mikrotik.android.tikapp>
* iOS (iPhone): <https://apps.apple.com/us/app/mikrotik/id1323064830>

![](https://2680672255-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LnTr9AJw2LSkE1jBNGj-1199083947%2Fuploads%2Fgit-blob-360f1d355fa66d87ae83f49a71ce58b4ca544e7e%2Fandroid_mikrotik_download.png?alt=media)

Manage the Mikrotik devices connected to you *Sinip* network via Mirkotik apps.

![](https://2680672255-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LnTr9AJw2LSkE1jBNGj-1199083947%2Fuploads%2Fgit-blob-d8051583a70c7cc43ba877cf77ab093e4cc0615e%2Fmikrotik_app.png?alt=media)

Or use a web browser to access its web interface.

![](https://2680672255-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LnTr9AJw2LSkE1jBNGj-1199083947%2Fuploads%2Fgit-blob-d3f084434531c520381a84e17b1fe90a361634e7%2Fwebfig_android.png?alt=media)
