29 lines
493 B
Markdown
29 lines
493 B
Markdown
# 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
|