- View requirements.txt
- to install automatically run
pip install -r requirements.txt
IPTABLES
sudo apt-get install iptables
sudo python scanBlocker.py
-H HOSTIP, --hostIP HOSTIP
Specify your host inet address. Will default to the
inet address of default interface.
-i INTERFACE, --interface INTERFACE
Specify an interface to sniff for port scans on. Will
default to system default.
-c, --clear Use this flag to clear all blocked IPs before running.
sudo python scanBlocker -i ens4 -H 10.138.0.27
sudo python scanBlocker -c
or
sudo iptables -F
sudo iptables -X
Ctrl + C
while running
or
sudo iptables -n -L