What's new

Wireguard WireQuard Device QR Code won't Scan from iPhone

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Chewie420

Regular Contributor
Hello I was troubleshooting my router and removed wg and now I am trying to get it working again.

I have wg installed and Server has been started. When I try to scan the QR code using WireGuard app on my iPhone nothing happens. I know I did it before but I can't remember for the life of me how to export my config for my device that I created.

not sure where to find it and now even when I click on option 7 to view QR code I am getting an error that says
***ERROR Missing/invalid Peer config
 
Last edited:
When I try to scan the QR code using WireGuard app on my iPhone nothing happens. I know I did it before but I can't remember for the life of me how to export my config for my device that I created - not sure where to find it and now even when I click on option 7 to view QR code I am getting an error that says
Code:
***ERROR Missing/invalid Peer config

You need to specify the name of the 'device' Peer... :rolleyes:

e.g. List ALL peers....
Code:
E:Option ==> peer

    Peers (Auto start: Auto=P - Policy, Auto=S - Site-to-Site)
Server  Auto  Subnet        Port   Annotate
wg21    Y     10.50.1.1/24  51820  # RT-AX58U Server 1
wg22    N     10.50.2.1/24  11502  # RT-AX58U Server 2

Client  Auto  IP                                                Endpoint              DNS             MTU   Annotate
wg11    N     10.67.125.168/32,fc00:bbbb:bbbb:bb01::4:7da7/128  89.45.90.197:51820    193.138.218.74        # Mullvad USA, Los Angeles (6in4)
wg12    N     10.68.28.1/32,fc00:bbbb:bbbb:bb01::5:1c00/128     194.110.113.51:51820  193.138.218.74        # Mullvad France, Paris
wg13    N     10.67.221.249/32                                  89.44.10.178:51820    193.138.218.74        # Mullvad OZ, Sydney
wg14    Y     10.13.55.61/24                                    146.70.51.98:1443     1.1.1.1         1292  # TorGuard USA, Miami
wg15    N     10.64.85.207/32,fc00:bbbb:bbbb:bb01::1:55ce/128   86.107.21.50:51820    193.138.218.74        # Mullvad Austria, Vienna (IPv4+IPv6)


    Peers (Auto=X - External i.e. Cell/Mobile/Site)
Device    Auto  IP                                      DNS         Allowed IPs      Annotate
SGS20_5G  X     10.50.1.2/32                            10.88.8.1   0.0.0.0/0        # SGS20_5G EIC's phone
iPhone    X     10.50.2.2/32                            10.88.8.1   0.0.0.0/0        # iPhone OK

<snip>

So to display the QRCode for a specific Road-Warrior 'device' Peer from the list of devices
e.g.
Code:
e  = Exit Script [?]

E:Option ==> 7 SGS20_5G

To use the QRCode to import the profile on the iPhone...
  • In the WireGuard iOS app, tap “Add a Tunnel”, or tap the plus symbol at the upper right corner.
  • In the dialog, tap “Create from QR code”. (Allow the WireGuard app to use the camera.)
  • When the camera activates; point the camera at the QR code.
  • Name the tunnel and tap “Save”. (Allow the WireGuard app to add VPN configurations.)
If scanning a QRCode is not practical, you can export the necessary profile from directory '/opt/etc/wireguard.d/'
  • e.g. '/opt/etc/wireguard.d/iPhone.conf' and import the file into the WireGuard iOS app.
 
Last edited:
Hi Thanks for you message, I got the QR Code to display but it is so large it takes up more than the screen can display and I am unable to scan it with my phone.


Can you tell me where the file can be exported from?
 
Hi Thanks for you message, I got the QR Code to display but it is so large it takes up more than the screen can display and I am unable to scan it with my phone.


Can you tell me where the file can be exported from?
Using either Xshell orMobaXterm allows you to dynamically make the QRCode fit on screen by using CTRL+ScrollWheel?

However you should be able to export the file from '/opt/etc/wireguard.d/iPhone.conf'
 

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top