Commit graph

16 commits

Author SHA1 Message Date
Manuel Friedli 6ca00b6bc6 Show the duration of the run in seconds when the scripts exits sucessfully. 2020-09-17 11:47:43 +02:00
Manuel Friedli 70e98dd26d Correctly invoke geoip-lookup.py with respect to the CWD. 2020-09-17 11:47:43 +02:00
Manuel Friedli fa489db45f Output country when not banning. 2020-09-17 11:47:43 +02:00
Manuel Friedli b081efa877 Typo. 2020-09-17 11:47:43 +02:00
Manuel Friedli fd3b719cb2 Bugfix. 2020-09-17 11:47:43 +02:00
Manuel Friedli 758e53a270 Implement local DB queries instead of whois. 2020-09-17 11:47:43 +02:00
Manuel Friedli df9f54dcab Check for python to be installed. 2020-09-17 11:47:43 +02:00
Manuel Friedli 30e53268f5 Prepare reading the database path from the command line. 2020-09-17 11:47:43 +02:00
Manuel Friedli e46a378460 "Cherry-pick" (manually) some of the refactoring. 2020-09-17 11:47:43 +02:00
Manuel Friedli c5dc76f8eb Rename some functions, list prerequisites. 2020-09-17 11:47:43 +02:00
Manuel Friedli ea0fae026a FIx it, use sponge. 2020-09-17 11:47:43 +02:00
Manuel Friedli 8d193c0122 Filter already banned addresses in order to avoid unnecessary work. 2020-09-17 11:47:42 +02:00
Manuel Friedli e12361472b Implement command line option to specify the fail2ban jail to use. 2020-09-17 11:47:42 +02:00
Manuel Friedli d33c43030d Omit the use of sudo when running as root. 2020-09-17 11:47:42 +02:00
Manuel Friedli 771531167c Nicer output formatting and early abort when the autopilot limit is reached. 2020-09-17 11:47:42 +02:00
Manuel Friedli 4ef0b60ed1 Rename/move superscript.sh to ddos-mitigator.sh. 2020-09-17 11:47:42 +02:00
Renamed from ddos-mitigator/superscript.sh (Browse further)