To bypass WireGuard and OpenVPN blocks using AmneziaVPN on a VPS, it is sufficient to rent a server with 1 vCPU, 1 GB RAM, and Ubuntu 22.04. This allows you to deploy obfuscated protocols like AmneziaWG or Cloak in a single click without deep system administration skills. This method remains the most effective in 2024-2025, as it hides the very fact of using a tunnel from Deep Packet Inspection (DPI) systems used by providers.
Why is an amneziavpn vps more effective than standard solutions?
Using an
amneziavpn vps solves the main problem of modern VPNs — protocol recognizability. Standard implementations of WireGuard and OpenVPN have characteristic "fingerprints" (signatures) that are easily identified by DPI systems. When a provider sees WireGuard UDP packets, they can instantly drop the connection or throttle the speed.
The Deep Packet Inspection (DPI) Problem
DPI systems analyze packet structure, size, and frequency. WireGuard, despite its speed and modern cryptography, has no built-in masking tools. If you decide to set up WireGuard on a VPS in its pure form, you may find that the connection is unstable in networks with strict filtering.
AmneziaWG as an answer to UDP blocks
The
amneziawg protocol is a modified version of WireGuard. The main difference lies in adding "junk" data to packet headers and changing their structure. This makes the traffic unrecognizable to automated censorship systems. At the same time, all the advantages of the original are preserved: high speed (up to 90% of the channel bandwidth) and low CPU resource consumption.
Choosing a server configuration for amnezia setup
A successful
amnezia setup does not require expensive dedicated servers. The application architecture is built on Docker containers, ensuring isolation and ease of deployment. However, it is important to consider network latency parameters and the type of disk subsystem.
Minimum and recommended system requirements
When choosing a plan, focus on the following indicators:
- Processor: 1 vCPU (preferably with a frequency of 2.5 GHz or higher).
- RAM: Minimum 1 GB RAM. Docker and several running containers (e.g., AmneziaWG + Cloak) consume about 400-600 MB.
- Disk: 10-20 GB NVMe. Read/write speed is not critical for a VPN, but NVMe speeds up container startup.
- Operating System: Ubuntu 22.04 LTS or Debian 11/12.
If you are looking for a DigitalOcean alternative, pay attention to locations in the Netherlands or Germany. These regions provide an optimal balance between privacy and access speed to the European segment of the internet.
Geolocation and network connectivity
For users in the CIS, ping is critically important. Servers in Amsterdam or Frankfurt usually show latency in the 30-55 ms range. This is sufficient for comfortable gaming and 4K video streaming. When choosing a provider, it is important that the channel is at least 100 Mbps (ideally 1 Gbps) without strict limits on traffic volume.
Looking for a reliable server for your projects?
VPS from $10/mo and dedicated servers from $9/mo with NVMe, DDoS protection, and 24/7 support.
View offers →
Step-by-step amneziavpn install: from Docker to the first connection
The
amneziavpn install process differs from the classic VPN setup via the console. You don't need to manually write iptables rules or generate keys in the terminal. All actions are performed through the AmneziaVPN desktop application (available for Windows, macOS, Linux).
Preparing the VPS and SSH access
After purchasing a VPS from Valebyte, you will receive the server's IP address and the root password. Before starting the installation, make sure that ports 80 and 443 are not occupied on the server if you plan to use web traffic masking (Cloak).
# Update system packages before installation
apt update && apt upgrade -y
# Check if ports are occupied
ss -tulpn | grep -E ':80|:443'
If the ports are free, you can proceed to using the application. Amnezia will independently install Docker on your server if it is not already installed.
Installation via the desktop application
To create
your own amnezia vpn, follow these steps:
- Download the AmneziaVPN client from the official website or GitHub.
- Click "Set up your server" and enter the IP address, login (root), and password (or SSH key).
- Select the level of control. For maximum protection against blocking, choose "Only protocols with obfuscation" or "Custom".
- The application will suggest installing protocols. It is recommended to start with AmneziaWG.
- Wait for the process to complete (usually takes 2-3 minutes).
During installation, the application connects to the server via SSH, installs Docker, downloads the necessary container images, and generates configuration files. Upon completion, you will have a connection ready for use.
Protocol comparison: AmneziaWG, Cloak, ShadowSocks, and OpenVPN
AmneziaVPN supports a wide range of protocols, each suitable for different tasks. Understanding their differences will help you correctly configure your
amneziavpn vps for your needs.
| Protocol |
DPI Resistance |
Speed |
Battery Drain (Mobile) |
Port |
| AmneziaWG |
High |
Very High |
Low |
UDP (Random) |
| Cloak (OpenVPN) |
Maximum |
Medium |
High |
TCP 443 |
| ShadowSocks |
Medium |
High |
Medium |
TCP/UDP |
| Xray (VLESS) |
Maximum |
High |
Medium |
TCP 443 |
When to use AmneziaWG
This protocol is ideal for everyday use. It works over UDP, which ensures minimal latency. If your provider only blocks "pure" WireGuard, AmneziaWG will work without issues. In the settings, you can change the
JunkPacketCount and
JunkPacketMinSize parameters to make the traffic even more chaotic for analysis systems.
Cloak: maximum masking as HTTPS
If AmneziaWG cannot cope, Cloak comes to the rescue. It wraps your traffic in a TLS layer, mimicking a normal website visit (e.g., Google or Microsoft). To an outside observer, it looks like a standard HTTPS request. This is the heaviest protocol in terms of CPU load, but it breaks through the toughest firewalls. Similar capabilities are provided by VLESS Reality, which is also popular among advanced users.
Configuring and importing configurations to mobile devices
One of the advantages of Amnezia is seamless synchronization between devices. Once you have configured the server on your PC, you don't need to repeat the procedure for your smartphone.
Using QR codes for smartphones
In the desktop application, select the configured profile and click on the "Share" or "Client Settings" icon. The application will generate a QR code or a configuration file.
- Install the AmneziaVPN mobile app (iOS or Android).
- Click "Add Server" and select "Scan QR code".
- After scanning, all protocol settings, including AmneziaWG obfuscation keys, will be imported automatically.
Split Tunneling
Amnezia allows you to choose which applications should work through the VPN and which should work directly. This is useful for mobile devices so that banking apps or local services work through the main IP, while blocked resources work through the
amneziavpn vps. In the application settings, you can create a list of domains or select specific programs to exclude from the tunnel.
Comparison of cost and performance of solutions
When choosing hosting for a VPN, it is important to consider not only the price but also the actual network performance. Many cheap providers resell resources (overselling), which leads to speed degradation during evening hours.
If you compare Vultr vs Valebyte, Valebyte offers more flexible traffic terms and no hidden fees for BGP sessions or additional IPs.
Characteristics of a typical VPS for Amnezia:
- Price: from $5 to $10 per month.
- Bandwidth: 1 Gbps Shared.
- Traffic: from 1 TB to unlimited (depending on location).
- Support: 24/7 technical assistance.
For those accustomed to the infrastructure of large clouds but looking for savings, Valebyte acts as an excellent AWS EC2 alternative, allowing you to reduce the cost of maintaining a VPN node several times over without losing connection quality.
Optimizing the security of your amnezia vpn
After completing the
amnezia setup, it is worth paying attention to the security of the server itself. Although Amnezia runs in Docker, basic OS protection is necessary.
- Change the SSH port: By default, SSH works on port 22, making it a target for brute-force attacks. Change it to any random port (e.g., 2244).
- Use SSH keys: Disable password authentication in the
/etc/ssh/sshd_config file.
- Configure Firewall: Allow only necessary ports (SSH, ports of selected VPN protocols).
Example of UFW (Uncomplicated Firewall) configuration for AmneziaWG (assuming port 51820):
ufw allow 2244/tcp
ufw allow 51820/udp
ufw enable
Remember that AmneziaVPN automatically manages rules inside Docker, but external host rules can block access if they are configured too strictly.
Technical nuances of AmneziaWG
Why does
amneziawg work where regular WireGuard fails? The secret lies in four parameters that can be edited in the application's advanced settings:
- S1 / S2 (Magic Headers): Initial bytes of the initialization packet. In regular WireGuard, they are fixed. Amnezia changes them to random values.
- H1 / H2 / H3 / H4: Additional headers that make the packet look like random TCP/UDP noise.
- Jc (Junk Packet Count): The number of junk packets sent before establishing a connection. This confuses handshake recognition algorithms.
- Jmin / Jmax: The size range of these junk packets.
These settings allow you to bypass even advanced analysis systems that look for patterns at the beginning of a session. If
your own amnezia vpn stops connecting, try changing these values in the application — this will update your traffic's "fingerprint."
Conclusions
For stable network access under blocking conditions, it is best to use AmneziaVPN on a VPS with the AmneziaWG protocol, as it combines high speed and effective traffic obfuscation. It is recommended to choose servers with NVMe disks and a location in Europe to ensure minimal latency and stable operation of Docker containers.
Ready to choose a server?
VPS and dedicated servers in 72+ countries with instant activation and full root access.
Start Now →