AmneziaWG 2 on Ubuntu & Debian

AmneziaWG 2 is a modified version of the WireGuard® protocol. Its main purpose is to bypass DPI (Deep Packet Inspection) and other VPN-blocking methods that easily detect "classic" WireGuard.

If your provider does not apply strict UDP filtering (does not apply strict filtering), we recommend using this protocol. In other cases, please configure the VLESS (XTLS) protocol via our guide via v2rayN.

If your provider doesn't restrict VPN protocols and services, you can set up a connection using the WireGuard® protocol using our guide.

Before setting up, please make sure that:

• You have Ubuntu 22.04 or Debian 11. On earlier versions the steps may be different, but on newer versions they are generally the same.
• You have received the AmneziaWG 2 configuration file from the Personal Area (in the guide - RSV_AWG2_Poland.conf).

Installing AmneziaWG and Required Packages

1. For Ubuntu (enter the commands one by one):

sudo apt install -y software-properties-common python3-launchpadlib gnupg2 linux-headers-$(uname -r)  
sudo add-apt-repository ppa:amnezia/ppa  
sudo apt update
sudo apt install -y amneziawg

1. For Debian (enter the commands one by one):

sudo apt install -y software-properties-common python3-launchpadlib gnupg2 linux-headers-$(uname -r) curl
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 57290828
echo "deb https://ppa.launchpadcontent.net/amnezia/ppa/ubuntu focal main" | sudo tee /etc/apt/sources.list.d/amneziawg.list
echo "deb-src https://ppa.launchpadcontent.net/amnezia/ppa/ubuntu focal main" | sudo tee -a /etc/apt/sources.list.d/amneziawg.list
sudo apt update
sudo apt install -y amneziawg

Preparing the Configuration

2. Create a directory for configurations if it does not exist yet:

sudo mkdir -p /etc/amnezia/amneziawg


3. Copy the configuration file to the AmneziaWG directory (enter the commands one by one):

cp ~/Downloads/RSV_AWG2_Poland.conf ~/
sudo cp ~/RSV_AWG2_Poland.conf /etc/amnezia/amneziawg/RSV_AWG2_Poland.conf
sudo chmod 600 /etc/amnezia/amneziawg/RSV_AWG2_Poland.conf

If you have multiple configurations (different countries), you can copy them under different names, for example: RSV_AWG2_Latvia.conf, RSV_AWG2_Sweden.conf, etc.

Connecting to the VPN

4. Activate the connection:

sudo awg-quick up RSV_AWG2_Poland


To disconnect from the VPN, enter the command:

sudo awg-quick down RSV_AWG2_Poland


If the interface name differs, use the name from step 3.


5. Check the connection status:

sudo awg show


6. Your device is now connected to the VPN.