Hey! I also make games and we solved the issue by doing stateless ACLs on the border switches and having a really fat pipe.
You can add a magic header to traffic and drop anything that doesn’t contain the header.
Since this is done in hardware it operates at line speed. In our case 100GBit/s.
Re:Ask HN: Have you ever switched cloud?
by ramshanker on Friday April 08, 2022 @11:49AM
(#30958733)
This seems such a good trick. We could even do it at cloudflare rule level I guess.
If you have zero-cost internal network costs, I'd consider adding another server in front of the primary servers to act as a reverse-proxy and/or firewall. Basically, you'd use that server as a firewall and then pass only the good traffic onwards to your game servers, which are probably bigger and more expensive.
If there isn't a possibility for internal-networking (free), then I'd probably use the included iptables for a firewall on each machine. You should honestly have this running on the game servers anyway, if only to restrict communication to between the reverse-proxy and game server.
Re:Ask HN: Have you ever switched cloud?
by hardwaresofton on Thursday April 07, 2022 @05:50PM
(#30950758)
Hetzner has some built in DDOS protection but you should add your own:
Do you just use iptables? Or do you build out more complex solutions like software routers running on Linux/BSD?
I work in online gaming, and we're constantly seeing attacks on our infra.