Log in the pcWRT console. Click Apps then click WireGuard.
Click on the Server tab. WireGuard server is disabled by default. Click the “Enable” button.
If you enabled native Dynamic DNS, the “External Address” field will be filled with the DDNS name. Otherwise, it will be filled with the external IP address as seen by the router. If you have a third party DDNS service, you can put the DDNS name in the “External Address” field.
The Port, IP Address & Netmask fields will be filled with default values too. The defaults should be fine, but you may make changes if you want.
Click the Add button in the Peers section to add a WireGuard client configuration.
In the popup dialog, enter a name for the client configuration. Click the Generate Keys link to generate a pair of keys for the client. Then click OK to dismiss the dialog.
Click Save to save the server and client configurations. The Server Public Key field will be populated and WireGuard server will be started.
Configure a client
Using Android phone as example here.
Install the WireGuard app from Google Play Store.
Open the WireGuard app. Tap the + button at the bottom right corner. Tap Create from QR code.
Go back to the pcWRT console WireGuard page. Click on the QR code icon to bring up the QR code dialog.
Scan the QR code to set up the WireGuard client connection.
Caution: the client QR code contains both public and private keys for the client. Anyone with the QR code can connect to your WireGuard server. It is strongly advised that you don’t share the QR code by means where it could be lost or stolen (e.g., email etc.).
If you enjoyed this article please consider sharing it!