This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Flash ide size: 4194304 bytes | |
//Flash ide speed: 40000000 Hz | |
//Flash ide mode: DIO | |
//Flash Chip configuration ok. | |
#include <FS.h> | |
#include <stdlib.h> | |
#include <sys/time.h> | |
#include <time.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Add this file in your crontab. If there was a failed login, the ip | |
# address will be automatically added to the mailcow blocklist. | |
# | |
# I use mailcow in a personal setup so i only have one ip to be | |
# permanently allow listed. | |
# | |
# Update 19-08-2022 | |
# - Only check the IP's of the last hour (run hourly) | |
# - Only block IP's that have been blocked for 5 or more times |