parent
d431fe9f21
commit
b270bfbcfe
|
@ -300,7 +300,7 @@ Adding `remediation: true` into the labels tells {{crowdsec.name}} that we shoul
|
||||||
|
|
||||||
Let's try :
|
Let's try :
|
||||||
|
|
||||||
- I copied the yaml file to a production system (`/etc/crowdsec/crowdsec/scenarios/mytest.yaml`)
|
- I copied the yaml file to a production system (`/etc/crowdsec/config/scenarios/mytest.yaml`)
|
||||||
- I restart {{crowdsec.name}} (`systemctl reload crowdsec`)
|
- I restart {{crowdsec.name}} (`systemctl reload crowdsec`)
|
||||||
|
|
||||||
Let's check if it seems correctly enabled :
|
Let's check if it seems correctly enabled :
|
||||||
|
|
|
@ -75,7 +75,7 @@ $ {{cli.bin}} ban list
|
||||||
|
|
||||||
### Create the whitelist by IP
|
### Create the whitelist by IP
|
||||||
|
|
||||||
Let's create a `/etc/crowdsec/crowdsec/parsers/s02-enrich/mywhitelists.yaml` file with the following content :
|
Let's create a `/etc/crowdsec/config/parsers/s02-enrich/mywhitelists.yaml` file with the following content :
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
name: crowdsecurity/whitelists
|
name: crowdsecurity/whitelists
|
||||||
|
|
|
@ -288,6 +288,7 @@ install_crowdsec() {
|
||||||
mkdir -p "${CROWDSEC_DATA_DIR}"
|
mkdir -p "${CROWDSEC_DATA_DIR}"
|
||||||
(cd config && find patterns -type f -exec install -Dm 644 "{}" "${CROWDSEC_CONFIG_PATH}/{}" \; && cd ../) || exit
|
(cd config && find patterns -type f -exec install -Dm 644 "{}" "${CROWDSEC_CONFIG_PATH}/{}" \; && cd ../) || exit
|
||||||
mkdir -p "${CROWDSEC_CONFIG_PATH}/scenarios" || exit
|
mkdir -p "${CROWDSEC_CONFIG_PATH}/scenarios" || exit
|
||||||
|
mkdir -p "${CROWDSEC_CONFIG_PATH}/parsers" || exit
|
||||||
mkdir -p "${CROWDSEC_CONFIG_PATH}/postoverflows" || exit
|
mkdir -p "${CROWDSEC_CONFIG_PATH}/postoverflows" || exit
|
||||||
mkdir -p "${CROWDSEC_CONFIG_PATH}/collections" || exit
|
mkdir -p "${CROWDSEC_CONFIG_PATH}/collections" || exit
|
||||||
mkdir -p "${CROWDSEC_CONFIG_PATH}/patterns" || exit
|
mkdir -p "${CROWDSEC_CONFIG_PATH}/patterns" || exit
|
||||||
|
|
Loading…
Reference in a new issue