Valkyrie Hosting is now part of Vluxon Inc.One team, one expanded platform and a broader hosting ecosystem built to deliver more for every customer.

Back to FiveM
FiveM

txAdmin Cloudflare Tunnel Setup Guide

Secure your txAdmin panel with Cloudflare Tunnel. Hide server IP, prevent DDoS attacks & configure safe remote access. Step-by-step guide for FiveM servers.

2 min read

txAdmin Proxy with Cloudflare Tunnel

Configure a secure Cloudflare Tunnel for txAdmin to access the admin panel without exposing the server IP address and prevent DDoS attacks. This method routes traffic through Cloudflare's network infrastructure.

Requirements

  • Domain added to Cloudflare account
  • FiveM server (VPS or dedicated)
  • Cloudflared binary installed on server

Configuration Steps

1. Domain Setup

  1. Access the Cloudflare dashboard
  2. Navigate to: Account Home > Zero Trust > Networks > Tunnels
  3. Create a Zero Trust team if prompted (use the free plan with 50 seats)

2. Tunnel Creation

  1. Click "Add a Tunnel"
  2. Select "Cloudflared" as the tunnel type
  3. Assign a tunnel name (e.g., "txadmin")

3. Cloudflared Installation

Download the cloudflared binary directly to the server hosting the FiveM instance:

4. Tunnel Authentication

  1. Open Command Prompt as Administrator
  2. Navigate to the cloudflared installation directory:
    cd "C:\Program Files (x86)\cloudflared"
    
  3. Copy and paste the authentication command from the Cloudflare dashboard

5. Traffic Routing Configuration

Configure the following tunnel settings:

Parameter Value
Subdomain txadmin
Domain Your Cloudflare-managed domain
Service Type http
URL localhost:[port]

6. Port Configuration

Security Note: Avoid using the default port 40120. Configure a custom port to reduce automated scan exposure.

To set a custom txAdmin port, add this environment variable to the batch script:

set TXHOST_TXA_PORT=40121

Firewall Configuration:

  • Open the custom port in Windows Firewall
  • Close port 40120 if using a different port

7. Deployment

After deployment, the txAdmin panel will be accessible at:

https://txadmin.yourdomain.com

Additional Resources

For comprehensive environment variable documentation and advanced configuration options, refer to the official txAdmin documentation.

Related Articles

Looking for secure FiveM hosting? View Vluxon FiveM VPS plans with DDoS protection and full administrative access.