14-01-2016, 09:04 PM
Hey there,
I finally got around to implementing some DDoS protection that should prevent any lags on the servers. The way it works shouldn't ever ban innocent players, though I obviously cannot guarantee that. Hence if you notice any connection problems or any other sort of network issue it may be due to this program, so please report it here.
More technical:
The program employs a simple technique called Token bucket. It will allow players or other servers (such as Trackbase/Gametracker) an average of 50 packets per second, while allowing bursts much higher for short durations. It only counts getstatus packets, which are those sent by most server browsers or when you click "server info" in the ET menu. If you are not using any of those programs, you will likely have less than 1 packet per second on average. For example, HLSW (the program I use for RCON stuff) tracks all servers that we have and uses less than 10 packets per second.
The kind of DDoS attacks that will lag the servers usually have up to 2000 packets per second, and as such are detected by the program in less than a second. So as I said, it shouldn't ever ban anyone not involved in DDoS attacks.
For those interested, I will probably push the source code to our Github account sometime soon.
If you do happen to notice any problems, please tell me.
Thanks in advance!
-- Ligustah
I finally got around to implementing some DDoS protection that should prevent any lags on the servers. The way it works shouldn't ever ban innocent players, though I obviously cannot guarantee that. Hence if you notice any connection problems or any other sort of network issue it may be due to this program, so please report it here.
More technical:
The program employs a simple technique called Token bucket. It will allow players or other servers (such as Trackbase/Gametracker) an average of 50 packets per second, while allowing bursts much higher for short durations. It only counts getstatus packets, which are those sent by most server browsers or when you click "server info" in the ET menu. If you are not using any of those programs, you will likely have less than 1 packet per second on average. For example, HLSW (the program I use for RCON stuff) tracks all servers that we have and uses less than 10 packets per second.
The kind of DDoS attacks that will lag the servers usually have up to 2000 packets per second, and as such are detected by the program in less than a second. So as I said, it shouldn't ever ban anyone not involved in DDoS attacks.
For those interested, I will probably push the source code to our Github account sometime soon.
If you do happen to notice any problems, please tell me.
Thanks in advance!
-- Ligustah
I'm quite busy, so unless it's a quick thing or really urgent I am unlikely to be able to answer PMs throughout the week, but I try to reach out to everyone who contacted me during the weekends. If it's urgent, you can also contact any of the supremes, they can do a lot of things or relay directly to me if necessary.




Join us on our TWC Discord channel
