Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| tutorials:vps_server [2025/09/27 10:06] – ravage | tutorials:vps_server [2025/09/28 21:50] (current) – updated video url redhair | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ======How to Host NFS Underground Without a Public IPv4 (Using | + | ====== How to Set Up a VPN to Host NFSU ====== |
| - | ==== This tutorial has not been tested. Use it with caution, and if anyone notices a mistake, please feel free to correct it. ==== | + | - 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: < | ||
| + | - 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:// | ||
| + | - Open the WireGuard app. | ||
| + | - Import the .conf file and click " | ||
| - | Some players today cannot host old games like NFS Underground directly because their home connection lacks a public IPv4 address.\\ | + | Done. |
| - | However, you can still host by using a VPS (Virtual Private Server) as a relay. This guide explains step-by-step how to do it on a Linux VPS Server. | + | |
| - | **Estimated Setup Time:** ~25–40 minutes. | + | Here you can see how it looks: {{youtube> |
| + | As long as you are connected to your VPN, you will be able to host games on an NFSU server. | ||
| - | ==== Step 1 - Rent a VPS ==== | + | Here’s what the fully automated script does: |
| - | - Get a small Linux VPS with a **dedicated IPv4** (~€1-3/ | + | - Installs PiVPN with a WireGuard server |
| - | - Make sure you have SSH access | + | - Creates |
| - | + | - Sets up port forwarding for UDP 3658–3659 | |
| - | ==== Step 2 - Install Relay Software ==== | + | - Opens the necessary |
| - | *Open a terminal on your VPS and run:* | + | - Runs a temporary web server so you can download the config file to your PC |
| - | + | - Saves the firewall settings | |
| - | sudo apt update | + | |
| - | sudo apt install socat screen -y | + | |
| - | # socat will forward | + | |
| - | + | ||
| - | ==== Step 3 - Prepare Your PC ==== | + | |
| - | - Assign a **static LAN IP** (e.g., 192.168.1.100)\\ | + | |
| - | - This ensures the VPS always knows where to send game data\\ | + | |
| - | - Make sure your firewall allows | + | |
| - | + | ||
| - | ==== Step 4 - Set Up Port Forwarding on the VPS ==== | + | |
| - | *Run these commands in the VPS terminal to forward UDP ports to your PC:* | + | |
| - | + | ||
| - | socat UDP4-RECVFROM: | + | |
| - | socat UDP4-RECVFROM: | + | |
| - | + | ||
| - | ==== Step 5 - Keep the Relay Running ==== | + | |
| - | *Use screen or tmux in the VPS terminal to keep socat running:* | + | |
| - | + | ||
| - | screen | + | |
| - | # run socat commands here | + | |
| - | # detach with Ctrl+A, D | + | |
| - | + | ||
| - | - Optionally, configure socat as a systemd service | + | |
| - | + | ||
| - | ==== Step 6 - Open VPS Firewall ==== | + | |
| - | *Run these commands in the VPS terminal: | + | |
| - | + | ||
| - | sudo ufw allow 3658/udp | + | |
| - | sudo ufw allow 3659/udp | + | |
| - | sudo ufw enable | + | |
| - | # only open necessary ports for security | + | |
| - | + | ||
| - | ==== Step 7 - Start Hosting ==== | + | |
| - | - Launch NFS Underground on your PC\\ | + | |
| - | - The game registers in the lobby automatically\\ | + | |
| - | - Players connect using the VPS public IP, but the game actually runs on your PC\\ | + | |
| - | - No extra software is needed for players | + | |
| - | + | ||
| - | ==== Tips ==== | + | |
| - | - Test first with 1-2 friends | + | |
| - | - Ensure your PC has a static LAN IP\\ | + | |
| - | - Only forward necessary UDP ports (3658-3659)\\ | + | |
| - | - Multiple VPS relays can be set up if needed | + | |