Self-hosted VPN client connecting through an encrypted tunnel to a private cloud server

Self-hosted VPN guide

Amnezia VPN Self-Hosted Guide 2026

Amnezia VPN is an open-source VPN app that can create and manage a VPN on your own VPS. The short version: if you want a private server IP, modern anti-DPI protocols, and more control than a commercial VPN gives you, Amnezia self-hosted is one of the most practical routes in 2026.

Quick answer

  • Best use case: bypassing VPN blocking with a private VPS IP and AmneziaWG 2.0 or XRay Reality.
  • Minimum server: KVM VPS, public IPv4, x86-64 CPU, 1 GB RAM, 10 GB SSD, Ubuntu 22.04/24.04 or Debian 12/13.
  • Main trade-off: you avoid a consumer VPN provider, but you still trust your VPS host and must maintain the server.
  • What this guide covers: server requirements, setup steps, protocol choice, privacy limits, and fallback options.

What is Amnezia VPN and how does it work?

Amnezia VPN self-hosted is a free, open-source way to run a personal VPN on your own server. You rent a VPS, enter its SSH details in the Amnezia app, and the app installs the server-side components for you. The official documentation describes Amnezia as a multi-protocol client that can set up your own VPN server, then install Docker and run Amnezia server containers over SSH.

This is different from subscribing to a normal VPN provider. With a commercial VPN, you use shared servers operated by the provider. With Amnezia self-hosted, the exit IP is your VPS. That can be useful in censored networks because your IP is not automatically part of a well-known consumer VPN pool.

Self-hosting is not magic anonymity. Your home ISP still sees that you connect to your VPS. Your VPS provider still controls the physical or virtual infrastructure. Websites still see the VPS IP address. What changes is the trust model and the blocking profile.

What is current in 2026

Amnezia now presents three consumer paths: Self-hosted for your own VPS, Amnezia Free for selective access to specific blocked resources, and Amnezia Premium as a managed classic VPN. This guide focuses on the self-hosted path, but the distinction matters because many searches for "Amnezia VPN" mix all three.

Self-hosted

Free app, your VPS, one location per server, best control, more maintenance.

Amnezia Free

Free selective routing for specific blocked apps/sites, not a full-device VPN for all traffic.

Amnezia Premium

Managed VPN using AmneziaWG 2.0 and XRay protocols, with 20 locations advertised by Amnezia at this review.

The most important technical update is AmneziaWG 2.0. Amnezia says the protocol is supported in app version 4.8.12.9 and later, disguises traffic as common network protocols such as QUIC or DNS, and requires new guest keys/configs instead of upgrading old AmneziaWG 1.0 keys in place. GitHub marked Amnezia client 4.8.19.0 as the latest release when this page was updated.

Amnezia VPN features and capabilities

Amnezia's self-hosted mode is best understood as a server installer, VPN client, and protocol manager in one app. The features that matter most are practical: can it create a working server, can it survive filtering, and can you manage access without rebuilding the server by hand?

  • Self-hosted VPN deployment: enter your VPS SSH details and let Amnezia install the server components.
  • Multiple VPN protocols: use simple options such as WireGuard in low-risk networks, or masked protocols when blocking is active.
  • Shadowsocks support: Amnezia documents Shadowsocks, but warns that some DPI systems can recognize it; use stronger masking when censorship is high.
  • AmneziaWG 2.0: a WireGuard-derived option designed to reduce recognizable WireGuard traffic patterns.
  • XRay Reality: a TCP/TLS-looking option for networks where UDP or obvious VPN traffic is unreliable.
  • Split tunneling: route only selected apps or IP ranges through the VPN when a full-device tunnel is unnecessary.
  • Kill switch: block traffic if the VPN drops so your real connection is not used by mistake.
  • Connection sharing: share access with trusted devices or people without giving everyone your VPS login.
  • Router options: official instructions cover AmneziaWG on supported Keenetic/Netcraze and OpenWrt routers, so a whole home network can use the tunnel when the hardware and firmware match the requirements.

Amnezia VPN server requirements

The common setup mistake is renting a tiny or incompatible VPS and assuming any Linux server will work. The official requirements are more specific than older Amnezia guides often imply.

