Update, November 2026. Since v6.0.0 (October 2026) the installer sets up AmneziaWG 3.1 by default, and 2.0 is one flag away (
--protocol=2.0). I have updated the steps below. For a longer walkthrough, see How to install AmneziaWG 3.1 on your own VPS.
WireGuard is blocked or throttled in Russia, China, Iran, UAE, Turkmenistan, and a bunch of other countries. If yours stopped working, you can replace it with AmneziaWG on your own server. Your part takes a few minutes, the server does the rest on its own. Near-WireGuard speed, same crypto, but the traffic is much harder for DPI to recognize.
No Linux skills needed: you run three commands, answer a few questions, and the installer does the rest.
What You Need
- A clean VPS - any $3-5/month server works (1 GB RAM is plenty)
- Ubuntu 24.04 / 26.04 or Debian 13 on that server (a full VM such as KVM; OpenVZ or LXC containers won't work)
- SSH access - your provider gives you an IP, login, and password
Don't have a VPS yet? Grab one from DigitalOcean, Vultr, or wherever - just make sure the datacenter is outside your country. Cheapest tier is fine. One 2026 caveat for readers in Russia: some ISPs restrict traffic to certain hosting providers (Hetzner is the best-known case). The AS-blocking section in ADVANCED describes the symptom and a workaround that helps on some routes.
Step 1 - Install (3 commands)
SSH into your server and run:
wget -O install_amneziawg_en.sh https://github.com/bivlked/amneziawg-installer/releases/latest/download/install_amneziawg_en.sh
chmod +x install_amneziawg_en.sh
sudo bash ./install_amneziawg_en.sh
The installer asks a few questions (port, subnet, IPv6 and a few more). Pressing Enter keeps the default, and the defaults work for most setups. Just remember: when it asks to enable UFW or to reboot, type y, because there Enter means no.
It also offers to remove a few packages a VPN server does not need, including automatic security updates (unattended-upgrades). Add --keep-packages if you want to keep them.
Don't want to answer anything? --yes accepts the defaults and all confirmations:
sudo bash ./install_amneziawg_en.sh --yes
It reboots twice (system update, then the kernel module). After each reboot, reconnect over SSH and run the same command again, with the same flags - it picks up where it left off. The whole install takes about 20 minutes, almost all of it unattended.
AmneziaWG 3.1 or 2.0?
You get AmneziaWG 3.1 by default. If one of your devices only supports 2.0 (a router on stock firmware, Hiddify, an app you haven't updated in a while), add --protocol=2.0 to the last command. On Debian 12 with its stock kernel and on 32-bit ARM the installer picks 2.0 by itself.
Step 2 - Connect Your Devices
Quickest way: install AmneziaWG on your phone and scan the my_phone.png QR code from /root/awg/ inside the app (the phone camera alone won't import it). Done. You don't even have to copy the picture off the server: sudo bash /root/awg/manage_amneziawg.sh qr my_phone prints the QR right in the terminal.
Which client to use:
| Platform | Client | 3.1 since | Link |
|---|---|---|---|
| All platforms | Amnezia VPN | 5.0.1.5 | Download |
| Windows | AmneziaWG | 3.1.0 | Download |
| Android | AmneziaWG | 3.1.4 | Google Play |
| iOS, macOS | AmneziaWG | 3.1.4 | App Store |
| Android (FOSS) | WG Tunnel | 5.6.0 | GitHub / APK |
The "3.1 since" column matters for a 3.1 server; a 2.0 server works with older versions that support 2.0. Versions checked in November 2026, the full list with dates is in ADVANCED.en.md.
Each client gets these files in /root/awg/:
-
.conf- the config to import into AmneziaWG or WG Tunnel -
.png- the same config as a QR code -
.vpnuri- avpn://link for one-tap import into Amnezia VPN, and.vpnuri.pngis that link as a QR code
Step 3 - Verify
Connect in the app, then open a browser and go to ifconfig.me. If you see your server's IP instead of your home IP - you're on the VPN.
On the server:
sudo awg show awg0
Look for latest handshake under your peer - if it shows a recent timestamp, you're good.
Managing Clients
Need to add a phone, laptop, or share access with someone?
# Add a new client
sudo bash /root/awg/manage_amneziawg.sh add my_laptop
# Give someone temporary access (auto-expires)
sudo bash /root/awg/manage_amneziawg.sh add guest --expires=7d
# See who's connected and how much traffic they used
sudo bash /root/awg/manage_amneziawg.sh stats
# Remove a client
sudo bash /root/awg/manage_amneziawg.sh remove guest
# List all clients
sudo bash /root/awg/manage_amneziawg.sh list
Each add generates a new .conf + QR code + vpn:// URI.
What's Running Under the Hood
The installer sets up AmneziaWG 3.1 (or 2.0) - a WireGuard fork that adds padding and sends junk and decoy packets before the handshake. 2.0 randomizes the packet type values, 3.1 encrypts the headers. Each new install gets randomized obfuscation settings and, with 3.1, its own header-encryption key, which makes the traffic harder to fingerprint.
It runs as a kernel module (not the slower userspace Go implementation), so you get near-WireGuard speeds. The tunnel uses the same core cryptography as WireGuard - Curve25519, ChaCha20-Poly1305.
The installer also hardens the server - UFW firewall with deny-all policy (if you agree to enable it), Fail2Ban, and some kernel/network tuning.
I wrote a detailed breakdown of how the obfuscation works here.
Want a more detailed guide?
The full VPS deployment walkthrough lives at INSTALL_VPS.md on GitHub. It covers provider selection, OS choice, common troubleshooting (PPA fallback, DKMS recovery, mobile carrier patterns), and the full update + uninstall lifecycle.
What's new since publication
The installer keeps moving. v6.0.0 (October 2026) made AmneziaWG 3.1 the default, v6.2.0 brought 3.1 to 64-bit ARM, and v6.3.0 added manage port to change the port on a running server. Earlier, v5.15.0 added opt-in dual-stack IPv6 inside the tunnel (--allow-ipv6-tunnel). For everything else, see the releases page.
Links
- ⭐ amneziawg-installer on GitHub - star it if it helped you
- Amnezia VPN Client
- How to install AmneziaWG 3.1 on your own VPS - the longer guide
- AmneziaWG docs
Router firmware with AWG support:
- AWG Manager - Keenetic
- AmneziaWG for Merlin - ASUS
Hit a problem? Open an issue or drop a comment below.
Top comments (0)