File tree Expand file tree Collapse file tree 1 file changed +35
-6
lines changed Expand file tree Collapse file tree 1 file changed +35
-6
lines changed Original file line number Diff line number Diff line change 1
- Readme
1
+ # ScanBlocker
2
2
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 `
6
6
7
- Linux Dependencies
8
- sudo apt-get install iptables
7
+ ### Linux Dependencies
8
+ IPTABLES
9
9
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
+
You can’t perform that action at this time.
0 commit comments