This repository has been archived on 2025-03-03. You can view files and clone it, but cannot push or open issues or pull requests.
mail-scripts/README.md
2021-02-04 08:58:29 -08:00

493 B

Anarchy Planet mail scripts

Mail scripts for Anarchy Planet.

pf_bruteforce

Edit pf_bruteforce.sh to set a limit of failed auth attempts (default 50).

Install:

# make install

Add somewhere high up in /etc/pf.conf:

table <bruteforce> persist
block in quick on egress from <bruteforce>

Check for pf errors:

# pfctl -nf /etc/pf.conf

If okay, load the new ruleset:

# pfctl -f /etc/pf.conf

Add to root's crontab:

*/10 * * * * /usr/local/bin/pf_bruteforce