🐧 Linux Setup Guide
Set up WGuardVPN on Linux via command line.
1
Install WireGuard
Run: sudo apt install wireguard (Debian/Ubuntu) or sudo dnf install wireguard-tools (Fedora/RHEL)
2
Purchase Your Subscription
Go to wguardvpn.com/checkout, select your server, and complete payment.
3
Download Your Config
After payment, download the .conf file. Save it as /etc/wireguard/wguard.conf
4
Secure the Config
Run: sudo chmod 600 /etc/wireguard/wguard.conf (Important: keeps your private key secure)
5
Connect
Run: sudo wg-quick up wguard. To verify, run: curl ip.me and check it shows the VPN server IP.
Useful Commands
Check connection status:
sudo wg show
Disconnect:
sudo wg-quick down wguard
Auto-connect on boot:
sudo systemctl enable wg-quick@wguard
Verify your IP:
curl -4 ip.me
Troubleshooting
DNS not working?
Add DNS = 1.1.1.1 to the [Interface] section of your config file.
Permission denied?
Make sure you run commands with sudo and the config file has correct permissions (600).
Port blocked?
If your firewall blocks outbound UDP, you may need to allow port 51825.