Your Minecraft server runs on Hetzner or Netcup. Everything works – until someone starts a DDoS attack. Suddenly players can no longer connect.
The problem: many VPS providers filter DDoS attacks at the network level. Attacks that abuse the Minecraft protocol itself (Java Edition: TCP port 25565) are not necessarily caught by such a filter.
In this guide I show you how to shield your server with an upstream proxy service such as TCPShield or NeoProtect GameShield – without switching hosts.
No VPS yet? Our Minecraft server calculator helps you find a suitable one.
What is a DDoS attack?
DDoS stands for Distributed Denial of Service. In a DDoS attack your server is flooded with so many requests that it can no longer serve legitimate players.
The principle is simple: imagine 10,000 people calling a pizzeria at the same time. The phone line is blocked, and callers who want to order cannot get through. That is exactly what happens in a DDoS attack – just with data packets instead of calls.
Why "distributed"? The attack does not come from a single computer but from many at once. Such botnets consist of remote-controlled, infected systems, including PCs, smartphones and IoT devices such as webcams or routers (German BSI, as of Nov 8, 2026). That makes the attack hard to block – you cannot simply ban one IP.
Typical effects:
- Server stops responding or becomes very slow
- Players get kicked or cannot join
- In the worst case: the server crashes completely
- With weak protection: your entire VPS is offline
Important: In Germany, DDoS attacks can be punishable as computer sabotage under Section 303b StGB (as of Nov 8, 2026).
What the host's network filter covers
Hetzner names DDoS protection for all customers against attacks such as SYN floods, DNS/NTP reflection and UDP floods (Hetzner website, as of Nov 8, 2026). Netcup names a filter up to and including layer 4 (netcup website, as of Nov 8, 2026). Contabo names protection that is active automatically, without a promise against every attack (Contabo website, as of Nov 8, 2026).
For Minecraft, one port matters above all: Java Edition uses TCP port 25565 by default (PaperMC docs, as of Nov 8, 2026). Bedrock Edition runs over UDP.
Typical attacks on Minecraft servers
UDP flood: Masses of UDP packets overload the network connection. The server becomes unreachable.
Nullping / packet crasher: Exploits built specifically for Minecraft that crash the server.
Query flood: Thousands of server status requests per second. Overloads the CPU.
Fake handshake: Simulated player connections that never complete. Fills the connection slots.
To a network filter, attacks on the Minecraft protocol often look like normal connections. What your host filters is in its documentation.
This is no criticism of the hosts. For servers on public lists, an additional proxy service aimed at Minecraft can make sense. If you use Hetzner, you will find details under More about Hetzner.
Do I even need DDoS protection?
Not every server needs extra protection. A rough classification by how visible the server is:
| Scenario | Players | Assessment | Recommendation |
|---|---|---|---|
| Private server for friends | 5-10 | Low | Probably not needed. The IP is not public. |
| Whitelist server, not listed | 10-30 | Low | As long as the IP is unknown, low risk. |
| Public server, on server lists | 20+ | Medium to high | DDoS protection recommended. You are a visible target. |
| Large network, YouTube/Twitch presence | 100+ | High | Additional protection recommended. As a well-known network you are a visible target. |
| Server with rivalry/drama | Any | High | Competing servers or ex-players can be attackers. |
Solution 1: TCPShield
TCPShield is a proxy service that specializes in DDoS mitigation for Minecraft servers (TCPShield docs, as of Nov 8, 2026). It works as a reverse proxy: players connect to TCPShield, TCPShield filters and forwards to your server.
How it works
Player → TCPShield (filter) → Your VPS
- Player connects to play.yourdomain.com
- DNS points to TCPShield (CNAME record)
- TCPShield receives the traffic
- Malicious packets are filtered
- Legitimate traffic is forwarded to your server IP
- Your server IP is not in DNS – it only stays hidden if it is not known anywhere else and the firewall only lets TCPShield through (step 6 below)
TCPShield describes the DNS setup in its docs (TCPShield docs, as of Nov 8, 2026).
Plans
Plans and scope are listed on the provider's site (TCPShield plans, as of Nov 8, 2026).
Advantages
- In operation since 2015 (TCPShield website, as of Nov 8, 2026)
- Set up via DNS record and plugin or Proxy Protocol, without switching hosts
Disadvantages
- Extra network hop: if your server is far from the edge proxies, ping can rise (TCPShield docs, as of Nov 8, 2026)
- Plugin or Proxy Protocol needed so that player IPs arrive
- Bedrock (UDP) runs via a Geyser tunnel with its own IP, only on a higher plan (TCPShield docs, Geyser section, as of Nov 8, 2026)
Setting up TCPShield: step by step
The panel steps follow the TCPShield docs (TCPShield docs, as of Nov 8, 2026).
1. Create an account
Go to tcpshield.com and sign up.
2. Create a network
Create a Network
Name: e.g. "My MC Server"
3. Create a backend set
Backend Sets → Add Set
| Field | Value |
|---|---|
| IP Address | Your VPS IP (e.g. 203.0.113.10) |
| Port | 25565 |
If you use BungeeCord or Velocity, the proxy goes into the backend set, not the individual Spigot/Paper servers.
4. Add a domain
Domains → Add Domain and select the backend set.
Example: play.yourdomain.com
5. Configure DNS
At your DNS provider:
| Type | Name | Value |
|---|---|---|
| CNAME | play | The protected CNAME from the TCPShield panel |
For the root domain without a subdomain, you set an SRV record (TCPShield docs, as of Nov 8, 2026). If your domain is on Cloudflare, set the record to "DNS only", because the Cloudflare proxy only handles HTTP/HTTPS (Cloudflare docs, as of Nov 8, 2026).
6. Configure the firewall (IMPORTANT!)
So that only TCPShield can reach your Minecraft port. With ufw, the first matching rule applies (ufw man page, as of Nov 8, 2026); that is why there is no separate deny rule before the allow rules, but a default block:
# Allow SSH first, otherwise you lock yourself out
sudo ufw allow OpenSSH
# Block everything else incoming by default
sudo ufw default deny incoming
# One rule per CIDR from the TCPShield list (list: https://tcpshield.com/v4)
sudo ufw allow proto tcp from <CIDR> to any port 25565
sudo ufw enable
sudo ufw status numbered
TCPShield publishes the current address list at tcpshield.com/v4 (as of Nov 8, 2026). Fetch it again regularly instead of typing it in, and delete any existing general rule for port 25565.
Without this step, an attacker who knows your server IP can bypass TCPShield!
Watch out with Docker: If the game server runs in Docker (e.g. via Pterodactyl Wings), published ports bypass the ufw rules. The allow rule then has to go through Docker's firewall chains or the host's firewall (Docker docs, as of Nov 8, 2026).
7. Check the connection
Connect via play.yourdomain.com. A direct login via the server IP must fail; the plugin or Proxy Protocol blocks it on purpose (TCPShield docs, as of Nov 8, 2026).
Plugin or Proxy Protocol
TCPShield needs the TCPShield plugin or, alternatively, Proxy Protocol v2 in every setup so that the real player IPs arrive (TCPShield docs, as of Nov 8, 2026):
- Download the plugin on the Domains page in the TCPShield panel
- Install it only on the front end: on BungeeCord/Velocity or, without a proxy, on Spigot/Paper – never on both
- Spigot/Paper without a proxy also need ProtocolLib
- Do not combine the plugin and Proxy Protocol
The plugin's source code is on GitHub (TCPShield RealIP, as of Nov 8, 2026).
Solution 2: NeoProtect GameShield
NeoProtect GmbH, based in Deggendorf (NeoProtect legal notice, as of Nov 8, 2026), offers GameShield, protocol-aware protection for Minecraft servers that is set up via DNS (NeoProtect website, as of Nov 8, 2026).
Features
According to the NeoProtect docs (as of Nov 8, 2026):
- Anti-bot checks configurable in the panel
- Attack notifications by email, webhook and panel
- Analytics on traffic, player counts and attacks
Plans
Plans are on the provider's site (NeoProtect, as of Nov 8, 2026).
When NeoProtect GameShield fits
- Attack alerts via webhook
Here too, latency depends on the route between players, edge and your server (NeoProtect docs, as of Nov 8, 2026).
Other alternatives
Cloudflare Spectrum
Cloudflare Spectrum routes TCP/UDP applications through the Cloudflare network. For one Minecraft application it is a paid add-on from the Pro plan; arbitrary ports and UDP only on Enterprise (Cloudflare docs, as of Nov 8, 2026).
- For whom: Domains already on Cloudflare with a Pro plan
OVHcloud Game DDoS Protection
OVHcloud builds game DDoS protection into its game dedicated servers, not into its VPS. For Minecraft, OVHcloud names Bedrock (RakNet) and the Java Edition query protocol (OVHcloud website, as of Nov 8, 2026).
- Requirement: Switching to an OVHcloud game server
Bonus: protect your server IP
DDoS protection is useless if the attacker knows your server IP. Here is how to protect it:
Never share the server IP: Always use the protected domain (play.yourdomain.com).
Old DNS records: They remain findable in public DNS histories. If the IP was ever public, first close the leak (e.g. a missing firewall rule) and then get a new IP (NeoProtect docs, as of Nov 8, 2026). On Hetzner Cloud you can replace the primary IP of a powered-off server without deleting it (Hetzner docs, as of Nov 8, 2026).
No services on the same IP: No web server, no Pterodactyl panel on the game server IP. Use separate IPs or servers.
Check server list entries: Some server lists show the IP. Only use lists that show the domain.
Watch player reports: Annoyed players sometimes share the IP on Discord. Keep an eye on it.
Warning: Once the IP is known, often only a new IP helps.
Which protection fits your server?
Classification by technical situation, without ranking (as of Nov 8, 2026, sources in the sections above):
| Situation | Option | Note |
|---|---|---|
| Java server, set up with plugin or Proxy Protocol | TCPShield | Plans at tcpshield.com/plans |
| Anti-bot checks, webhook attack alerts | NeoProtect GameShield | Plans at neoprotect.net |
| Bedrock (UDP) | TCPShield on a higher plan with its own IP, Cloudflare Spectrum on Enterprise, or an OVHcloud game server | Plans at each provider |
| Domain already on Cloudflare with a Pro plan | Cloudflare Spectrum for one Minecraft application | paid add-on |
Frequently Asked Questions
Do I need DDoS protection for a private friends' server?
Does TCPShield work with Bedrock Edition?
Does DDoS protection increase my ping?
Can I use TCPShield with Pterodactyl?
Where do I find the plans of the protection services?
Does DDoS protection help against hackers?
More Minecraft Guides

Minecraft Server: Managed Hosting or Your Own VPS? Differences and Cost Factors
Managed Minecraft hosting or your own VPS: differences in control and effort, questions to ask about plans and technical notes from the PaperMC docs.
Read
Optimize Minecraft Server 2026: Aikar Flags, RAM & TPS Guide
Narrow down Minecraft server lag: JVM flags, garbage collection, world pre-generation and server configuration step by step.
Read
Set Up Pterodactyl Panel on a VPS (e.g. Hetzner, Netcup): Guide 2026
Minecraft server panel like managed hosts - but on your own VPS. Docker + Pterodactyl setup step by step for Hetzner and Netcup.
ReadServer protected, but no VPS yet?
Compare VPS providers and find a suitable one for your Minecraft server.
Compare VPS