Compiled versions for windows and linux are available on the [releases page](https://github.com/GenZmeY/KF2-AntiDDoS/releases).
But you can build it yourself, for this there is a Makefile.
## How it works
The program parses the output of the KF2 server(s) and counts the number of connections. If the number of connections from one IP exceeds the threshold and it is still not known that this is a player, the program will execute a deny script passing it the IP as an argument.
The program will periodically execute the allow script, passing it a set of IPs blocked in the last period.
## HowTo:
Program usage and parameters [see here](https://github.com/GenZmeY/KF2-AntiDDoS/blob/master/doc/README)
- Prepare an IP deny script for your firewall. The script must block the IP received by the first argument
- Prepare an IP set allow script for your firewall. The script must unblock the set of IPs given by the arguments
-Сreate a redirection of the output of all KF2 servers to the stdin of the program
- In the parameters specify the scripts that you prepared and the shell that will execute them