From 8647e2c6db5e9d585ac485a13abe5d0483b8bc70 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 28 Aug 2019 17:06:14 +0200 Subject: [PATCH] readme --- README.md | 49 ++++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 44 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 4ba5f6e..2c0ac66 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,46 @@ -= ipset updater +# ipset updater -= install +Bash + Python ipset list updater -* git clone this -* launch ./install.sh -* launch ./ipset_update.sh for first time +### Prerequisites + +* ipset +* shorewall + +``` +apt install ipset shorewall +``` + +### Installing + + +git clone + +``` +git clone https://git.k3nny.fr/Tools/ipset_updater.git +``` + +install cron task + +``` +./install.sh +``` + +launch for first time + +``` +./ipset_update.sh +``` + +## Using in shorewall + +Add these rules in `/etc/shorewall/rules` : + +``` +DROP net:+blacklist $FW +DROP net:+blacklist_ipv4 $FW +DROP net:+blacklist_net $FW +DROP $FW net:+blacklist +DROP $FW net:+blacklist_net +DROP $FW net:+blacklist_ipv4 +```