Skip to content

Commit 4aeda15

Browse files
committed
Chanded README
1 parent e16f87f commit 4aeda15

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,12 @@ The only argument to the script is path to apache log file, which needs to have
2424

2525
### Usage
2626
#### Check requests identified as maliceous:
27-
To fine-tune regular expressions for the legal paths, run the script with -i option. The option takes no arguments and will stop the script after *requests_maliceous* file is generated. You can inspect it with:
27+
To fine-tune regular expressions for the legal paths, run the script with -i option. The option takes no arguments and will stop the script after *requests_maliceous* file is generated. You can inspect it with grep:
2828
```bash
29+
sudo ./iptablesmgr.sh -i access.log
2930
grep -rne LEGAL_PATH_IN_QUESTION iptablesmgr/requests_maliceous
3031
```
31-
This way you can see if your LEGAL_PATH_IN_QUESTION has made it to the maliceous list.
32+
This way you can see if your LEGAL_PATH_IN_QUESTION together with its associated IP address has made it to the maliceous list.
3233

3334
#### Run inside container:
3435
This example emphasizes use of Linux capabilities for the default root user inside the container. Without these capabilities, manipulations of iptables will not work.

0 commit comments

Comments
 (0)