-
Update Your System
• Open a terminal window.
• Run the following commands to ensure your system is up-to-date:
sudo apt update && sudo apt upgrade -y
-
Install WireGuard
• Install the WireGuard package by running the following command:
sudo apt install wireguard -y
• If the package is unavailable, ensure the repository supports WireGuard or follow alternative installation methods from the official WireGuard website. -
Obtain Your VPN Configuration
• Get the WireGuard configuration file (*.conf) from your VPN provider.
• Save the file to your home directory or another secure location.
• Alternatively, if provided manually, prepare to enter the configuration details. -
Set Up the Configuration
• Copy the configuration file to the WireGuard directory:
sudo cp /path/to/your-config.conf /etc/wireguard/
• Replace/path/to/your-config.conf
with the actual path to your configuration file. -
Activate the VPN
• Start the WireGuard interface using the command:
sudo wg-quick up your-config
• Replaceyour-config
with the name of your configuration file (without the *.conf* extension). -
Verify the Connection
• Check your public IP to ensure the VPN is active:
curl https://ipinfo.io
• Confirm that the IP matches the location of your order. -
Deactivate the VPN
• To disconnect, run:
sudo wg-quick down your-config
-
Optimize and Troubleshoot
• Ensure your firewall allows WireGuard traffic by checking or updating youriptables
orufw
rules.
• Check WireGuard’s logs for issues:
sudo journalctl -u wg-quick@your-config
• If problems persist, verify your configuration details or contact our support for assistance.