Skip to content

Commit

Permalink
add instruction how to download image from dockerhub, and how to auto…
Browse files Browse the repository at this point in the history
…-start container on router boot
  • Loading branch information
Vladimir Grebenshchikov committed Nov 1, 2024
1 parent 6969a4a commit f006bff
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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)
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit f006bff

Please sign in to comment.