kianby / vilain

fail2ban like for openbsd Forked from Thuban

Home Page:https://framagit.org/Thuban/vilain

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

# vilain Mimic fail2ban with pf for OpenBSD.

Inspired from http://www.vincentdelft.be/post/post_20161106

In pf.conf, add according to your configuration :

table <vilain_bruteforce> persist
block quick from <vilain_bruteforce> 

You might want to add a cron task to remove old banned IP. As example, to ban for one day max :

pfctl -t vilain_bruteforce -T expire 86400

To see banned IP :

pfctl -t vilain_bruteforce -T show

About

fail2ban like for openbsd Forked from Thuban

https://framagit.org/Thuban/vilain

License:MIT License


Languages

Language:Python 76.4%Language:Shell 10.6%Language:Makefile 8.8%Language:Roff 4.2%