Advanced Setup Guides

Install AmneziaWG on Ubuntu 22.04

21min

What is Amnezia VPN

Amnezia VPN is a project developed by Russian internet activists, focused on finding solutions to combat state censorship. It is a free, open-source application that allows users to setup personal VPNs on their own servers using protocols like WireGuard, OpenVPN, and Shadowsocks. Created with the goal of bypassing censorship, Amnezia effectively undermines Deep Packet Inspection (DPI) by obfuscating traffic, making it harder for DPI systems to detect or block VPN usage. Amnezia is effective even in heavily restricted countries such as Russia, China and Iran. Amnezia WG VPN (AmneziaWG) is particularly designed to function in the harshest internet climates, where conventional VPNs, may struggle.

What is AmneziaWG VPN?

AmneziaWG VPN specifically refers to the WireGuard protocol implementation in Amnezia. Amnezia introduced AmneziaWG, an enhanced version of WireGuard designed for use in the most restrictive internet environments. AmneziaWG is optimized for environments with extreme censorship and can bypass sophisticated blocking mechanisms better than a standard WireGuard installation.

How to install AmneziaWG VPN on a VPS

  1. Install Ubuntu 22.04 on your EDIS Global VPS VPS in Estonia work great in Russia, VPS in Amsterdam work well in Iran
  2. Connect to the VPS server using SSH protocol:
Shell

  1. Change sources.list, execute the following commands:
Shell

  1. Allowing traffic routing for the AWG driver:
Shell

  1. Reboot your system:
Shell

  1. Create a new directory
Shell

  1. Install AmneziaWG packages:
Shell

  1. Check the availability of all necessary drivers in the system:
Shell

  1. If the last command does not work and doesn’t show anything try to use this command:
Shell

  1. Install new utilities:
Shell

Shell

  1. Download script in folder awg:
Shell

  1. Generating the main AWG config:
Shell

  1. Generate a config template that will be used to create client configs and QR codes:
Shell

  1. Add new clients in the main config:
Shell

  1. Generate client configs:
Shell

  1. UP the AWG tunnel interface:
Shell

  1. Check status AWG:
Shell


You can copy these awg configs (my_amneziawg_client1, my_amneziawg_client2) to your client machine and connect to amnesia wg:



Links:

Ameziawg guides: