How to Set Up a VPN to Host NFSU

  1. Get the cheapest VPS you can find with a dedicated IPv4 address.
  2. Select the latest Debian as the server image.
  3. On a freshly installed server, log in via SSH and run the following command:
    wget -O - https://nfs.onl/pivpn | bash
  4. At the end of the script, open the shown URL in a web browser and download the .conf file.
  5. Install the WireGuard client from https://www.wireguard.com/install/
  6. Open the WireGuard app.
  7. Import the .conf file and click “Activate”.

Done.

Here you can see how it looks:

As long as you are connected to your VPN, you will be able to host games on an NFSU server.

Here’s what the fully automated script does:

  1. Installs PiVPN with a WireGuard server
  2. Creates a configuration for the WireGuard client
  3. Sets up port forwarding for UDP 3658–3659
  4. Opens the necessary ports in the firewall
  5. Runs a temporary web server so you can download the config file to your PC
  6. Saves the firewall settings to make them persistent