Unity-Technologies / qstat

New official qstat repository
Artistic License 2.0
121 stars 33 forks source link

feat(a2s): amplification ddos protection support #100

Closed stevenh closed 3 years ago

stevenh commented 3 years ago

Add support for a2s amplification attack DDoS protection by resending A2S_INFO request if we receive a A2S_CHALLENGERESPONSE prior to receiving a A2S_INFORESPONSE_XXX response.

stevenh commented 3 years ago

I haven't tested this against a server configured with the following environment variable set which should trigger this new behaviour

export STEAM_GAMESERVER_A2S_INFO_REQUIRE_CHALLENGE=1

This addresses MPHY-8

geominorai commented 3 years ago

You should be able to test this on servers running CS:GO and (as of today's update) Team Fortress 2.

stevenh commented 3 years ago

Closing as we have a more up to date version in https://github.com/multiplay/qstat/pull/109