Running the wireguard
command on your adblocker virtual machine will run the Wireguard configuration command line utility. A configuration file is generated, and a QR Code which can be consumed by the Wireguard mobile apps is also printed in the terminal. The VPN configuration can be scanned using the Android or iOS Wireguard apps, or copy and pasted from the generated .conf file, to your device.
If you are setting up a Wireguard Client on a computer or server, obtain the contents of the wg0-client-username.conf file and copy it to the device you want to connect from.
You can print the contents of the wg0-client-username.conf file in the command line interface of the Wireguard Server, by running this command:
sudo cat /root/wg0-client-username.conf
The output can be copy and pasted into a blank text file on your client device, and this configuration file should be saved on your client device as wg0-client-username.conf
Install the official Wireguard Android App and use a QR Code to import your VPN profile.
To configure a persistent tunnel on Android, that reconnects after the device restarts, you have to edit the system-wide VPN settings:
Device | Steps to enable Always-on VPN Tunnel |
---|---|
Pixel Phones | Settings > Network & Internet > Advanced > VPN > ⚙ (for Wireguard) enable Always-on VPN |
Samsung Phones | Settings > Connections > More Connection Settings > VPN > ⚙ (for Wireguard) enable Always-on VPN |
Huawei Phones | Settings > More connections > VPN > press and hold (on Wireguard) > Edit enable Always-on VPN |
Install an open source Wireguard plugin for Network Manager.
From the Arch User Repository, you can install networkmanager-wireguard-git.
- Right click on Network Manager applet
- Select Modify connections
- At the bottom left, click on the
+
symbol - From the dropdown menu, select Import saved VPN configuration and confirm
- Select the wg0-client-1.conf file and confirm.
- You are free to change the name of the VPN configuration if you want. Once done, click Save and you should see the VPN connection appear in the list.
Install the official Wireguard iOS App and use a QR Code to import your VPN profile.
Steps to enable Always-on VPN Tunnel:
- Edit the Tunnel in the Wireguard App
- Click Edit on the top right
- Scroll down to On-Demand Activation and Enable Cellular and Wi-Fi toggles
Install the official Wireguard macOS Client and use the wg0-client-1.conf file to import your VPN profile.
Install the official Wireguard Windows Client and use the wg0-client-1.conf file to import your VPN profile.
Get the latest Windows Client from wireguard.com/install