Set up GemiGuard VPN on Arch Linux
Install wireguard-tools, create the key and the configuration file in a terminal, and connect with wg-quick. The private key stays on the computer.
Tested on Arch Linux on 8 November 2026.
Before you start
- A computer with Arch Linux and a user account on it that can use
sudo. To check, runsudo -vand enter your password: no message means the account can usesudo. - A computer or phone with a browser, to open your account.
- A GemiGuard VPN account with time on it. The computer uses one of your five device slots.
Steps
Install WireGuard and nano
Open a terminal and install
wireguard-tools, which containswg-quick, and the text editornano.sudoasks for your own password;pacmanthen asksProceed with installation? [Y/n]: press Enter.sudo pacman -S --needed wireguard-tools nano
Let
wg-quickset the DNS serverwg-quicksets the DNS server throughsystemd-resolved. Check that it runs:systemctl is-active systemd-resolvedIf the answer is
inactive, turn it on and point/etc/resolv.confto it:sudo systemctl enable --now systemd-resolved sudo ln -sf ../run/systemd/resolve/stub-resolv.conf /etc/resolv.confThen, in both cases, install
systemd-resolvconfand confirm with Enter:sudo pacman -S systemd-resolvconf
Create the key and the configuration file
This creates
/etc/wireguard/gemiguard.conf, readable by root only, with a new private key and the lines that are the same for every server:sudo sh -c 'umask 077; cat > /etc/wireguard/gemiguard.conf' <<EOF [Interface] PrivateKey = $(wg genkey) Address = DNS = MTU = 1420 [Peer] PublicKey = PresharedKey = Endpoint = AllowedIPs = 0.0.0.0/0 PersistentKeepalive = 25 EOFShow the public key that belongs to it:
sudo sed -n 's/^PrivateKey = //p' /etc/wireguard/gemiguard.conf | wg pubkey
Add the computer in your account
On any computer or phone, open your account, then Devices, and choose Add device. Give it a name such as
Laptop, choose Use my device’s public key, enter the public key from step 3 in Device public key and click Add device.
Open the server details
On the new device, open Server details for manual setup. Keep it open for the next step.

Fill in the configuration file
Open the configuration file in
nano:sudo nano /etc/wireguard/gemiguard.confAfter each empty
=, type the matching value from the server details: Tunnel address afterAddress =, DNS afterDNS =, the Server public key of the server you want afterPublicKey =, Preshared key afterPresharedKey =and the same server’s Endpoint afterEndpoint =.Save with Ctrl+O and Enter, then close
nanowith Ctrl+X.
Connect
Bring the tunnel up:
sudo wg-quick up gemiguard
Connect at every start (optional)
To bring the tunnel up whenever the computer starts:
sudo systemctl enable wg-quick@gemiguard
Check that it works
- Run
sudo wg:latest handshakeshows a time from the last minute or two. - In your account, open Devices: Last connected for the computer shows the same.
Troubleshooting
wg-quicksaysresolvconf: command not found- Install
systemd-resolvconfas in step 2, then runsudo wg-quick up gemiguardagain. pacmansaysfailed retrieving filewith error 404- Your package lists are older than the mirror. Update the system and install in one go:
sudo pacman -Syu wireguard-tools(Arch wiki, “Partial upgrades are unsupported”). - Your account refuses the public key
- The key is 44 characters ending in
=. Run the second command of step 3 again and enter its output exactly. latest handshakedoes not appear- Our servers answer on the UDP port shown in your configuration file, which some networks block. Bring the tunnel down and bring up the configuration file of another server.
- I want another server
- Run
sudo nano /etc/wireguard/gemiguard.conf, replace the values afterPublicKey =andEndpoint =with the other server’s Server public key and Endpoint, save, then runsudo wg-quick down gemiguardandsudo wg-quick up gemiguard.
Switch it off
Bring the tunnel down, and remove the start-up service if you added it.
sudo wg-quick down gemiguard
sudo systemctl disable wg-quick@gemiguard
Get a configuration file for your device
Each account covers up to five devices. 6 months cost 29 USDT, 12 months 49 USDT, 24 months 79 USDT.