VXLAN Tunnel for FiveM/GTA Online
VXLAN Setup for FiveM server
Last updated
Was this helpful?
VXLAN Setup for FiveM server
Last updated
Was this helpful?
In this guide, I will walk you through the process of setting up a VXLAN Tunnel for a FiveM server running on Windows 11, using the txAdmin panel. Since this setup is on Windows, I will also include instructions for setting up a Linux proxy in front of the server to enable VXLAN configuration.
Note: If you're already running your FiveM server on Linux, the setup process is the same. Simply skip the proxy creation step.
In my example, the server is running and reachable on 103.120.39.17:30120
Go to your TCPShield Panel → Tunnels → New Tunnel.
This assigned port is NOT your service port (e.g., 30120), but the port VXLAN tunnel is using to foward your traffic.
Once the tunnel is created, you will see the Overview page for the tunnel:
Public IP: 104.234.6.128 - Dedicated IP your users will connect to
Private IP: 172.18.128.2 - Interface IP used by our anycast server
VXLAN Port: 34251 - Assigned for VXLAN traffic
Setup Script:
FOR LINUX SERVER:
Copy and run the setup script located at the bottom of the page. Verify the tunnel creation by running the following command:
If the tunnel was successfully created, you will see output similar to this:
At this point, you should be able to ping the private IP address:
Finally, proceed to Step 4 to complete the setup.
FOR WINDOWS SERVER: Head to step 3 to create your NGINX Proxy.
Skip this step if you already have a Linux server
Since the VXLAN tunnel can only be created on a Linux server, as a Windows user, you will need access to a Linux server. We recommend using a reputable hosting provider. In this example, the proxy IP address is 108.61.149.182
.
Navigate to your nginx.conf
file, which can be found at one of these locations:
/usr/local/nginx/conf/nginx.conf
/etc/nginx/nginx.conf
n
Use your preferred editor (e.g., nano
), and add the following configuration:
Reload your NGINX server: service nginx reload
Now, return to Step 2 and run the setup script. Follow the instructions for the Linux server.
In your server.cfg file, add the following:
If you have a domain for your server, make sure it's pointing to the VXLAN public IP address, which in this case is 104.234.6.128
And that should be pretty much everything you have to do.
Ensure both the backend port (30120
) and the VXLAN port (34251
) are open and accepting connections. You can refer to this for further instructions.