Requirement Current recommendation Why it matters
Virtualization KVM VPS Container virtualization such as OpenVZ/LXC is not supported.
IP address Public IPv4 Amnezia documents IPv4 as required; IPv6-only servers are not enough.
CPU x86-64 / amd64, 1 vCPU minimum Amnezia documents x86-64 support; ARM VPS plans are not the safe choice.
Memory 1 GB RAM minimum; 2 GB for 10+ users More users and heavier protocols need more memory headroom.
Disk 10 GB SSD minimum Docker containers and service data need persistent space.
OS Ubuntu 22.04/24.04 or Debian 12/13 These are the officially supported Linux distributions.

Use SSH keys where possible, keep the server updated, and avoid piling unrelated services onto the same VPS. If the server already hosts production workloads, use a separate VPN server instead of letting a VPN installer modify firewall and Docker state on that box.

Which Amnezia protocol should you choose?

Do not choose the protocol only by speed. In censored networks, detectability matters as much as throughput. Amnezia's own protocol guidance says not to use plain OpenVPN, WireGuard, or IKEv2 without masking in countries with high censorship because the VPS IP can be blocked.

Protocol Use it when Trade-off
AmneziaWG 2.0 You need fast UDP-based traffic obfuscation and current anti-DPI behavior. Requires current clients and new configs/keys for the 2.0 protocol.
XRay Reality UDP is blocked or active probing is a major risk. TCP/TLS camouflage requires careful choice of a masking website.
OpenVPN over Cloak You need OpenVPN compatibility plus web-traffic-style masking. Usually heavier and slower than AmneziaWG; setup choices matter.
Shadowsocks You need a lightweight TCP proxy-style option or compatibility with tools such as Outline. Some DPI systems can recognize it; not the first choice for the strictest blocking.
WireGuard Your network does not aggressively block VPNs and speed matters most. Plain WireGuard has recognizable packet patterns.
OpenVPN or IKEv2 You need broad compatibility in low-censorship networks. Easier to detect and block than masked protocols.

For most self-hosted users in restrictive networks, the sensible order is: AmneziaWG 2.0 first, then XRay Reality if UDP or AmneziaWG is unreliable. Keep plain WireGuard as a convenience option for networks where blocking is not your main problem.

Step-by-step: set up Amnezia VPN on your own VPS

1. Rent the right VPS

Pick a KVM VPS in the country where you want your exit IP. One server equals one main VPN location, so a Netherlands VPS gives you a Netherlands exit IP, a Germany VPS gives you a Germany exit IP, and so on.

If your goal is censorship resistance, avoid the cheapest hosts that are already heavily abused or widely blocked. A normal cloud VPS with clean IPv4 reputation is usually more useful than a provider advertised mainly for bulk proxy traffic.

2. Secure SSH before connecting Amnezia

Confirm that you can log in over SSH using a password or private key. A root login can work, but a sudo-capable user with key authentication is cleaner. Before installation, update the operating system and make sure you know how to access the provider firewall.

3. Install the current Amnezia client

Download Amnezia from the official downloads page or the GitHub releases page. Amnezia publishes clients for Windows, macOS, iOS, Android, and Linux. If the official site is blocked where you are, Amnezia also publishes a mirror link from its site.

4. Add the server in Amnezia

In the Amnezia app, create a new self-hosted connection, enter the server IPv4 address, SSH username, SSH port if it is not 22, and either the password or private key. Amnezia will connect over SSH, install Docker if needed, and deploy server containers for the VPN protocols you choose.

5. Install one protocol first

Start narrow. Install AmneziaWG 2.0 first if you are dealing with filtering, or WireGuard if this is a low-risk private tunnel. Add XRay Reality only if you need TCP/TLS-looking camouflage or if UDP does not work from your network.

6. Change risky defaults and test ports

Amnezia documents that AmneziaWG may be installed with a random port by default and warns that some ISPs block UDP traffic on high ports. If connection attempts fail, test a lower unused port below 9999 and verify that the VPS provider firewall allows it.

7. Configure DNS, kill switch, and split tunneling

Set DNS deliberately so blocked or sensitive lookups do not leak to your ISP. Enable the kill switch if your device must not fall back to the raw connection when the VPN drops. Use split tunneling for specific apps or IP ranges instead of forcing everything through the tunnel when you only need access to a few blocked services.

