Overview
WireGuard tunnel active on UDP 51820
The wg-quick@wg0 service reporting active under systemd and wg show reporting the wg0 interface up, listening on UDP port 51820 with the per-instance server public key.
WireGuard tunnel active on UDP 51820
Per-instance server key, none baked
Real encrypted tunnel handshake
This is a repackaged open source software product wherein additional charges apply for cloudimg support services.
WireGuard is a modern VPN that aims to be faster, simpler and leaner than IPsec and OpenVPN. It runs inside the Linux kernel, uses state-of-the-art cryptography (Curve25519 key exchange, ChaCha20-Poly1305 encryption), and presents a single UDP listener with a small, stateless configuration file - no PKI, no certificate authority and no IKE daemon to operate. This image eliminates the usual work of compiling software, managing certificates and hardening a base OS: WireGuard is preinstalled, configured under systemd, and listening on UDP 51820 within minutes of launch, with no compilation and no third-party repositories.
Designed for AWS. The image runs on Amazon EC2 inside your Amazon VPC, and its default security group opens UDP 51820 for tunnel traffic. Assign an Elastic IP for a stable endpoint that your client devices can point at, and place the instance in the subnet that reaches the private resources you want to protect.
Secure by default - no shared secrets. Unlike images that bake a shared private key into the image, this appliance generates a fresh Curve25519 server keypair on first boot. The private key is written only into the root-only server configuration and never captured into the image, so every instance you launch mints its own unique cryptographic identity. The appliance ships with zero peers configured, making it a private server-only endpoint rather than an open relay - you explicitly authorise each client device by adding one peer block per device. The server public key and connection details are written to a root-only file on first boot for you to hand to your clients. IP forwarding is enabled so the instance can route between connected peers, and the operating system ships fully patched with unattended security updates enabled.
Use cases. Give a distributed team encrypted, low-latency access to internal services in a private subnet without exposing them to the public internet; build encrypted site-to-site tunnels linking VPCs across regions; or give a small fleet of devices a fast private overlay network. By default the tunnel is a private peer-to-peer overlay; to make the instance act as an internet gateway for your clients you uncomment the provided NAT rules in the configuration, as described in the deployment guide.
Quick start. Launch the AMI in your VPC with UDP 51820 open in the security group; SSH in and read the server public key and connection details from /stage/scripts/wireguard-credentials.log; on each client device create a WireGuard configuration using that server public key and the instance public IP; add each client's public key as a peer in /etc/wireguard/wg0.conf and reload; then activate the tunnel on the client and verify connectivity.
What is included: WireGuard running under systemd with automatic start on boot; Curve25519 key exchange and ChaCha20-Poly1305 encryption; a per-instance server keypair generated on first boot and never baked into the image; IP forwarding enabled for routing between peers; an optional NAT gateway mode documented in the configuration; a fully patched operating system with unattended security updates; and 24/7 cloudimg support.
This is a repackaged open source software product with additional charges for cloudimg support services. WireGuard is distributed under the GPL-2.0 license. WireGuard is a registered trademark of Jason A. Donenfeld. cloudimg is not affiliated with or endorsed by the WireGuard project or Jason A. Donenfeld. All product and company names are trademarks or registered trademarks of their respective holders. Use of them does not imply any affiliation with or endorsement by them.
Highlights
- Deploys a fully configured WireGuard VPN endpoint on Amazon EC2, listening on UDP 51820 within minutes of launch - no compilation, no third-party repositories and no certificate authority to manage. Runs inside your Amazon VPC with an Elastic IP for a stable endpoint. Ideal for DevOps and platform teams who need a fast private tunnel without the overhead of IPsec or OpenVPN
- Secure by default with no shared secret baked into the image - every instance generates its own unique Curve25519 server keypair on first boot, stored only in root-protected configuration. Ships with zero pre-configured peers so it is never an open relay: you explicitly authorise each client device you add
- IP forwarding enabled for peer-to-peer routing, an optional NAT gateway mode documented for internet-gateway use cases, a fully patched OS with unattended security updates enabled, and 24/7 cloudimg support - ready to add one peer per client device and connect
Details
Introducing multi-product solutions
You can now purchase comprehensive solutions tailored to use cases and industries.
Features and programs
Financing for AWS Marketplace purchases
Pricing
Free trial
- ...
Dimension | Description | Cost/hour |
|---|---|---|
m5.large Recommended | m5.large | $0.08 |
t2.micro | t2.micro instance type | $0.04 |
t3.micro | t3.micro instance type | $0.04 |
c5a.12xlarge | c5a.12xlarge instance type | $0.24 |
c5a.16xlarge | c5a.16xlarge instance type | $0.24 |
c5a.24xlarge | c5a.24xlarge instance type | $0.24 |
c5a.2xlarge | c5a.2xlarge instance type | $0.24 |
c5a.4xlarge | c5a.4xlarge instance type | $0.24 |
c5a.8xlarge | c5a.8xlarge instance type | $0.24 |
c5a.large | c5a.large instance type | $0.08 |
Vendor refund policy
Refunds available on request.
How can we make this page better?
Legal
Vendor terms and conditions
Content disclaimer
Delivery details
64-bit (x86) Amazon Machine Image (AMI)
Amazon Machine Image (AMI)
An AMI is a virtual image that provides the information required to launch an instance. Amazon EC2 (Elastic Compute Cloud) instances are virtual servers on which you can run your applications and workloads, offering varying combinations of CPU, memory, storage, and networking resources. You can launch as many instances from as many different AMIs as you need.
Version release notes
Initial release of WireGuard as a ready-to-use, secure-by-default VPN server, with a unique Curve25519 server keypair generated on first boot, the encrypted tunnel listening on UDP 51820, and zero peers configured by default.
Additional details
Usage instructions
Connect via SSH on port 22 as the default login user for your operating system variant (for the Ubuntu 24.04 variant the user is ubuntu). Retrieve the per-instance server public key and connection details with: sudo cat /stage/scripts/wireguard-credentials.log - this holds the SERVER_PUBLIC_KEY generated on first boot, the server VPN address (10.50.0.1) and the listen port (UDP 51820). The server private key lives only in /etc/wireguard/wg0.conf (mode 0600, root only) and is never shipped in the image. Check the tunnel with: sudo wg show wg0 (shows the listening port and the server public key). The instance security group opens ports 22 (SSH) and UDP 51820 (WireGuard). To authorise a client device: generate a client keypair on the device (wg genkey | tee privkey | wg pubkey > pubkey), then on the server add a peer block to /etc/wireguard/wg0.conf - [Peer] with PublicKey set to the client public key and AllowedIPs set to 10.50.0.2/32 (increment for each device) - and run sudo systemctl reload wg-quick@wg0. On the client, use the server's public key, the instance public IP, endpoint port 51820 and AllowedIPs 10.50.0.0/24 for the private overlay (or 0.0.0.0/0 to route all traffic through the VPN). To act as an internet gateway for clients, uncomment the PostUp/PostDown MASQUERADE lines in wg0.conf and reload. The tunnel runs under systemd: systemctl status wg-quick@wg0.
Resources
Vendor resources
Support
Vendor support
cloudimg provides 24/7 technical support for this WireGuard VPN AMI. Our engineers help with deployment and VPC and security-group setup, server public key retrieval and peer configuration, NAT gateway mode, OS patching, and billing or refund questions. Reach us by email at support@cloudimg.co.uk or through the AWS Marketplace listing.
AWS infrastructure support
AWS Support is a one-on-one, fast-response support channel that is staffed 24x7x365 with experienced and technical support engineers. The service helps customers of all sizes and technical abilities to successfully utilize the products and features provided by Amazon Web Services.