| | |
| | | # vilain |
| | | vilain |
| | | ====== |
| | | |
| | | Mimic fail2ban with pf for OpenBSD. |
| | | |
| | | Inspired from http://www.vincentdelft.be/post/post_20161106 |
| | | |
| | | Installation : |
| | | --------------- |
| | | |
| | | Download the repository, then run |
| | | |
| | | make install |
| | | |
| | | This will put `vilain` script in /usr/local/bin, `vilain.py` in |
| | | /usr/local/sbin and add a rc script. |
| | | |
| | | Install python-3.* |
| | | |
| | | pkg_add python-3.6.2 |
| | | |
| | | |
| | | In pf.conf, add according to your configuration : |
| | | |
| | |
| | | |
| | | pfctl -t vilain_bruteforce -T show |
| | | |
| | | |
| | | Run vilain |
| | | --------------- |
| | | |
| | | Run vilain manually or via rc script : |
| | | |
| | | rcctl enable vilain |
| | | rcctl start vilain |
| | |
| | | - Add more regex |
| | | - Enregistrer dans un fichier le dictionnaire d'IP vues, pas en mémoire (pickle ?) |
old mode 100755
new mode 100644
| | |
| | | """ |
| | | Author : thuban <thuban@yeuxdelibad.net> |
| | | Vincent <vincent.delft@gmail.com> |
| | | Yax https://blogduyax.madyanne.fr/ |
| | | Licence : MIT |
| | | Require : python >= 3.5 |
| | | |