Thuban
2017-04-11 40cb2e01be738ff57f489d936e2dddf1da624a7f
commit | author | age
77f371 1 # vilain
T 2 Mimic fail2ban with pf for OpenBSD.
3
4 Inspired from http://www.vincentdelft.be/post/post_20161106
5
3a37e6 6 In pf.conf, add according to your configuration : 
77f371 7
T 8     table <vilain_bruteforce> persist
9     block quick from <vilain_bruteforce> 
10
11 You might want to add a cron task to remove old banned IP. As example, to ban for one day max : 
12
13     pfctl -t vilain_bruteforce -T expire 86400
14
15 To see banned IP : 
16
17     pfctl -t vilain_bruteforce -T show
18