1. Change sources.list on the client’s operation system:
Open a terminal and back up your sources.list:#
from the beginning of any deb-src
lines you want to activate.
2. Upgrade the System
3. Install AmneziaWG on Ubuntu 22.04
4. Copy AmneziaWG client config to Linux (Ubuntu)
Include the command:- username - the username of the server
- server-ip-address - the IP address of the server
- /root/awg/ - directory where located an amneziawg client config files
- wg-client1.conf - amneziawg config file
- /etc/amnezia/amneziawg/ - the local directory on your Linux machine
5. Get Your Amnezia WireGuard Configuration
The Amnezia wireguard configuration file must be downloaded from VPS. The.conf
file, is usually in the following format:
.conf
extension, e.g., wg0.conf
.
6. Move Configuration to AmneziaWG Directory
Move your configuration file to AmneziaWG’s directory, where wg-client1.conf this is a client config that was previously downloaded from the server:7. Start the WireGuard VPN Connection
To start the VPN connection using the configuration file, run the following command:8. Verify the Connection
To check if the connection is active, use:9. Disconnect from the VPN
To stop the VPN connection, use:10. Optionally Enable WireGuard on Boot
If you want the VPN to start automatically on boot, you can enable it with:Troubleshooting Tips:
- Ensure that your private key, public key, and endpoint details in the configuration are correct.
- If you face any connection issues, check the system logs for more detailed error messages: