From 10195c05b943b963573569b94a1e13c5a295b255 Mon Sep 17 00:00:00 2001 From: Thuban <thuban@yeuxdelibad.net> Date: Sat, 01 Dec 2018 09:21:47 +0000 Subject: [PATCH] exemples --- TODO | 1 + vilain.py | 1 + README.md | 27 ++++++++++++++++++++++++++- 3 files changed, 28 insertions(+), 1 deletions(-) diff --git a/README.md b/README.md index 543d768..7f612e4 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,24 @@ -# 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 : @@ -16,3 +33,11 @@ pfctl -t vilain_bruteforce -T show + +Run vilain +--------------- + +Run vilain manually or via rc script : + + rcctl enable vilain + rcctl start vilain diff --git a/TODO b/TODO index aa7e191..07b22f0 100644 --- a/TODO +++ b/TODO @@ -1 +1,2 @@ - Add more regex +- Enregistrer dans un fichier le dictionnaire d'IP vues, pas en mémoire (pickle ?) diff --git a/vilain.py b/vilain.py old mode 100755 new mode 100644 index 082b15f..44f8fdb --- a/vilain.py +++ b/vilain.py @@ -5,6 +5,7 @@ """ Author : thuban <thuban@yeuxdelibad.net> Vincent <vincent.delft@gmail.com> + Yax https://blogduyax.madyanne.fr/ Licence : MIT Require : python >= 3.5 -- Gitblit v1.9.3