What is a firewall?
A firewall controls which network connections are allowed to reach your server. Your hosting provider may have a network firewall or DDoS protection in its control panel, and your server may have another firewall in Windows or Linux. An IP allowlist is a set of addresses that your firewall is told to accept. For FiveMesh Cache, you can allow Cloudflare’s published IP ranges.Which settings should I use?
The default FiveM port is
30120, but your server may use a different port. If your origin is http://play.example.com:30120, allow incoming TCP 30120. If you use a reverse proxy with https://play.example.com, the external port may be 443 instead.
Find your origin port
1
Open FiveMesh Cache settings
In the FiveMesh dashboard, select your registered server and open Cache > Settings.
2
Check the origin URL
Note the hostname and port of the origin, not the public
cache.fivemesh.io URL. An explicit :30120 means port 30120. Without an explicit port, HTTP normally uses 80 and HTTPS uses 443.3
Check where the firewall is configured
Look in your game hosting panel for Firewall, Network, Security, or DDoS protection. You may also need to update the Windows or Linux firewall on the server itself.
Game hosting panel or provider firewall
Your hosting provider’s interface may look different, but the required rule is the same.1
Open the firewall or DDoS protection settings
Select the public IP address or FiveM server that receives resource downloads.
2
Create an allow rule
Set Inbound, Allow, TCP and the origin’s destination port. For the source IP, add the Cloudflare networks from cloudflare.com/ips. Include IPv4 and IPv6 if your origin is reachable over both.
3
Save and repeat where needed
Some panels need one rule per IP range. Save all ranges, then check for a second firewall or DDoS ruleset upstream of the game server. If you host multiple FiveM servers on different fileserver ports, repeat for each port.
If you cannot find firewall settings or the host blocks Cloudflare traffic in its DDoS layer, contact the hosting provider. A Windows or Linux rule cannot override a block applied before traffic reaches your machine.
Windows Server firewall
You need administrator access to your Windows Server.1
Open Windows Defender Firewall
Press Win + R, type
wf.msc, and open Windows Defender Firewall with Advanced Security.2
Create a custom inbound rule
Select Inbound Rules > New Rule > Custom. Choose All programs. Under Protocol and Ports, select TCP and set the Local port to the origin port from FiveMesh Cache.
3
Add Cloudflare source ranges
Under Scope > Remote IP address, choose These IP addresses. Add each applicable IPv4 and IPv6 range from cloudflare.com/ips.
4
Allow and save
Choose Allow the connection, select the appropriate network profiles, and name the rule something like FiveMesh Cache - TCP 30120. Confirm the rule is enabled.
Linux with UFW
If your server uses UFW, allow each Cloudflare CIDR range on the correct TCP port. For example, for TCP port30120, one IPv4 range would be:
30120 if your origin uses another port.
Check the resulting rules with:
Ask your hosting provider for help
If your host manages the firewall, send them this message:Hello, I use FiveMesh Cache for my FiveM server. Could you allow inbound TCP connections from all Cloudflare IPv4 and IPv6 ranges listed at https://www.cloudflare.com/ips/ to my resource download endpoint HOSTNAME:PORT? Please check the network firewall and DDoS protection rules. This is for FiveMesh Cache to fetch uncached resources. Please keep normal player connectivity intact.Replace HOSTNAME:PORT with the origin endpoint in Cache > Settings.
Verify that it works
- Save the new firewall rules.
- Trigger a download of a resource that is not already cached. A successful Cache HIT does not test connectivity to your origin.
- Check Cache > Analytics for origin errors and confirm resource downloads succeed.
- If it still fails, check the port, the TCP protocol, IPv4/IPv6 ranges, and any firewall or DDoS protection managed by your hosting provider.
adhesive_cdnKey or other secrets.
This allowlist applies to FiveMesh Cache HTTP origin requests. Do not assume it applies to other FiveMesh products, database backups, or Cloudflare Containers.