|
@@ -6,7 +6,8 @@ List local or api bans/remediations
|
|
|
|
|
|
List the bans, by default only local decisions.
|
|
|
|
|
|
-If --all/-a is specified, api-provided bans will be displayed too.
|
|
|
+If --all/-a is specified, bans will be displayed without limit (--limit).
|
|
|
+Default limit is 50.
|
|
|
|
|
|
Time can be specified with --at and support a variety of date formats:
|
|
|
- Jan 2 15:04:05
|
|
@@ -22,19 +23,34 @@ Time can be specified with --at and support a variety of date formats:
|
|
|
cscli ban list [flags]
|
|
|
```
|
|
|
|
|
|
+### Examples
|
|
|
+
|
|
|
+```
|
|
|
+ban list --range 0.0.0.0/0 : will list all
|
|
|
+ ban list --country CN
|
|
|
+ ban list --reason crowdsecurity/http-probing
|
|
|
+ ban list --as OVH
|
|
|
+```
|
|
|
+
|
|
|
### Options
|
|
|
|
|
|
```
|
|
|
- -a, --all List as well bans received from API
|
|
|
- --at string List bans at given time
|
|
|
- -h, --help help for list
|
|
|
+ -a, --all List bans without limit
|
|
|
+ --api List as well bans received from API
|
|
|
+ --as string List bans belonging to given AS name
|
|
|
+ --at string List bans at given time
|
|
|
+ --country string List bans belonging to given country code
|
|
|
+ -h, --help help for list
|
|
|
+ --ip string List bans for given IP
|
|
|
+ --limit int Limit of bans to display (default 50) (default 50)
|
|
|
+ --range string List bans belonging to given range
|
|
|
+ --reason string List bans containing given reason
|
|
|
```
|
|
|
|
|
|
### Options inherited from parent commands
|
|
|
|
|
|
```
|
|
|
- -c, --config-dir string Configuration directory to use. (default "/etc/crowdsec/cscli/")
|
|
|
- --db string Set path to SQLite DB.
|
|
|
+ -c, --config string path to crowdsec config file (default "/etc/crowdsec/config/default.yaml")
|
|
|
--debug Set logging to debug.
|
|
|
--error Set logging to error.
|
|
|
--info Set logging to info.
|
|
@@ -47,4 +63,4 @@ cscli ban list [flags]
|
|
|
|
|
|
* [cscli ban](cscli_ban.md) - Manage bans/mitigations
|
|
|
|
|
|
-###### Auto generated by spf13/cobra on 15-May-2020
|
|
|
+
|