This is an old revision of the document!
How to Set Up a VPN to Host NFSU
- Get the cheapest VPS you can find with a dedicated IPv4 address.
- Select the latest Debian as the server image.
- On a freshly installed server, log in via SSH and run the following command:
wget -O - https://nfs.onl/pivpn | bash
- At the end of the script, open the shown URL in a web browser and download the .conf file.
- Install the WireGuard client from https://www.wireguard.com/install/
- Open the WireGuard app.
- 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:
- Installs PiVPN with a WireGuard server
- Creates a configuration for the WireGuard client
- Sets up port forwarding for UDP 3658–3659
- Opens the necessary ports in the firewall
- Runs a temporary web server so you can download the config file to your PC
- Saves the firewall settings to make them persistent