Self-Host AmneziaWG on a VPS with UDP Forwarding
Install and verify AmneziaWG on Ubuntu or Debian, then optionally publish its VPN listener through a Localtonet UDP tunnel.
In this article 10 sections
Build and verify a self-hosted VPN, then add a separate public UDP path only when your network design needs one
This guide uses the upstream bivlked project installer to configure AmneziaWG on a fresh Ubuntu or Debian VPS. It covers installer verification, compatibility decisions, installation, secure profile retrieval, client revocation, health checks, diagnostics, updates, recovery, and removal. After the direct VPN path works, you can optionally run our Localtonet client on a device that can reach the listener and publish it through a UDP tunnel. AmneziaWG remains the VPN throughout this design; Localtonet supplies only the optional forwarding path.
📋 What's in this guide
Understand the AmneziaWG and Localtonet architecture
AmneziaWG is a WireGuard-derived VPN protocol with traffic-obfuscation features intended to make its traffic less recognizable to deep packet inspection. The independent bivlked AmneziaWG installer project prepares a Linux server as a dedicated VPN gateway. It installs the required module and tools, enables forwarding, applies system and firewall configuration, and creates credentials for authorized clients.
This installer is an upstream community project. It should not be described as an official Amnezia product release. Before deploying it, read its current VPS installation guide, advanced and compatibility documentation, release history, and security policy. Those pages are version-sensitive supplements to the reproducible workflow below.
In the standard design, a client sends UDP traffic directly to the VPS public address and the port selected during installation. AmneziaWG authenticates that peer, creates the VPN path, and applies the configured routes. A normal public VPS usually needs no additional forwarding service.
Localtonet is optional. If added, our client runs on the VPS or another device that can reach the AmneziaWG listener. The Localtonet application establishes an outbound connection to one of our relays. A UDP tunnel then assigns a public host and port and forwards incoming datagrams to the configured local IP address and UDP port.
When optional forwarding is useful
UDP forwarding can help when the machine hosting AmneziaWG lacks a usable public IP address, sits behind network address translation without available port forwarding, or needs an independently assigned public endpoint. It can also provide a temporary alternate path while preserving a known-good direct profile.
A conventional VPS already has a public address and is intended to receive inbound traffic. Direct access is therefore usually simpler. Adding a relay creates another service lifecycle to monitor and may change route length, latency, or packet behavior. Test the complete VPN workload rather than treating a connected forwarding tunnel as proof that the VPN itself works.
Install AmneziaWG, retrieve one client profile securely, and prove that the direct VPS endpoint works before creating a Localtonet tunnel. If the forwarded profile later fails while the direct profile still works, you can isolate the problem to the alternate UDP path.
Prepare a suitable VPS and recovery plan
Use a fresh, minimal VPS dedicated primarily to VPN service. The upstream workflow modifies packages, firewall policy, forwarding settings, kernel components, and system configuration. It is not a Docker deployment and should not be applied casually to a shared production server.
Current supported systems and resource requirements can change between installer releases. At the time reflected by the supplied upstream documentation, the project lists Ubuntu 24.04 LTS, Ubuntu 26.04, Debian 13, and Debian 12, on amd64 or ARM64. It recommends Ubuntu 24.04 LTS or Debian 13 for a new deployment. Debian 12 works but its stock 6.1 kernel normally leads to an AmneziaWG 2.0 installation. Ubuntu 25.10 is not supported by installer version 6.0.0 and later because its vendor support ended.
| Requirement | Current upstream baseline | What to verify |
|---|---|---|
| Operating system | Clean Ubuntu or Debian server installation | Compare the exact release with the current upstream support matrix. |
| Architecture | amd64 or ARM64 | ARM module handling and protocol selection can differ from x86_64. |
| CPU | 1 vCPU minimum | Allow more capacity for concurrent clients and other server workloads. |
| Memory | 512 MB minimum | Leave headroom for package upgrades and module compilation. |
| Disk | 2 GB free, 3 GB recommended | Check both root filesystem space and boot partition space. |
| Administrative access | Root or equivalent sudo access over SSH | Confirm provider console or recovery access before firewall changes. |
| Network access | Working APT repositories and outbound HTTPS | Resolve DNS, clock, repository, or package-manager errors first. |
Capture the current server state
Create a provider snapshot or backup and confirm access to a serial console, recovery console, or rescue environment. A live SSH session is not a complete recovery plan when the installation can modify networking and firewall policy.
cat /etc/os-release
uname -m
uname -r
df -h
ip address
ip route
sudo apt-get update
Record the VPS public address, SSH port, active interface, operating-system release, architecture, kernel, routes, and provider-level firewall policy. If apt-get update fails, correct the package, DNS, network, clock, or repository issue before running a root-level installer.
Review system changes before approving them
The upstream documentation states that the installer can run apt-get upgrade --with-new-pkgs, install a new kernel, and require two reboots. It installs AmneziaWG components and supporting packages such as WireGuard tools, kernel headers, build tools, UFW, Fail2Ban, and QR-code utilities.
With consent, current releases can remove packages considered unnecessary on a dedicated VPN server. The documented list includes ModemManager, networkd-dispatcher, unattended-upgrades, PackageKit, and udisks2. Ubuntu handling can also include snapd and related paths. Cloud-init is removed only when it is not managing the network. Recheck this behavior against the installer release you actually download.
The --yes option can approve package and system changes without another confirmation. If unattended-upgrades is removed, establish a deliberate security-update process. Test interactively first and preserve packages required by your environment using the options documented by the release you deploy.
Choose between AmneziaWG 3.1 and 2.0
Installer version 6.0.0 introduced AmneziaWG 3.1 as the default for a fresh compatible installation. The current project overview says that ARM systems and kernels older than 6.7 automatically receive 2.0. Later checks can also select 2.0 if the installed module or utilities do not support the 3.x configuration. An explicit request for 3.1 stops instead of silently producing an incompatible server.
A client without 3.1 support cannot connect to a 3.1 server and may not show a helpful error. The project's compatibility matrix changes as applications, routers, OpenWrt packages, and firmware are updated. Check the current upstream compatibility table for every client you intend to use.
| Deployment situation | Current expected result | Decision |
|---|---|---|
| Compatible fresh x86_64 VPS with kernel 6.7 or newer | 3.1 by default | Use the automatic choice after confirming client support. |
| ARM server | 2.0 under the current selection rules | Verify the available prebuilt or DKMS module path for that host. |
| Kernel older than 6.7 | 2.0 under the current selection rules | Do not force 3.1 without satisfying all documented requirements. |
| Router or application without 3.1 support | 2.0 should be requested | Install with the release-documented --protocol=2.0 option. |
| Existing working server | Its installed generation is retained | Script updates and routine reruns do not migrate the protocol. |
Switching between 3.1 and 2.0 is not an in-place profile update. The version 6.0.0 release notes describe it as an uninstall followed by a new installation, after which every client profile must be issued again. Plan the change as a migration and retain recovery access until all required clients have been replaced.
Confirm the exact application, operating-system version, router firmware, and package version before choosing 3.1. If any required device supports only 2.0, decide that before installation and profile distribution.
Verify and run the upstream bivlked installer
The quick-start URL always downloads the latest published release. That is convenient for a personal test, but it also means the content can change. For a controlled deployment, note the release shown on the upstream releases page, retain the files you approved, and compare the release notes before a later rerun.
Download the installer and its signature without executing it
wget -O install_amneziawg_en.sh \
https://github.com/bivlked/amneziawg-installer/releases/latest/download/install_amneziawg_en.sh
wget -O install_amneziawg_en.sh.minisig \
https://github.com/bivlked/amneziawg-installer/releases/latest/download/install_amneziawg_en.sh.minisig
wget -O amneziawg-installer-keys.txt \
https://raw.githubusercontent.com/bivlked/amneziawg-installer/main/KEYS.txt
Install minisign from your operating system's package repository if it is not already available:
sudo apt-get update
sudo apt-get install minisign
Review the project's published key file through an independent trusted path before using it. A signature only proves that the file was signed by the corresponding key, so blindly downloading both the script and key from the same compromised path would weaken the check. Once you have confirmed the expected project key, verify the detached signature:
minisign -Vm install_amneziawg_en.sh \
-x install_amneziawg_en.sh.minisig \
-p amneziawg-installer-keys.txt
Proceed only if Minisign reports a valid signature for the expected trusted key. If the command reports an invalid signature, an unknown key, a malformed key file, or a missing signature, stop. Recheck the current upstream verification instructions and release assets rather than bypassing verification.
Inspect what will run
sha256sum install_amneziawg_en.sh
less install_amneziawg_en.sh
bash ./install_amneziawg_en.sh --help
Save the checksum and release identifier in your deployment record. The help output is authoritative for the downloaded release. Check protocol, routing, package-preservation, automation, diagnostic, and removal options before granting root access.
Connect with administrative and recovery access
Keep your existing SSH session open, confirm provider console access, and verify the server state collected earlier.
Execute the verified installer
Make the verified file executable and run it with sudo. Review each proposed protocol, package, firewall, and routing decision.
Resume after each requested reboot
Reconnect to the same VPS, return to the directory containing the same verified installer, and run it again. Its state machine resumes the installation.
Record the result and retrieve the first profile
Save the installed generation, listener port, kernel, release, and final status. Current project documentation describes creating the first client in the singular, so do not assume that two specific default clients will exist.
chmod +x install_amneziawg_en.sh
sudo bash ./install_amneziawg_en.sh
If a reboot occurs, reconnect and run the same local file:
sudo bash ./install_amneziawg_en.sh
The upstream overview describes three commands, two reboots, and approximately twenty minutes for a typical installation. Treat that as a project estimate rather than a guarantee. Repository speed, kernel installation, module compilation, architecture, and VPS capacity can change the duration.
Use automation only after reviewing the interactive path
sudo bash ./install_amneziawg_en.sh --yes --route-all
These flags are documented by the current project overview, but all flags remain release-sensitive. For managed automation, pin and verify an approved release rather than downloading an unspecified latest asset on every server.
Verify the direct AmneziaWG path
Verify from the server outward. First confirm that installation completed after all requested reboots. Then check the interface, listener, firewall, routes, and a real remote client. Do not create a forwarding tunnel while the direct path is still uncertain.
Check the running kernel and interface
uname -r
sudo ip link show awg0
sudo ip address show awg0
The current installer uses awg0 as the live interface marker. If it does not exist, rerun the verified installer so its supported recovery logic can inspect the interrupted or changed installation. Do not manually invent an interface configuration as a workaround.
Find the real UDP listener
sudo ss -lunp
Record the actual address and port used by AmneziaWG. There is no universal port in this tutorial. Installation options, including the documented mobile profile, can affect port selection. The live listener and final installation report determine the target for firewall review and optional forwarding.
Review both firewall layers
sudo ufw status verbose
sudo ip route
sudo sysctl net.ipv4.ip_forward
Confirm that SSH remains accessible and that the selected UDP path is allowed as intended. Also review the VPS provider firewall. A wildcard listener does not prove internet reachability, and a provider rule does not prove the guest firewall accepts the packet.
Retrieve one profile over the existing SSH trust path
On your administrative workstation, create a restricted temporary directory. Replace the placeholders with the VPS address and the exact filename shown under /root/awg/:
mkdir -m 700 amneziawg-profile
scp root@VPS_ADDRESS:/root/awg/CLIENT_NAME.conf ./amneziawg-profile/
chmod 600 ./amneziawg-profile/CLIENT_NAME.conf
If direct root SSH login is disabled, first copy the selected profile into a temporary file readable only by your administrative account, transfer it with scp, and delete the temporary server-side copy immediately. Do not weaken permissions on the entire /root/awg/ directory.
A QR image and a vpn:// link contain importable credentials too. Do not paste them into tickets, chats, cloud notes, public repositories, or screenshots. Import the profile into the intended device, move any retained backup into encrypted storage, and securely delete unnecessary temporary copies.
Test from a genuinely external network
Disconnect the test device from other VPNs, activate the new profile, and test from a network separate from the VPS. Check DNS resolution, several HTTPS destinations, and the intended routing behavior. For a full-tunnel IPv4 profile, confirm that the observed public IPv4 address is the VPS exit address.
An active interface is not enough. The listener can exist while protocol generation, endpoint, firewall, forwarding, NAT, routing, or DNS remains incorrect. Record a known-good result before adding another endpoint.
Record the installer release and checksum, operating system, architecture, kernel, protocol generation, UDP port, client application version, routing choice, and direct test result. Do not record private keys, complete profiles, device tokens, QR codes, or vpn:// links in that document.
Manage, rotate, and revoke client access
Current installer documentation provides operations to add, list, remove, and regenerate clients, as well as QR output, import links, expiring guest configurations, statistics, and JSON output for many operations. Exact syntax is tied to the installed script release, so begin by locating the installed English management script and reading its own help.
sudo find /root/awg -maxdepth 2 -type f \
-name 'manage_amneziawg_en.sh' -print
sudo bash /root/awg/manage_amneziawg_en.sh --help
For current releases using the documented positional management interface, the core operation forms are:
sudo bash /root/awg/manage_amneziawg_en.sh list
sudo bash /root/awg/manage_amneziawg_en.sh add CLIENT_NAME
sudo bash /root/awg/manage_amneziawg_en.sh remove CLIENT_NAME
sudo bash /root/awg/manage_amneziawg_en.sh regenerate CLIENT_NAME
Compare these forms with the help printed by the installed release before executing a modifying operation. If the script is installed at a different path or its help shows different syntax, use that version's path and syntax. Do not download a newer management script separately and mix it with an older server installation.
Add a client
- Choose a non-secret, unique device label that is easy to recognize during revocation.
- Run the documented
addoperation for that label. - Run
listand confirm the new entry appears once. - Retrieve only that client's generated profile through the secure SSH procedure.
- Import it on the intended device and perform an external connection test.
Issue one profile per device. Shared profiles make loss response and ownership tracking difficult because removing one shared identity disconnects every device using it.
Remove a lost or retired client
- Run
listand verify the exact client identifier. - Run the documented
removeoperation for that identifier. - Run
listagain and confirm the entry is absent. - Attempt a connection with the old profile from an external network and confirm it no longer authenticates.
- Delete retained copies of the revoked profile unless an incident investigation requires protected preservation.
Regenerate compromised credentials
Regeneration should invalidate the previous client material and create replacement output for the named client under the installed release's documented behavior. Verify the exact confirmation shown by the management tool, run list, retrieve the replacement securely, and test it. Then verify that the previous profile no longer connects.
Do not overwrite your only known-good file until the command reports success and the replacement has been retrieved. Keep the old material isolated only long enough to prove revocation, then destroy unnecessary copies.
Protect generated artifacts
Keep /root/awg/ restricted to root. Never publish it through a web server, shared folder, backup link, or Localtonet File Server tunnel. VPS snapshots and backups can contain every issued client secret, so protect and retain them as carefully as the live server.
Run health checks, updates, recovery, and uninstall safely
Run the supported check and diagnostic operations
Use the same verified installer file and review its help before running release-sensitive maintenance operations:
sudo bash ./install_amneziawg_en.sh --help
sudo bash ./install_amneziawg_en.sh --check
sudo bash ./install_amneziawg_en.sh --diagnose
The check operation is intended for routine validation. Diagnostics provide more detail for investigation and may include sensitive network or configuration information. Review output before sharing it and redact public addresses where appropriate, private endpoints, client names if sensitive, keys, profiles, tokens, QR content, and vpn:// links.
Verify a successful maintenance check independently:
sudo ip link show awg0
sudo ss -lunp
sudo ufw status verbose
sudo tail -n 100 /var/log/amneziawg-ensure-module.log
The module recovery log is relevant to the documented DKMS path. If the installed release or architecture uses another module path, follow the diagnostic output and current upstream advanced documentation.
Apply operating-system and kernel updates
Continue installing security updates. If unattended-upgrades was removed, schedule and document a replacement process. Before an update, capture the current kernel, interface state, and successful client test:
uname -r
sudo ip link show awg0
sudo ss -lunp
sudo apt-get update
sudo apt-get upgrade
Reboot when required. After reboot, verify SSH access first, then the running kernel, interface, listener, firewall, and a real client:
uname -r
sudo ip link show awg0
sudo ss -lunp
sudo ufw status verbose
sudo bash ./install_amneziawg_en.sh --check
Current upstream documentation states that DKMS installations rebuild the module for a new kernel. On an ARM host using a prebuilt module, rerun the same verified installer after the kernel update so it can install the matching module. This behavior is version-sensitive, so confirm the module path reported by your release.
Update installer-managed components
Read the release notes between your recorded version and the intended version. Download the new installer and detached signature as separate files, verify them with the trusted project key, inspect the help, and retain the previous verified installer for rollback analysis.
A normal rerun does not switch an existing server between AmneziaWG 2.0 and 3.1. The upstream release notes state that changing generation requires uninstalling and reinstalling. Do not use a force option as a substitute for that migration.
Recover after an interrupted installation or failed reboot
- Use the provider console if SSH no longer works.
- Record the running kernel, disk space, failed services, package-manager state, and recent installer output.
- If a reboot interrupted the normal workflow, rerun the same verified installer file and allow its resume state to continue.
- If package configuration was interrupted, follow the error output rather than deleting installer state or VPN files blindly.
- Run the supported check and diagnose operations.
- Verify
awg0, the UDP listener, firewall state, and one real client before declaring recovery complete.
A provider snapshot is appropriate when the server cannot be recovered safely or when firewall and package changes conflict with another workload. Remember that restoring a snapshot can restore previously revoked client credentials. Revoke or regenerate affected clients after rollback.
Uninstall the deployment
Read the uninstall behavior shown by the exact installer release before proceeding:
sudo bash ./install_amneziawg_en.sh --help
sudo bash ./install_amneziawg_en.sh --uninstall
Do not assume uninstall restores every package, firewall rule, removed service, prior sysctl value, or provider firewall setting. Package removal and restoration behavior can change by release and operating system. Preserve the deployment record and snapshot until you have verified the post-uninstall state.
sudo ip link show awg0
sudo ss -lunp
sudo ufw status verbose
sudo systemctl --failed
sudo apt-get check
After removal, awg0 should no longer be an active VPN interface. Review remaining listeners, firewall rules, failed units, package health, forwarding settings, and provider-level rules. If the VPS existed only for this VPN, deleting and rebuilding the VPS from a clean image can provide a clearer final state than reusing a heavily modified host.
Evaluate the kernel user-namespace warning
Installer version 6.0.0 documents a vendor kernel-module issue involving malformed negative values in certain I1-related parameters. Installer-generated values are rejected safely, but the upstream release notes warn that a local unprivileged user may be able to reach the installed module through user namespaces in applicable environments. The project's check and diagnose operations report the condition.
The documented mitigation is:
sudo sysctl -w kernel.unprivileged_userns_clone=0
Disabling unprivileged user namespaces can break software that depends on them. Evaluate that trade-off for the host and consult the current advanced security discussion before making the setting persistent. Do not assume a lack of warning on one distribution proves the underlying path is impossible.
Optionally publish the listener with Localtonet UDP forwarding
Begin only after a direct AmneziaWG profile works. Install our client on the VPS itself or another device that can reach the listener. Use the current Localtonet installation documentation to select the package and installation path for that device's operating system. Installation commands can change by package format and client version, so this article does not substitute an invented universal shell command.
After installation, start the Localtonet client using the method documented for the selected operating system and authenticate the device with its device-specific token. Never put that token in a VPN profile, shell script committed to source control, screenshot, support post, or article.
The Localtonet device establishes an outbound connection to our relay. You do not need inbound router port forwarding, a public IP address, firewall changes for an inbound Localtonet relay connection, or a separate VPN merely to establish that client connection.
Install and run the Localtonet client
Follow the current operating-system path in our documentation. Place the client on the AmneziaWG VPS or a device with network reachability to its verified UDP listener.
Authenticate or select the device
Use its device-specific authentication token through the current client workflow. Confirm that the dashboard shows the intended device as connected.
Select an available relay server
Choose a currently available relay or region in the dashboard. Do not copy a server code from an old tutorial because availability can vary by time, plan, and deployment.
Create the UDP tunnel
Choose the UDP tunnel family and enter the local IP address reachable from the Localtonet client plus the exact AmneziaWG UDP port found with ss.
Start the tunnel
Creating a tunnel does not start it. Use the Start button, wait until the selected device and tunnel are connected, and record the assigned public host and port.
Test a separate forwarded profile
Copy the known-good client profile, change only its server endpoint to the Localtonet public host and port, and test from an external network. Preserve the direct profile for comparison and recovery.
Consult the current Localtonet UDP tunnel documentation for the latest dashboard workflow. Available relay choices and plan-specific limits must be checked in the current dashboard. We do not claim that every region, server, option, or capacity level is included in every subscription.
Choose the correct local target
The target address must be reachable from the machine running our client. If Localtonet runs on the same VPS, use an address on which the AmneziaWG listener is actually reachable. If it runs on another device, that device needs ordinary network reachability to the VPS listener.
Do not assume that 127.0.0.1, the VPS public address, or a particular private address is correct. Inspect the listener binding with sudo ss -lunp and verify the network path from the Localtonet client.
Change only the client endpoint
Keep all cryptographic keys and AmneziaWG-specific parameters unchanged. Only the server endpoint should differ between the direct and forwarded test profiles. Use the client application's supported profile editor, or modify a protected copy before import.
If direct access works but forwarding does not, avoid regenerating the server or client keys. Check the Localtonet endpoint, tunnel state, target address, target port, listener binding, and firewall path first.
Verify operation after a reboot
A reboot can interrupt both the VPN service and the Localtonet client. After every reboot:
- Confirm SSH or console access.
- Verify
awg0and the UDP listener. - Confirm that the Localtonet application is running through the startup method documented for the installed client version.
- Verify that the dashboard shows the selected device as connected.
- Verify that the UDP tunnel is running, not merely saved.
- Test the forwarded profile from an external network.
- Retest the direct profile if it remains part of the design.
The assigned endpoint forwards only while the selected Localtonet device is connected and the tunnel is running. If persistent startup is important, use the supported startup mechanism for the installed client and verify it after an actual reboot. Do not invent a systemd unit or reuse service commands from an unrelated package.
Anyone on the internet can send datagrams to the assigned host and port. AmneziaWG must still authenticate every peer. Issue separate profiles, revoke lost devices promptly, and target only the intended listener. A Localtonet tunnel does not authorize VPN access and must never be pointed accidentally at an administrative or unrelated UDP service.
Troubleshoot installation, VPN, and forwarding failures
The installer rebooted and appears incomplete
Reconnect to the same VPS, return to the directory containing the same verified installer, and run it again with sudo. The current workflow uses a resume-after-reboot state machine. Do not replace the script midway, delete its state, or begin a parallel manual installation.
The awg0 interface does not exist after a kernel update
Check the running kernel, free disk space, package state, and module recovery log. Run the supported check and diagnose operations. On the current documented DKMS path, the module should rebuild for the new kernel. On an ARM prebuilt path, rerun the verified installer after the kernel update.
uname -r
df -h
sudo apt-get check
sudo tail -n 100 /var/log/amneziawg-ensure-module.log
sudo bash ./install_amneziawg_en.sh --check
sudo bash ./install_amneziawg_en.sh --diagnose
A profile imports but never connects
Confirm that the client supports the server's protocol generation. Verify the endpoint hostname or address, UDP port, server listener, guest firewall, and provider firewall. Test the direct endpoint before the Localtonet endpoint. A 2.0-only client can fail against a 3.1 server without a useful visible error.
The VPN connects but traffic does not pass
Test an IP address and a hostname separately to distinguish routing from DNS. Review forwarding, NAT, routes, and firewall state. The current default profile routes IPv4 through the tunnel. Its default IPv6 behavior prevents the client's normal IPv6 address from continuing directly but does not provide usable tunneled IPv6 internet access unless native server IPv6 and the documented installation option were configured.
Local network devices become unreachable
Full-tunnel routing can include the client's IPv4 local network. The upstream project documents a --route-amnezia installation option for deployments that need a different local-network routing arrangement. Treat a routing-mode change as a planned reinstall or reconfiguration decision according to the current help, then retest every relevant client and local resource.
The Localtonet tunnel exists but is unavailable
Confirm that the selected device is connected and the tunnel was explicitly started. Check the assigned public host and port, local target address, local UDP port, listener binding, and reachability from the Localtonet client. Tunnel creation alone does not make an endpoint active.
The forwarded profile fails while direct access works
Compare only the endpoint fields. Look for a hostname typo, stale assigned port, stopped tunnel, disconnected device, incorrect local target, or firewall rule tied to the public interface. Keep the working keys, peer definitions, and obfuscation parameters unchanged while investigating the forwarding path.
Performance is worse through the forwarded endpoint
Compare direct and forwarded profiles from the same client network at similar times. A relay adds another network path and can change latency or packet loss. If direct VPS access is reliable and you have no requirement for an alternate public endpoint, the direct architecture may be the better operational choice.
Frequently asked questions
Does an AmneziaWG VPS require Localtonet?
No. A conventional VPS normally has a public IP address and can expose its selected UDP listener directly. Localtonet is an optional forwarding path for designs that need a separate endpoint or cannot accept ordinary inbound access.
Is the bivlked installer an official Amnezia installer?
It is an upstream community project hosted in the bivlked GitHub repository. This tutorial uses and attributes that project's workflow without presenting it as an official Amnezia product release.
How many clients does a default installation create?
The current upstream project overview describes creating the first client in the singular. Do not assume that two clients named my_phone and my_laptop will be created. Inspect the final report and run the installed management script's list operation.
Which UDP port should I forward?
Use the port selected by your actual installation and confirmed on the running server with sudo ss -lunp. Do not copy an example port or assume a universal default.
Should I install AmneziaWG 3.1 or 2.0?
Use the installer's automatic choice unless a required client supports only 2.0. Current releases default to 3.1 on compatible fresh x86_64 systems and select 2.0 on ARM, kernels older than 6.7, or other unsupported combinations. Verify the current compatibility matrix before installation.
Can I switch an existing server between 3.1 and 2.0?
Not as a routine in-place update under the current upstream workflow. Switching generations requires uninstalling and performing a new installation, followed by issuing replacement profiles to every client.
Is a Localtonet UDP tunnel itself a VPN?
No. AmneziaWG remains the VPN and authenticates its peers. Localtonet publishes and forwards the UDP listener. It does not replace VPN keys, client profiles, encryption, routes, or peer authorization.
What happens if the Localtonet client disconnects?
The assigned endpoint stops forwarding when the selected device disconnects or the UDP tunnel stops. AmneziaWG may continue running locally, and a separately permitted direct VPS endpoint may continue working.
Can I close the VPS public UDP path after forwarding works?
Potentially, but only after proving that the Localtonet client can still reach the listener through its selected local address and firewall path. The correct firewall policy depends on the listener binding, network interfaces, Localtonet client placement, guest firewall, and provider firewall.
Add an optional public UDP endpoint with Localtonet
Once your AmneziaWG server passes its direct client test, install our client on a device that can reach the verified listener, create and start a UDP tunnel, and test its assigned host and port with a separate profile.
Get Started Free →Corrections & updates
Substantive changes approved by the Localtonet editorial team are listed transparently below.
Localtonet is a secure multi-protocol tunneling and proxy platform designed to expose localhost, devices, private services, and AI agents to the public internet supporting HTTP/HTTPS tunnels, TCP/UDP forwarding, mobile proxy infrastructure, file server publishing, latency-optimized game connectivity, and developer-ready AI agent endpoint exposure from a single unified control plane.