Skip to content
BlogSign in
All posts

KazakhstanPanel

Two layers of DDoS protection on AST-1 and ALA-2

Since 24 November, game servers at both our locations, AST-1 in Astana and ALA-2 in Almaty, accept new connections from 11 countries only. This is part of our protection against DDoS attacks, which now works on two layers. Below: what happened to us, and how each layer works.

What happened to us

Game servers are frequent targets: of competitors, of players with a grudge, or of anyone who rents a botnet for an hour.

  • 14 October, AST-1. An attack on one server’s Minecraft proxy: four waves of up to 85,000 new connections a second from about 6,300 addresses.
  • 16 October, AST-1. A flood aimed at the location itself rather than at game ports. It filled the link before the traffic ever reached our equipment, and every server on AST-1 lost its players three times that evening. No rule on our own servers can stop an attack like that: it has to be cut off earlier, in the network.
  • 24 November, ALA-2. A botnet hit one server in three waves. The third, about 11,000 connection attempts a second, met our new limits, which turned away up to 6,400 attempts a second at once. After it, one address kept hitting the server and others began probing neighbouring ports, and that same evening we turned on the geo filter on the game ports of both locations.

Layer 1: L3–L4, the network

The heaviest attacks are volumetric: SYN, ACK, FIN and RST floods, UDP and ICMP floods, streams of malformed packets. Their aim is to fill the link, so they have to be stopped before the traffic reaches the server.

Both locations are now protected from these attacks at the network and transport layers by a state DDoS protection system. Its equipment is connected to the backbones of the main telecom operators in 18 cities and stops an attack before it gets into the city network. Traffic is analysed inside the country and never leaves Kazakhstan.

The system does not work by fixed thresholds. It learns what normal traffic to our servers looks like and uses AI to tell abnormal traffic apart from it. That takes time: its model is refined as it sees our real traffic and the attacks on it, and its filtering gets more precise over time.

Layer 2: L7, attacks posing as players

Some attacks look like ordinary players. A botnet of thousands of addresses opens real connections to a server and fills its slots, its connection queue or its proxy’s memory. There is little traffic, and a network filter cannot tell this kind of attack from players. Rules on our own servers catch it:

  • a limit on concurrent connections from one address;
  • a limit on how fast one address can open new connections;
  • a limit on concurrent connections to one server. An attack on one server does not drag its neighbours on the location down with it, and the server is reachable again as soon as a wave ends;
  • a geo filter: game ports accept new connections only from Kazakhstan, Kyrgyzstan, Uzbekistan, Tajikistan, Ukraine, Russia, Belarus, Armenia, Azerbaijan, Moldova and Georgia. Connections already open are left alone.

The geo filter is the strongest of them: measured against the attack of 14 October, it alone would have cut off 86.7% of the botnet’s addresses.

You can see the restriction in the panel. A server whose ports are filtered shows a notice with the list of countries, and its Network tab marks those ports. The panel itself, the console and SFTP work from any country, so you can manage your server from abroad. We watch both layers at work on our dashboards, and every attack alerts us straight away.

If you have players abroad

Before turning on the geo filter, we went through the connections to every server over the past months. If people from other countries play on your server regularly, we saw that and left your server outside the filter. You don’t need to do anything.

If a player in another country still cannot connect, or your server needs to be seen by server lists and voting sites abroad, write to support: we will look into your case and work out what we can do. And if you play through a VPN yourself, pick a VPN server in one of the listed countries, or turn the VPN off while you play.

You can always check whether our locations and services are up on our status page. It runs entirely apart from our main infrastructure and is hosted abroad, so it stays up even when our locations are under attack.

Comments