GemiGuard VPN
Get started
TelegramSignal

All Linux guides

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, run sudo -v and enter your password: no message means the account can use sudo.
  • 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

  1. Install WireGuard and nano

    Open a terminal and install wireguard-tools, which contains wg-quick, and the text editor nano. sudo asks for your own password; pacman then asks Proceed with installation? [Y/n]: press Enter.

    sudo pacman -S --needed wireguard-tools nano
    Terminal after sudo pacman -S --needed wireguard-tools nano: both packages installed
  2. Let wg-quick set the DNS server

    wg-quick sets the DNS server through systemd-resolved. Check that it runs:

    systemctl is-active systemd-resolved

    If the answer is inactive, turn it on and point /etc/resolv.conf to it:

    sudo systemctl enable --now systemd-resolved
    sudo ln -sf ../run/systemd/resolve/stub-resolv.conf /etc/resolv.conf

    Then, in both cases, install systemd-resolvconf and confirm with Enter:

    sudo pacman -S systemd-resolvconf
    Terminal: systemctl is-active systemd-resolved answers active, then systemd-resolvconf installed
  3. 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
    EOF

    Show the public key that belongs to it:

    sudo sed -n 's/^PrivateKey = //p' /etc/wireguard/gemiguard.conf | wg pubkey
    Terminal: the configuration file created, then the public key printed
  4. 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.

    Use my device’s public key chosen, the public key in Device public key and Add device outlined
  5. Open the server details

    On the new device, open Server details for manual setup. Keep it open for the next step.

    Server details for manual setup of the new device, outlined
  6. Fill in the configuration file

    Open the configuration file in nano:

    sudo nano /etc/wireguard/gemiguard.conf

    After each empty =, type the matching value from the server details: Tunnel address after Address =, DNS after DNS =, the Server public key of the server you want after PublicKey =, Preshared key after PresharedKey = and the same server’s Endpoint after Endpoint =.

    Save with Ctrl+O and Enter, then close nano with Ctrl+X.

    nano with the configuration file filled in (keys blurred here)
  7. Connect

    Bring the tunnel up:

    sudo wg-quick up gemiguard
    Terminal after sudo wg-quick up gemiguard, listing the address, MTU, resolvconf and routing steps
  8. Connect at every start (optional)

    To bring the tunnel up whenever the computer starts:

    sudo systemctl enable wg-quick@gemiguard
    Terminal after sudo systemctl enable wg-quick@gemiguard

Check that it works

  • Run sudo wg: latest handshake shows a time from the last minute or two.
  • In your account, open Devices: Last connected for the computer shows the same.

Troubleshooting

wg-quick says resolvconf: command not found
Install systemd-resolvconf as in step 2, then run sudo wg-quick up gemiguard again.
pacman says failed retrieving file with 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 handshake does 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 after PublicKey = and Endpoint = with the other server’s Server public key and Endpoint, save, then run sudo wg-quick down gemiguard and sudo 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
Terminal after sudo wg-quick down gemiguard and 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.

Get startedPricing

Guides for other Linux distributions