8. Verify the tunnel before relying on it

After connecting, verify your public IP, DNS resolver behavior, and tunnel failure mode. Do not assume the setup is safe just because the app says it is connected.

  • Check your public IP and compare it with the VPS country.
  • Run a DNS leak check and confirm it does not show your ISP resolvers.
  • Disconnect the VPN unexpectedly and confirm the kill switch behaves as expected.
  • Test the blocked services that matter to you before sharing the setup with others.

DoVPN has related checks for DNS leaks, WebRTC leaks, and VPN kill switches.

9. Add phones, laptops, and routers carefully

Once the first device works, add other devices through Amnezia's sharing flow or by importing supported configuration files. Do not give routine users SSH access to the VPS unless they also need to administer the server.

For routers, follow Amnezia's current Keenetic/Netcraze or OpenWrt instructions and check the required firmware, router model, and AmneziaWG version. Router-level VPN is useful for devices without native VPN apps, but a bad router policy can also send more traffic through the VPS than you intended.

Why self-hosted Amnezia matters for VPN blocking

A commercial VPN gives you many locations, but its server ranges are easier for censors and streaming platforms to identify. A fresh self-hosted VPS can look less like a mass VPN endpoint, especially when paired with AmneziaWG 2.0 or XRay Reality.

The trade-off is responsibility. If your VPS IP gets blocked, abused, or reported, you deal with the hosting provider. If you misconfigure SSH, DNS, firewall rules, or split tunneling, there is no commercial VPN support team to fix it for you.

Privacy and security limits

Amnezia self-hosted is often better described as control-focused rather than anonymous. You control the VPN server, but you also become responsible for it.

What improves

  • Your traffic no longer exits through a consumer VPN provider's shared server pool.
  • You can choose the VPS country, host, logging posture, and installed protocols.
  • Your server IP may be less obvious to basic VPN blocklists.
  • You can use AmneziaWG 2.0 or XRay Reality in networks where plain VPNs fail.

What does not improve automatically

  • Your VPS provider can still associate the server with your account and payment method.
  • Your server IP is dedicated enough to point back to your VPS if abused.
  • Browser fingerprinting, account logins, cookies, and payment trails still identify you.
  • Bad firewall, SSH, or update hygiene can make your server less safe than a reputable VPN.

Legal and personal-risk limits

VPN and censorship-circumvention rules vary by country and can change quickly. A self-hosted VPN can make blocking harder, but it does not remove legal, employment, school, or personal-safety risk. If you are in a high-risk environment, test more than one access method and avoid making a single VPS your only way online.

Maintenance checklist

  • Update the Amnezia app before changing or sharing AmneziaWG 2.0 configurations.
  • Patch the VPS OS regularly.
  • Use SSH keys and disable password login if you can manage keys safely.
  • Keep a separate admin path in case firewall or VPN changes lock you out.
  • Watch for provider abuse notices and unexpected bandwidth spikes.

Alternatives to Amnezia self-hosted

Amnezia is not the only way to self-host a VPN or censorship-circumvention setup. The right alternative depends on whether you care most about anti-DPI behavior, ease of setup, or raw control.

Option Best for Compared with Amnezia
Outline Simple Shadowsocks deployment Easier for some users, but narrower protocol coverage.
Algo VPN Command-line infrastructure-as-code setup Cleaner for engineers, less friendly for anti-DPI protocol switching.
wg-easy / plain WireGuard Fast private tunnel where blocking is light Great performance, but easier to fingerprint than AmneziaWG.
Commercial VPN Many countries, apps, support, and no server maintenance Less control and more blocklist exposure, but much easier day to day.

Who should use Amnezia self-hosted?

Amnezia self-hosted is a good fit if you want more control than a commercial VPN and are willing to maintain a VPS. It is especially relevant when you need a private server IP, anti-DPI protocols, connection sharing, or router-level coverage for trusted devices.

It is not ideal if you only want streaming locations, casual public Wi-Fi protection, or a support team that handles every server issue. In those cases, a reputable commercial VPN is simpler, and self-hosting is better kept as a backup or specialist tool.

