Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Virtual private networks
»
wireguard peer generator - QR code is invalid
« previous
next »
Print
Pages: [
1
]
Author
Topic: wireguard peer generator - QR code is invalid (Read 2372 times)
planetf1
Newbie
Posts: 41
Karma: 1
wireguard peer generator - QR code is invalid
«
on:
April 21, 2024, 01:30:33 pm »
opnsense 24.1.6 : I've created a wireguard interface, and used the peer generator to generate a configuration for an iOS device.
I did add a pre-shared key, and have also specified a DNS server, and also tried a keepalive (optional)
When using the *official* wireguard app on IOS, I get 'Invalid QR code' (with or without the PSK)
Is this expected to work?
«
Last Edit: April 21, 2024, 01:33:48 pm by planetf1
»
Logged
planetf1
Newbie
Posts: 41
Karma: 1
Re: wireguard peer generator - QR code is invalid
«
Reply #1 on:
April 21, 2024, 01:34:35 pm »
The generated config is:
[Interface]
PrivateKey = longkey
Address = 10.10.10.2/32
DNS = 9.9.9.9
[Peer]
PublicKey =
PresharedKey = longpsk
Endpoint = 1.2.3.4
AllowedIPs = 0.0.0.0/0,::/0
PersistentKeepalive = 90
Logged
greeno
Jr. Member
Posts: 79
Karma: 0
Re: wireguard peer generator - QR code is invalid
«
Reply #2 on:
April 21, 2024, 06:38:25 pm »
I've tried that also, same error !...
Logged
MoonbeamFrame
Jr. Member
Posts: 71
Karma: 2
Re: wireguard peer generator - QR code is invalid
«
Reply #3 on:
April 21, 2024, 06:46:24 pm »
Could you be missing the end-point port number?
And presuming you have a peer PublicKey value.
Logged
banuseka
Newbie
Posts: 14
Karma: 0
Re: wireguard peer generator - QR code is invalid
«
Reply #4 on:
April 22, 2024, 09:17:56 am »
port number is key here, true.
But also, one note that the port is not transfered to the peer "endpoint port" field, that has to be adapted manually.
Logged
user8636394367
Newbie
Posts: 1
Karma: 0
Re: wireguard peer generator - QR code is invalid
«
Reply #5 on:
October 16, 2024, 05:00:48 pm »
FWIW I'm using duckdns and autocorrect put a space between "duck" and "dns". That caused this error for me.
Logged
hakuna
Jr. Member
Posts: 57
Karma: 1
Re: wireguard peer generator - QR code is invalid
«
Reply #6 on:
October 31, 2024, 08:07:15 am »
I got similar experience on my Samsung Tablet ( Android )
On my phone ( GrapheneOS ) thankfully everything worked like a dream.
I used to have a dedicated WireGuard VPN VM coz it was a nightmare to get it working on OPNSense, with the latest release things are a lot smoother.
The workaround for me would be:
Save the content of Config tab into a text file
Install a package called qrencode on your pc assuming you are usiing Linux of course
Then run: qrencode -t ansiutf8 -r "config_file_you_saved.conf"
It will generate the QR code for you.
If this is a OPNSense thing, it will work.
That is how I used to generate the QR code for the self hosted WireGuard before moving to OPNSense.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Virtual private networks
»
wireguard peer generator - QR code is invalid