Community discussions

MikroTik App
 
Karbust
just joined
Topic Author
Posts: 3
Joined: Wed Apr 03, 2024 6:01 pm

Bug on Wireguard Peer Private Key Generation

Wed May 08, 2024 10:25 am

Hello,

Yesterday I was configure Wireguard for the first time on my RB5009 running the latest version of RouterOS 7.14.3 (I also attempted on 7.14.2, same bug) and I noticed that the private key when being autogenerated on a peer is always the same.

Here is a quick video (I cannot attach video files to the topic):
https://cdn.karbust.com/BedO8/dIROhUtO55.mp4/raw

As you can see from it, the private key is always "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEA=", but it always generates a different public key, thus making connections from clients fail when handshaking.

I generated key pairs from this website and then I could establish handshake, as intended. https://wg.orz.tools

This doesn't happen on the server's key pair generation, only on the peer from what I can tell.

This appears to be a bug to me, not sure if this is the best place to report it or not.
 
sindy
Forum Guru
Forum Guru
Posts: 10233
Joined: Mon Dec 04, 2017 9:19 pm

Re: Bug on Wireguard Peer Private Key Generation

Sun May 12, 2024 12:03 pm

not sure if this is the best place to report it or not.
If you have a reproducible bug like this, file a support request at https://help.mikrotik.com/servicedesk/servicedesk .This is a forum of fellow users that can help you with configuration questions or issues but cannot fix bugs, and Mikrotik staff does keep an eye on the forum but there is no guarantee they would spot everything.

The first thing they will ask for will be the supout.rif file showing the issue so attach it already when opening the ticket.
 
Karbust
just joined
Topic Author
Posts: 3
Joined: Wed Apr 03, 2024 6:01 pm

Re: Bug on Wireguard Peer Private Key Generation

Mon May 13, 2024 4:29 pm

not sure if this is the best place to report it or not.
If you have a reproducible bug like this, file a support request at https://help.mikrotik.com/servicedesk/servicedesk .This is a forum of fellow users that can help you with configuration questions or issues but cannot fix bugs, and Mikrotik staff does keep an eye on the forum but there is no guarantee they would spot everything.

The first thing they will ask for will be the supout.rif file showing the issue so attach it already when opening the ticket.
Thank you for the tip. I filed the support request. It is reproduceable through the GUI (as shown in the video), no idea about the CLI commands to reproduce it as I didn't test it through there.
 
WartraxX
just joined
Posts: 1
Joined: Tue May 14, 2024 1:52 pm

Re: Bug on Wireguard Peer Private Key Generation

Tue May 14, 2024 1:53 pm

Hello

Same problem on ROS 7.14.3

Best regards
 
Karbust
just joined
Topic Author
Posts: 3
Joined: Wed Apr 03, 2024 6:01 pm

Re: Bug on Wireguard Peer Private Key Generation

Fri May 17, 2024 1:25 pm

As I'm not comfortable installing a non-production final release, I'm unable to test if it is working. Here is the message I got from support:

Image
 
ksev
just joined
Posts: 1
Joined: Tue May 21, 2024 5:45 am

Re: Bug on Wireguard Peer Private Key Generation

Tue May 21, 2024 5:48 am

I've also been running into this issue. I spent a couple hours trying to get it to work.

I'm new to wireguard so I'm glad I found this and it wasn't just a knowledge issue.

Who is online

Users browsing this forum: Bing [Bot], dystefanov, jaclaz, oliee0, rapport and 51 guests