MT6000 (Flint2) : Wireguard server and Galaxy S22 Android Client

Hello, I'm new in the GL.iNet universe with a GL-MT6000 Flint2 router which replace a Syology RT2600AC.

I set up the Wireguard server, and after some tweaking of settings, I managed to have a working connexion between my iPhone 15+ (iOS 17.5.1) with no trouble to import the conf with the QR-Code into the wireguard app. With my 4/5G connexion, I can get into my LAN at home, and use all the ressources, and get the IP address from my home.

But on my wife's Galaxy S22, I can't import with the QR-Code nor with the .conf file : I get an error I don't really remember, but something with "wrong entry in section"... the app isn't very volubile... and my wife is now asleep and I'll go too, so I can't see exactly what error it gave me.

Is anyone had this problem? And have a way to get the app import the configuration?

Thanks in advance.

Miles

Which app do you use on your Samsung? The official WireGuard one?

Hello, yes, the official WireGuard app (last update end 2023).

I remember that the qrcode isn’t recognized on the S22: no error but no import.

That's pretty weird because WireGuard config is always the same, there is no "real" way why it should not work.

Pls try to cature this screen and post here

Ok when I can capture the message I’ll post it here.

Hello,
Here a screenshot when importing the .conf generated by the MT6000:

ANd, here, the one when the QRcode has been recognize (which is not always the case):

Sounds for me like the name is the problem. Is it named like the existing profile? Maybe you need to delete it first. Or maybe it contains special characters?

1 Like

The name used for the wireguard client is : Galaxy S22 Cecile
Ths same config, od QR-Code works fine with my iOS iPhone 15+
So I don't know why it fails on the S22...

edit : and as you can see, I have importer another wireguard server (on Home Assistant).

You cannot have "space" in the file names if you import files.

Can your UI solve this by replacing blank spaces when the user add it to the file names?

for f in *\ *; do mv "$f" "${f// /_}"; done

Are you sure ?
I can try without any space in the filename.
But the wireguard app on iOS doesn't cause me trouble with this name: "iPhone 15+ Pierrick".

I just try to replace the space with _ in the filename: "Galaxy_S22_Cecile"
But, I have the same error message:

edit:
I made some tests with the file name.


"S22_Cecile12345" is the maximum character... "S22_Cecile123456" gave the previous error.

But, whatever name I set in the GL.iNet webUI, the QRCode can't be scanned... I see some tiny square around the line of the camera trying to import the configuration with the qrcode on my computer screen, and one time on 100, I get this error:

Finally got an Andriod and find the issue. Will asking developers to have a check.

2 Likes

Hello @alzhao
Great :+1:t2:
Have you been able to reproduce the QRCode bug too?

Yes. It seems that QR code has different algorithms.

The one we are using is not compatible with the Andriod wireguard app, for some reason. But if you scan using other QR code scanner, you can see there is nothing wrong with the QR.
Someone also said it only has problems in certain browsers.

But if you copy this wireguard content in text and generate QR on some QR generator website, and you can scan with the Andriod wireguard app.

It is more a problem of the Wireguard app. But surely we can check the QR algorithms.

If you have some trusted website you can copy the wireguard conf and generate QR there.

1 Like

Unfortunately, I don't know such site...
Maybe someone have an app (macOS or Linux, or windows) to do such a thing...

Thank you for investigate :slight_smile:

This one should be fine: https://qr.15c.me/tiny-qr.html
See GitHub - six-two/qr.html: A standalone offline HTML5 QR code generator

1 Like

Thank you @admon
I try the offline qrcode generator after cloning the repo on my mac, and it works fine, I mean the generatged QRCode :slight_smile: