commit | author | age
|
77f371
|
1 |
# vilain |
609003
|
2 |
|
T |
3 |
|
77f371
|
4 |
Mimic fail2ban with pf for OpenBSD. |
T |
5 |
|
|
6 |
Inspired from http://www.vincentdelft.be/post/post_20161106 |
|
7 |
|
|
8 |
This repository is just for work. |
|
9 |
See here for last vilain "stable" version : http://git.yeuxdelibad.net/vilain/ |
|
10 |
|
|
11 |
|
|
12 |
In pf.conf, add : |
|
13 |
|
|
14 |
table <vilain_bruteforce> persist |
|
15 |
block quick from <vilain_bruteforce> |
|
16 |
|
|
17 |
You might want to add a cron task to remove old banned IP. As example, to ban for one day max : |
|
18 |
|
|
19 |
pfctl -t vilain_bruteforce -T expire 86400 |
|
20 |
|
|
21 |
To see banned IP : |
|
22 |
|
|
23 |
pfctl -t vilain_bruteforce -T show |
|
24 |
|
|
25 |
|
|
26 |
|