From f006bff1e031b41f04302372d1f8af2d55a319fb Mon Sep 17 00:00:00 2001 From: Vladimir Grebenshchikov Date: Fri, 1 Nov 2024 19:46:33 +0100 Subject: [PATCH] add instruction how to download image from dockerhub, and how to auto-start container on router boot --- README.md | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 66c5d0c..a3c82cb 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # How to setup AmneziaWG on Microtik router -## Prepare image +## Build Image 1. Build image for container, matching your architecure, tested on ARMv7 for RB4011. 2. Then save built image into tar archive. @@ -16,6 +16,23 @@ $ docker save amneziawg-mikrotik:latest > amneziawg-mikrotik.tar $ scp amneziawg-mikrotik.tar mikrotik: ``` +or, instead, you can download image as explained below: + +## Download Image + +You can pull image from dockerhub as usual, do not forget to specify correct +platform: + +- linux/arm/v7 -> for ARM-based routers, i.e. RB4011 +- linux/amd64 -> for x86-64 routers, like CHR + +```shell + +$ docker pull --platform linux/arm/v7 vgrebenschikov/amneziawg-mikrotik:latest +$ docker save amneziawg-mikrotik:latest > amneziawg-mikrotik.tar +$ scp amneziawg-mikrotik.tar mikrotik: +``` + ## Configure Mikrotik router 1. Setup Containers on mikrotik accoring to [Mikrotik Container](https://help.mikrotik.com/docs/display/ROS/Container) @@ -80,6 +97,12 @@ awg:/# awg-quick strip awg0 | wg setconf awg0 /dev/stdin Or you can restart contaner with `/container/stop 0` and then `/container/start 0` +To force container run on start - set start-on-boot=yes: + +```shell +/container/set 0 start-on-boot=yes +``` + ## Be careful awg-quick script is modified not to use firewall,