Community discussions

MikroTik App
 
MajaswiEmmar
just joined
Topic Author
Posts: 1
Joined: Sun Aug 06, 2023 3:59 pm

Generating WireGuard peer configuration on MikroTik without shell access

Fri Oct 06, 2023 9:36 am

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?
 
User avatar
netravnen
Frequent Visitor
Frequent Visitor
Posts: 61
Joined: Sun Dec 31, 2017 2:48 am

Re: Generating WireGuard peer configuration on MikroTik without shell access

Fri Oct 06, 2023 12:12 pm

 
llamajaja
Member Candidate
Member Candidate
Posts: 198
Joined: Sat Sep 30, 2023 3:11 pm

Re: Generating WireGuard peer configuration on MikroTik without shell access

Fri Oct 06, 2023 2:18 pm

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!
 
sebus46
Frequent Visitor
Frequent Visitor
Posts: 55
Joined: Sat Jun 17, 2023 4:59 pm

Re: Generating WireGuard peer configuration on MikroTik without shell access

Tue Mar 26, 2024 9:11 pm

Is that (QR code) available? Cannot find it on 7.14.1

Who is online

Users browsing this forum: No registered users and 19 guests