Skip to content

Commit

Permalink
chore(doc): add rule generating manual
Browse files Browse the repository at this point in the history
  • Loading branch information
rhiokim committed Jan 2, 2017
1 parent a035588 commit fe8b9b1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ $ curl -X POST "http://10.40.219.150:9200/nxapi/events/_search?pretty" -d {}
I want to generate whitelists for 10.40.219.150, so I will get more precise statistics first

```bash
./nxtool.py -c nxapi.json -s 10.40.219.150 -f
$ ./nxtool.py -c nxapi.json -s 10.40.219.150 -f
$ ./nxtool.py -c nxapi.json -f --slack --colors | grep BasicRule
$ ./nxtool.py -c nxapi.json -f --slack --colors | grep BasicRule > /etc/nginx/custom.rules
```

- see more: https://github.com/nbs-system/naxsi/tree/master/nxapi#2-generate-whitelists
Expand Down
2 changes: 1 addition & 1 deletion nginx-naxsi/gen-wl.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash

./nxtool.py -c nxapi.json -s 10.40.219.150 -f
./nxtool.py -c nxapi.json -s 10.40.219.150 -f --slack --colors | grep BasicRule

0 comments on commit fe8b9b1

Please sign in to comment.