Jump to content

User:Q9f/Wireguard Configuration

From ArchWiki

Unless you are using a custom peering setup, this works for most VPN providers:

  1. Install wireguard-tools and openresolv
  2. Download wireguard .conf file.
  3. Move it to /etc/wireguard
  4. Enable/disable it with wg-quick

Sample config:

[Interface]
PrivateKey = uYoUrPrIvAtEkYeHeRe/x3VE=
Address = 10.13.1.94/32
DNS = 1.1.1.1
 
[Peer]
PublicKey = oPeErPuBlIcKyEhErE0czQ=
PresharedKey = PrEsHaReDkEyHeRe+RKtMo=
Endpoint = 12.34.56.78:9876
AllowedIPs = 0.0.0.0/0, ::/0

Requires root:

# pacman -S openresolv wireguard-tools
# mv path/to/wireguard.conf /etc/wireguard/wg0.conf
# wg-quick up wg0

Disable it:

# wg-quick down wg0

Reference: