Skip to content

BlancRay/Malicious-ip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 

Repository files navigation

Malicious-ip

A Malicious IP DataBase

Usage

Just clone and load ips file to your firewall

  • For ufw user:

    while read line; do
        sudo ufw deny from $line
    done < ips

or

  • For iptables user:

    while read line; do
        iptables -I INPUT -s $line -j DROP
    done < ips

Additional Tool

autocombine_ips is a Python3 Script to count Malicious IP in each IP block

# *.*.*.*/32
if IP.block24.count > 24
    block(IP.block24)
    
# *.*.*.0/24
if IP.block16.count > 16
    block(IP.block16)
    
# *.*.0.0/16
if IP.block8.count > 8
    block(IP.block8)