Thuban
2017-01-08 77f37110d6b78c54438cda7a9f28d43cc01af91f
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
6 This repository is just for work.
7 See here for last vilain "stable" version : http://git.yeuxdelibad.net/vilain/  
8
9
10 In pf.conf, add : 
11
12     table <vilain_bruteforce> persist
13     block quick from <vilain_bruteforce> 
14
15 You might want to add a cron task to remove old banned IP. As example, to ban for one day max : 
16
17     pfctl -t vilain_bruteforce -T expire 86400
18
19 To see banned IP : 
20
21     pfctl -t vilain_bruteforce -T show
22
23
24