WireGuard server setup and firewall ports

Install WarpSpeed on Linux and open UDP port 51820 for WireGuard

1. Prepare your server

Create a Linux server with your cloud provider or use one you already own. You need a public IPv4 address and root or sudo access. You can choose a console name during setup or point your own DNS name at the server.

Supported Linux distributions

Use x86_64 or ARM64. The installation guides list supported releases for Debian, Ubuntu, Rocky Linux, AlmaLinux, CentOS Stream, Fedora, and Amazon Linux.

Inbound ports

Open these ports in your cloud firewall or forward them to your server through your router. The installer also opens them in firewalld or ufw when either is running.

PortProtocolUsed for
80TCPLet's Encrypt certificate checks for the console
443TCPThe web console
51820UDPWireGuard, or the port you choose during setup

Keep TCP 80 open for certificate renewal. If you choose a different WireGuard port, open that UDP port in both firewalls.

2. Install WarpSpeed

curl -fsSL https://warpspeedvpn.net/install.sh | sudo bash
  1. Choose a data directory or accept /warpspeed.
  2. Press Enter to name the server later in your account, or enter your own DNS name.
  3. Optionally enter an email for the setup link. If you supplied a DNS name, enter the administrator email instead.

The installer checks the ports, starts WarpSpeed, and prints a setup link. Open it to claim the server and set the administrator password.

Find the setup link or upgrade an existing server

Read the saved setup link on the server:

sudo cat /root/warpspeed.secrets

Versions before 2.2 store the first administrator password in /root/.secrets. See setup link and password recovery.

Running the installer again upgrades WarpSpeed and keeps your settings.

3. Configure the network

Sign in to your console as the administrator and choose:

  • IPv4. A private device address pool such as 10.8.0.0/24, routes, and a DNS server.
  • IPv6 (optional). If your server has public IPv6, choose a unique local pool, routes, and DNS.
  • Access. Choose whether devices can reach each other and whether to enable DNS protection.
  • WireGuard port. Use UDP 51820 or the port you opened above.

Choose these settings before adding devices. Changing the pool assigns new addresses, and changing routes or DNS requires new profiles.

Review these settings under Network config.

Connect your first device

Add a device in the console and connect with the official WireGuard app.

Open the device guide