Menu

Home

Javier García González
--------------------------------------------------

IBlockator

Internet IPTables Blockator (IBlockator)

--------------------------------------------------


This program downloads block lists and generates several
ipset lists to block with iptables rules.

It generates a shell script iptables.sh to apply iptables
rules automatically.

It should be configured in /etc/iblockator.json


HOW TO INSTALL IBLOCKATOR
-------------------------

debian/ubuntu
-------------

as root:

apt-get install ipset

install.sh

check for errors on pip install if any

done.

fedora/red hat/centos
---------------------

as root:

yum install ipset

install.sh

check for errors on pip install if any

done.


HOW TO USE IBLOCKATOR
---------------------


1. Edit /etc/iblockator.json


2. as root:

    Usage: iblockator.py [options]

    Options:
      -h, --help            show this help message and exit
      -d, --download        Download Rules
      -a, --apply           Apply Rules
      -c FILE, --config=FILE
                            Config File

3.a Execute as root iblockator.py from command line

option -d (download) downloads all urls from config file.
option -a (apply) applies all ipset rules recently generated.
option -c (config) used to specify config file.

-or use this-

3.b crontab -e
    2.1 copy this on crontab editor to execute iblockator p.ex. at 1.00 am

    0 1 * * * /usr/sbin/iblockator.py


6. you can check now locked ips with ping or telnet, nc, etc..


7. all done

Project Members:


MongoDB Logo MongoDB