Page 1 of 1

Generating WireGuard peer configuration on MikroTik without shell access

Posted: Fri Oct 06, 2023 9:36 am
by MajaswiEmmar
I am a new MikroTik user and I am currently testing version 7.10.2 on a VM. On Debian systems, I can generate a WireGuard peer configuration using the following command:

$ wg genkey | tee privatekey | wg pubkey > publickey
This command generates a private key and public key pair, and saves the public key to a file called publickey. I can then populate the WireGuard configuration file with the private and public keys, and send it to the user.

However, I cannot find a way to access the shell on MikroTik to run this command. Is there a way to generate a WireGuard peer configuration on MikroTik without shell access?

Re: Generating WireGuard peer configuration on MikroTik without shell access

Posted: Fri Oct 06, 2023 12:12 pm
by netravnen

Re: Generating WireGuard peer configuration on MikroTik without shell access

Posted: Fri Oct 06, 2023 2:18 pm
by llamajaja
Looking at 7.12rc, they have added CLI commands for generating QR codes so progress is being made. I asked if there was an intention to move this to winbox and also to provide some CLI examples for this. The more that ask the more likely it is done!

Re: Generating WireGuard peer configuration on MikroTik without shell access

Posted: Tue Mar 26, 2024 9:11 pm
by sebus46
Is that (QR code) available? Cannot find it on 7.14.1