All Guides

Protect Minecraft Server from DDoS: TCPShield, NeoProtect & Alternatives 2026

Minecraft server under DDoS attack? How proxy services such as TCPShield or NeoProtect GameShield work, how to set them up and how to shield your server IP with a firewall.

Dirk Hesse
January 22, 2026
12 min read

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:

ScenarioPlayersAssessmentRecommendation
Private server for friends5-10LowProbably not needed. The IP is not public.
Whitelist server, not listed10-30LowAs long as the IP is unknown, low risk.
Public server, on server lists20+Medium to highDDoS protection recommended. You are a visible target.
Large network, YouTube/Twitch presence100+HighAdditional protection recommended. As a well-known network you are a visible target.
Server with rivalry/dramaAnyHighCompeting 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
  1. Player connects to play.yourdomain.com
  2. DNS points to TCPShield (CNAME record)
  3. TCPShield receives the traffic
  4. Malicious packets are filtered
  5. Legitimate traffic is forwarded to your server IP
  6. 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

Disadvantages


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

FieldValue
IP AddressYour VPS IP (e.g. 203.0.113.10)
Port25565

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:

TypeNameValue
CNAMEplayThe 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):

  1. Download the plugin on the Domains page in the TCPShield panel
  2. Install it only on the front end: on BungeeCord/Velocity or, without a proxy, on Spigot/Paper – never on both
  3. Spigot/Paper without a proxy also need ProtocolLib
  4. 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):

SituationOptionNote
Java server, set up with plugin or Proxy ProtocolTCPShieldPlans at tcpshield.com/plans
Anti-bot checks, webhook attack alertsNeoProtect GameShieldPlans at neoprotect.net
Bedrock (UDP)TCPShield on a higher plan with its own IP, Cloudflare Spectrum on Enterprise, or an OVHcloud game serverPlans at each provider
Domain already on Cloudflare with a Pro planCloudflare Spectrum for one Minecraft applicationpaid add-on

Frequently Asked Questions

Do I need DDoS protection for a private friends' server?
Probably not, as long as the server IP is not publicly known. Your host's network filter (see above) is unaffected by this.
Does TCPShield work with Bedrock Edition?
Yes, via a Bedrock/Geyser tunnel with its own IP, per TCPShield docs only on a higher plan (as of Nov 8, 2026). Cloudflare Spectrum supports UDP only on Enterprise (Cloudflare docs, as of Nov 8, 2026).
Does DDoS protection increase my ping?
Possibly. Traffic runs via the service's edge servers; the effect depends on the route between players, edge and your server (TCPShield and NeoProtect docs, as of Nov 8, 2026).
Can I use TCPShield with Pterodactyl?
Yes. If the game server runs in Docker (e.g. Pterodactyl Wings), ufw rules miss published ports; allow the protection IPs via Docker's firewall chains or the host's firewall instead (Docker docs, as of Nov 8, 2026). Run panel and game server on different IPs.
Where do I find the plans of the protection services?
On the providers' sites: tcpshield.com/plans, neoprotect.net/get-protected, cloudflare.com/plans. Compare suitable servers under /en/vps.
Does DDoS protection help against hackers?
No. DDoS protection prevents overload attacks, not break-ins. For server security you need secure passwords, up-to-date software, a firewall, and no unsafe plugins.

Server protected, but no VPS yet?

Compare VPS providers and find a suitable one for your Minecraft server.

Compare VPS

Next step: the cheapest plans for Minecraft

The cheapest plans with at least 5 GB RAM, 2 vCPU and 20 GB storage, sorted by price; all from Contabo. For Minecraft these are the defaults of our calculator.

Prices incl. VAT · Prices as of Dec 1, 2026 · How we rank (methodology)

Compare all 53 matching plans →

Related Articles