@@ -209,13 +209,15 @@ default. It can also generate VyOS/Vyatta configuration for EdgeOS/Unifi devices
209
209
such as the Edgerouter 4 using the
210
210
[ wireguard-vyatta] ( https://github.com/WireGuard/wireguard-vyatta-ubnt ) package,
211
211
as well as configuration for [ NixOS] ( https://nixos.org ) , ready to be added to
212
- ` configuration.nix ` environment definition.
212
+ ` configuration.nix ` environment definition. [ MikroTik RouterOS] ( https://mikrotik.com/software )
213
+ support is also available.
213
214
214
215
To change the config file format, set the following environment variables:
215
216
216
217
* ` DSNET_OUTPUT=vyatta `
217
218
* ` DSNET_OUTPUT=wg-quick `
218
219
* ` DSNET_OUTPUT=nixos `
220
+ * ` DSNET_OUTPUT=routeros `
219
221
220
222
Example vyatta output:
221
223
@@ -263,6 +265,24 @@ Example NixOS output:
263
265
};
264
266
};
265
267
268
+ Example MikroTik RouterOS output:
269
+
270
+ /interface wireguard
271
+ add name=wg0 private-key="CDWdi0IcMZgla1hCYI41JejjuFaPCle+vPBxvX5OvVE=";
272
+ /interface list member
273
+ add interface=wg0 list=LAN
274
+ /ip address
275
+ add address=10.55.148.2/22 interface=wg0
276
+ /ipv6 address
277
+ add address=fd00:1965:946d:5000:5a88:878d:dc0:c777/64 advertise=no eui-64=no no-dad=no interface=wg0
278
+ /interface wireguard peers
279
+ add interface=wg0 \
280
+ public-key="iE7dleTu34JOCC4A8xdIZcnbNE+aoji8i1JpP+gdt0M=" \
281
+ preshared-key="Ch0BdZ6Um29D34awlWBSNa+cz1wGOUuHshjYIyqKxGU=" \
282
+ endpoint-address=198.51.100.73 \
283
+ endpoint-port=51820 \
284
+ persistent-keepalive=25s \
285
+ allowed-address=10.55.148.0/22,fd00:1965:946d:5000::/64,192.168.10.0/24,fe80::1/64
266
286
267
287
# FAQ
268
288
0 commit comments