Rivet Game Guard
Rivet Game Guard provides a layer of protection between the public internet and your game without impacting performance. You can think of like Cloudflare but for game traffic.
Game Guard serves two main purposes:
- DDoS mitigation
- SSL/TLS termination
|Rivet Game Guard
|Host Network (Open Source & Enterprise)
|Requires single port
|Requires port range
|HTTPS / Secure WebSocket
|HTTP / WebSocket
|TCP + TLS
|UDP / WebRTC / ENet / KCP
Game Guard helps mitigate DDoS attacks by
Game Guard protects your game from the following (and more):
- Whitelist IPs for players in the lobby
- Max connections open per IP
- OSI layer 3 malicious traffic
- OSI layer 4 and layer 7 rate limiting
While Game Guard can help mitigate serious DDoS attacks, your game server may still be vulnerable to some attacks.
Make sure you are doing the following:
Disconnect invalid players
The Rivet Matchmaker has systems in place to ensure players are valid & optionally completed a captcha before issuing a player token. Ensure this player token is valid before letting a player connect to your game.
Disconnect sockets immediately if matchmaker.players.connected returns an error. Specifically:
Additionally, don't accept any packets from the client until matchmaker.players.connected has succeeded.
Limit packet size & frequency
Game Guard mitigates attacks of high-volume packet spamming, but you will likely want to implement your own packet rate limiting mechanism.
Still having issues?
No game on Rivet should be suffering from DDoS attacks if set up correctly.
If you're having issues with DDoS attacks on your game, contact us and we'll make sure your game is up and running.
You may need to use secure WebSockets or TCP+TLS when connecting to your game servers. For example, HTTPS websites require secure WebSockets or you may want to prevent Man in the Middle exploits by encrypting your game traffic.
Supporting this yourself requires you to regularly issue and update your own SSL and TLS certificates. Game Guard automatically manages SSL certificates for your game.