Skip to content

Commit f62bf28

Browse files
committed
Updated readme
1 parent e40d82c commit f62bf28

File tree

1 file changed

+35
-6
lines changed

1 file changed

+35
-6
lines changed

README.md

Lines changed: 35 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,38 @@
1-
Readme
1+
# ScanBlocker
22

3-
Python Dependencies
4-
-View requirements.txt
5-
-to install automatically run `pip install -r requirements.txt`
3+
### Python Dependencies
4+
* View requirements.txt
5+
* to install automatically run `pip install -r requirements.txt`
66

7-
Linux Dependencies
8-
sudo apt-get install iptables
7+
### Linux Dependencies
8+
IPTABLES
99

10+
`sudo apt-get install iptables`
11+
12+
### Usage
13+
`sudo python scanBlocker.py`
14+
15+
#### Usage Options
16+
```-h, --help show this help message and exit
17+
-H HOSTIP, --hostIP HOSTIP
18+
Specify your host inet address. Will default to the
19+
inet address of default interface.
20+
-i INTERFACE, --interface INTERFACE
21+
Specify an interface to sniff for port scans on. Will
22+
default to system default.
23+
-c, --clear Use this flag to clear all blocked IPs before running.
24+
```
25+
`sudo python scanBlocker -i ens4 -H 10.138.0.27`
26+
27+
#### Clear out iptable rule chain
28+
`sudo python scanBlocker -c`
29+
or
30+
```
31+
sudo iptables -F
32+
sudo iptables -X
33+
```
34+
#### View Blocked IP Addresses
35+
`Ctrl + C` while running
36+
or
37+
`sudo iptables -n -L`
38+

0 commit comments

Comments
 (0)