From 3c1a7b60cdfc2e2b521dbc9f615a1479ac618db4 Mon Sep 17 00:00:00 2001 From: GenZmeY Date: Sun, 1 Aug 2021 07:11:34 +0300 Subject: [PATCH] Update README.md --- README.md | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c6effd2..94faa75 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,21 @@ The program parses the output of the KF2 server(s) and counts the number of conn 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) +``` +Usage: | kf2-antiddos [option]... +kf2_logs_output KF2 logs to redirect to stdin +shell shell to run deny_script and allow_script +deny_script firewall deny script (takes IP as argument) +allow_script firewall allow script (takes IPs as arguments) + +Options: + -j, --jobs N allow N jobs at once + -o, --output MODE self|proxy|all|quiet + -dt, --deny-time TIME minimum ip deny TIME (seconds) + -mc, --max-connections N Skip N connections before run deny script + -v, --version Show version + -h, --help Show help +``` - 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