mirror of
https://github.com/netbirdio/docs.git
synced 2026-08-27 02:01:26 +02:00
Update mikrotik.mdx (#924)
Mount /var/lib/netbird instead of /etc/netbird, as configuration and private keys are kept in /var/lib/netbird in the current docker container.
This commit is contained in:
@@ -97,9 +97,9 @@ This assumes that our USB drive is mounted as `/usb1`:
|
||||
|
||||
### Prepare the NetBird container
|
||||
```shell
|
||||
/container/mounts/add name=netbird_etc src=disk1/etc dst=/etc/netbird
|
||||
/container/mounts/add name=netbird_varlib src=disk1/varlib dst=/var/lib/netbird
|
||||
```
|
||||
Note that we placed `/etc/netbird` on router's built-in flash. This is because we don't want someone stealing the USB drive
|
||||
Note that we placed `/var/lib/netbird` on router's built-in flash. This is because we don't want someone stealing the USB drive
|
||||
and getting access to router's private keys. This file doesn't really change all that often so it's ok to put it there.
|
||||
|
||||
```shell
|
||||
@@ -122,7 +122,7 @@ add key=NB_ADMIN_URL name=netbird value=YOUR_NETBIRD_ADMIN_URL
|
||||
|
||||
Create the container and trigger image pull from DockerHub:
|
||||
```shell
|
||||
/container/add remote-image=netbirdio/netbird interface=netbird root-dir=/usb1/netbird_filesystem mounts=netbird_etc envlist=netbird dns=10.71.71.1 hostname=netbird logging=yes │
|
||||
/container/add remote-image=netbirdio/netbird interface=netbird root-dir=/usb1/netbird_filesystem mounts=netbird_varlib envlist=netbird dns=10.71.71.1 hostname=netbird logging=yes │
|
||||
```
|
||||
Note that we had to set container's hostname to something other than router's identity because RouterOS doesn't allow hostname conflicts.\
|
||||
We have also set container's DNS resolver to router's DNS server. Feel free to tweak this if needed.
|
||||
|
||||
Reference in New Issue
Block a user