Most attacks on game servers are reflection floods: spoofed requests sent to open DNS, NTP, memcached or CLDAP servers, which then answer your address with replies far larger than the requests. For a filter they are the easy case. They come from well-known source ports, carry nothing your game would ever send, and are discarded upstream before they reach your port.
For players, the way filtering engages matters more than the headline capacity.
The hard case is traffic that is valid at the protocol level. A flood of A2S_INFO queries against a Steamworks server, RakNet pings against Minecraft Bedrock or scripted logins against a Java server look, packet by packet, like real players and server browsers; a network filter that dropped them would drop your community with them. That work belongs on the server itself, and on a dedicated machine you have the root access to do it.
Valve added a challenge step to A2S_INFO in December 2020, so a client has to prove it owns its source address before it gets the full reply. On Steamworks servers the environment variable STEAM_GAMESERVER_A2S_INFO_REQUIRE_CHALLENGE=1 enforces it, although Valve introduced it as experimental and left it off by default. A plain nftables rate limit works whatever the server binary supports. This one matches the A2S_INFO header (FF FF FF FF 54) at the start of the UDP payload and drops queries from any address that sends more than 20 a second:
Load it with nft -f and test from a second machine before you lower the rate. Twenty a second per address leaves room for server browsers and still blunts a flood coming from a handful of hosts; a spoofed flood from thousands of addresses is the upstream filter's job, not this rule's.