Official references

For the technical details above, use Amnezia's official pages and documentation as the source of truth when installing or changing a live server.

Bottom line

Use Amnezia VPN self-hosted if you want control over your own VPN server and need censorship-resistant protocols that go beyond plain WireGuard. It is strongest when you pair a clean KVM VPS with current Amnezia clients, AmneziaWG 2.0, careful DNS choices, and real leak testing.

Choose a commercial VPN instead if you mainly want streaming locations, one-click support, many countries, and no server maintenance. For high-risk censorship scenarios, keep more than one tested option ready because blocking changes faster than any single VPN protocol.

Amnezia VPN self-hosted FAQ

Yes. The self-hosted Amnezia app is free to use, but you still pay your own VPS or dedicated server provider. Amnezia Premium is the separate managed VPN subscription.

Use a KVM VPS with a public IPv4 address, x86-64 CPU, Ubuntu 22.04/24.04 or Debian 12/13, at least 1 GB RAM, and at least 10 GB SSD. For 10 or more simultaneous users, plan for 2 GB RAM and 2 vCPU.

You provide SSH access to your VPS, and the Amnezia app installs the server components and selected VPN protocol. After setup, your devices connect to that VPS and use its public IP as the VPN exit point.

No. For self-hosted Amnezia, you bring your own VPS or dedicated server from a hosting provider. Amnezia Premium is the managed subscription option if you do not want to maintain a server.

For restrictive networks, start with AmneziaWG 2.0 if your app and server support it. If UDP is blocked or inspection is very aggressive, test XRay Reality. Use plain WireGuard or OpenVPN only where VPN blocking is light.

No. Self-hosting changes who you trust, but it does not make you anonymous. Your ISP can see an encrypted connection to your VPS, your hosting provider can see server-level metadata, and destination services see your VPS IP address.

Yes, Amnezia supports sharing VPN access, but only share with people you trust. Abuse reports, copyright complaints, or suspicious traffic will point back to the VPS account you control.

Yes, on supported router setups. Amnezia documents AmneziaWG configuration for Keenetic/Netcraze and OpenWrt routers, but firmware and protocol-version support matter, so check the official router instructions before relying on it.

It depends on the job. Amnezia self-hosted is better when you need a private, less-known server IP and censorship-resistant protocols. A commercial VPN is easier when you need many countries, streaming locations, support, and no server maintenance.

Need a backup VPN in addition to self-hosting?

A self-hosted server gives control. A commercial VPN gives backup countries, support, and redundancy when your VPS IP is blocked.

Compare VPN providers

Commercial VPNs to keep as a fallback

If your self-hosted VPS is blocked or unavailable, keep a separate provider ready for travel, streaming, and emergency access.

ProtonVPN Logo
4.6

ProtonVPN

70% OFF
$2.99 /month
Was $9.99/mo

ProtonVPN is built by the creators of ProtonMail with a strong focus on privacy and transparency. Perfect for privacy-conscious users who value open-source software and Swiss data protection laws.

  • 4,900+ servers in 91 countries
  • 10 simultaneous connections
Get ProtonVPN deal →

Includes at least a 30‑day money‑back guarantee – test it on your own network and cancel if it does not fit your needs.

NordVPN Logo
4.7

NordVPN

72% OFF
$2.99 /month
Was $11.99/mo

NordVPN is one of the most popular VPN services with top-tier security, blazing-fast speeds, and excellent streaming capabilities. Perfect for users who want reliable performance and robust privacy protection.

  • 8,400+ servers in 126 countries
  • NordLynx (WireGuard) protocol
Get NordVPN deal →

Includes at least a 30‑day money‑back guarantee – test it on your own network and cancel if it does not fit your needs.

Surfshark Logo
4.6

Surfshark

87% OFF +3 Months Free
$1.99 /month
Was $15.45/mo

Surfshark offers incredible value with unlimited device connections and robust security features. Ideal for families or users with multiple devices who want premium VPN protection at a budget-friendly price.

  • 3,200+ servers in 100 countries
  • Unlimited simultaneous connections
Get Surfshark deal →

Includes at least a 30‑day money‑back guarantee – test it on your own network and cancel if it does not fit your needs.