Skip to content
Shellbay

Security & Hardening · about 2 min · 7 steps

WireGuard VPN server

Lets your device reach this server's private services over an encrypted WireGuard tunnel. Internet traffic isn't routed through it.

Runs on

  • Debian / Ubuntu: supported
  • RHEL / Fedora: supported
  • Alpine: supported

What it changes on your server

  • Installs wireguard-tools.
  • Creates /etc/wireguard/wg0.conf (root-only) with a new server key and address 10.8.0.1/24, or adds your device to the existing Shellbay tunnel.
  • Starts the wg0 interface at boot and opens its UDP port in ufw or firewalld if one is on.
  • Prints the settings to add in the WireGuard app. Nothing secret is printed.

What Shellbay asks you

  1. Which UDP port should WireGuard use?

    51820 is the usual choice. If your provider has its own firewall, allow this UDP port there too.

    UDP port
    A port number from 1 to 65535. Default: 51820

    Example: 51820

  2. Which device will connect?

    In the WireGuard app, add a tunnel and choose Create from scratch: it makes a key pair. Copy the public key here. The private key stays on your device.

    Your device's public key
    Text, up to 44 characters

    Example: xTIBA5rboUvnH4htodjb6e697QjLERt1NAB4mZqp8Dg=

Steps

  1. Check the key and kernel support
  2. Refresh the package list
  3. Install WireGuard tools
  4. Set up the tunnel and add your device
  5. Open the WireGuard port
  6. Start the tunnel and enable it at boot
  7. Show the settings for your device

Shellbay checks the server before the first step, and stops at the first step that fails.

When it's done

  • Open Output and copy the [Interface] Address and [Peer] lines into the tunnel on your device, keeping its own private key.
  • Connected, this server is 10.8.0.1. Run the workflow again with another device's key to add it.