Why Firewall Rules Aren't Enough
Firewall rules and anti-bot plugins, covered in the anti-bot testing guide, stop connection floods and bot joins. They cannot stop a volumetric DDoS attack.
A volumetric attack fills your server's network link with traffic, sometimes tens of gigabits per second. The packets never need to reach your firewall, because the link itself is full. Server-side configuration cannot fix that.
DDoS protection services sit in front of your server, drop the attack traffic on their own network, and forward real player connections to you.
The short version: pick a provider with locations near your players, point your DNS at it, firewall your server so it only accepts the provider's IP ranges, enable PROXY protocol, then test for IP leaks and test a bot load through the provider.
How TCP Proxy Protection Works
Most Minecraft DDoS protection services work as TCP reverse proxies:
Player → Protection Service (filters traffic) → Your Server
[Public IP] [Hidden IP]Players connect to the service's IP address, not yours. It inspects incoming traffic, drops anything that looks like an attack, and forwards legitimate Minecraft connections to your actual server over a private tunnel.
This happens at two levels:
Layer 3/4 (Network/Transport): The service drops volumetric floods, such as SYN floods, UDP reflection, and amplification attacks, on its own network. This is the main reason to pay for protection.
Layer 7 (Application): Some services also inspect Minecraft protocol traffic. They can detect bots sending malformed packets, connections that never complete the login handshake, or clients that behave suspiciously at the protocol level. This works as an extra anti-bot layer in front of your plugins.
The trade-off is latency, because every connection takes an extra hop. A location close to your players and your server keeps the added latency small. A distant location can add enough latency for PvP players to notice.
Your origin server IP must stay hidden. If an attacker finds it, they bypass the proxy entirely and hit you directly. That means no DNS history pointing to your backend IP, no plugins leaking it, and firewall rules that only accept connections from your protection service's IP ranges.
What to Look For
Choose by features and locations, not by name recognition. Check these points:
Locations. A service with nodes in Frankfurt does not help much if your players are in South America. Compare each provider's points of presence with where your players are.
UDP forwarding. Geyser for Bedrock players needs UDP forwarding, and not every provider supports it. Without it, Bedrock players cannot connect.
Extra ports. Proximity voice plugins such as PlasmoVoice and Simple Voice Chat use additional UDP ports. If your community uses voice chat, confirm that the service forwards those ports.
Pricing models vary a lot:
- Subscription: Fixed monthly fee. Predictable costs, easy to budget.
- Pay-as-you-go: You pay per GB of filtered traffic or per attack mitigated. Cheap when quiet, potentially expensive under sustained attack.
- One-time + usage: Upfront fee, then usage-based billing.
For most servers, a subscription is easier to budget for. Pay-as-you-go costs can rise quickly while you are under a sustained attack.
Always-on filtering routes all traffic through the proxy permanently. On-demand only activates when an attack is detected, which means there's a detection delay where your server takes hits before protection kicks in. Prefer always-on filtering for a game server, because players notice every minute of an attack.
Some hosting companies include DDoS protection as part of their offering. If you are choosing a dedicated server anyway, ask the host what its included protection filters for Minecraft traffic, and test it the same way as a separate service.
Providers to compare
Providers that focus on Minecraft include NeoProtect, TCPShield, Papyrus, CosmicGuard, Infinity Filter, and Arvoris. Their locations, plans, and prices change often, so compare their current pages against the checklist above. Before you commit, use a free plan or trial to run the tests in Testing Your Protection.
Setting It Up
The exact steps vary by service, but the general flow is the same:
1. Point DNS to the proxy
Update your domain's DNS records (A record or SRV record) to point to the protection service's IP, not your server's. Players should never resolve your actual IP.
# Before (exposed)
mc.yourserver.com. A 203.0.113.50
# After (protected)
mc.yourserver.com. A 198.51.100.10 # Protection service's IPIf you previously shared your origin IP in server lists, forum posts, or Discord, update it everywhere. Cached DNS entries and old links are the most common way backend IPs leak.
2. Lock down the firewall
Only allow Minecraft traffic from your protection service's IP ranges. Block everything else on port 25565.
# Allow traffic from protection service's IP range only
sudo iptables -A INPUT -p tcp --dport 25565 -s 198.51.100.0/24 -j ACCEPT
sudo iptables -A INPUT -p tcp --dport 25565 -j DROPYour service will publish its IP ranges. Use those. This ensures that even if someone discovers your origin IP, direct connections get dropped.
3. Enable PROXY protocol (if supported)
PROXY protocol lets the protection service pass the original player IP to your server. Without it, every player appears to connect from the proxy's IP, which breaks IP bans, geolocation, and per-IP rate limiting.
Velocity, BungeeCord, and Paper all support PROXY protocol. Enable it only on the server that receives traffic from the protection service, and only after the firewall from step 2 is in place. Otherwise anyone can fake their IP.
- Velocity: set
haproxy-protocol = truein the[advanced]section ofvelocity.toml. - BungeeCord: set
proxy_protocol: trueon the listener inconfig.yml. - Paper without a proxy: set
proxies.proxy-protocol: trueinconfig/paper-global.yml.
Check your service's documentation for which PROXY protocol version it sends.
4. Confirm player IPs work
After setup, join your server and check that your actual IP shows up in the logs instead of the proxy's IP. If every player shows the same IP, PROXY protocol isn't configured correctly and you need to fix it before going live.
Testing Your Protection
After setup, test that the protection works.
Check for IP leaks. Your origin server IP shouldn't be discoverable:
- Search DNS history tools (SecurityTrails, DNS Dumpster) for old records pointing to your backend IP
- Check Shodan for your actual IP with port 25565 open
- Try connecting directly to the origin IP. The connection should time out, because the firewall drops it
Test player experience. Connect through the proxy and check that join times are reasonable, latency isn't excessive, plugins see the correct player IP, and Bedrock players can connect if you use Geyser.
Load test through the proxy. Read the provider's terms and tell its support before you send bot traffic, because some providers treat a load test as an attack. Then use SoulFire to connect bots to the protected address, not directly to your server. Start with 20 bots and add more in stages. If the service throttles bots that behave like players, it can also throttle real players during a busy event. Bots from one machine share one IP address, so give them proxies if you want to test many players from different addresses. The staged load test shows how to record each step.
Test failover. What happens if the protection service goes down? Ideally your server becomes unreachable (because the firewall blocks direct connections) rather than exposed. Downtime is better than an exposed origin IP.
Next steps
- Point DNS at the service and restrict port 25565 to its IP ranges.
- Check DNS history and Shodan for your origin IP.
- Run a staged bot test through the protected address with SoulFire.
- Add the application layer from the anti-bot testing guide. DDoS protection and anti-bot plugins solve different problems, so you need both.