Skip to content

Instantly share code, notes, and snippets.

@CurlyMoo
CurlyMoo / start.ino
Created April 12, 2021 19:52
Rules library implementation
//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>
@CurlyMoo
CurlyMoo / block.sh
Last active September 25, 2023 09:02
Mailcow: Automatically add ip to blocklist
#
# 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