User:Q9f/Wireguard Configuration
Appearance
< User:Q9f
Unless you are using a custom peering setup, this works for most VPN providers:
- Install
wireguard-tools
andopenresolv
- Download wireguard
.conf
file. - Move it to
/etc/wireguard
- 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: