WireGuard Setup Generator for Two Servers

Русский · English · Español · Français · Deutsch

Set up a direct tunnel between two Debian servers. Changes update both command sets instantly.

Replace the example public addresses. Allow inbound UDP on the reachable side and permit the required services through the tunnel. The generator does not change the firewall. Private keys stay on the servers.

Server A

1. Install and get the public key

Run as root. Paste the last output line into this server’s public key field.

2. Create the configuration and start

Commands appear after both public keys are entered. Existing configurations are protected from overwriting.

3. Verify the tunnel

Server B

1. Install and get the public key

Run as root. Paste the last output line into this server’s public key field.

2. Create the configuration and start

Commands appear after both public keys are entered. Existing configurations are protected from overwriting.

3. Verify the tunnel

WireGuard guide · All utilities