You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Crowdsec bouncer written in golang for custom scripts.
17
17
18
-
cs-custom-bouncer will periodically fetch new and expired/removed decisions from CrowdSec Local API and will pass them as arguments to a custom user script.
18
+
crowdsec-custom-bouncer will periodically fetch new and expired/removed decisions from CrowdSec Local API and will pass them as arguments to a custom user script.
19
19
20
20
## Installation
21
21
22
22
### With installer
23
23
24
-
First, download the latest [`cs-custom-bouncer` release](https://github.com/crowdsecurity/cs-custom-bouncer/releases).
24
+
First, download the latest [`crowdsec-custom-bouncer` release](https://github.com/crowdsecurity/crowdsec-custom-bouncer/releases).
If your bouncer runs on the same machine as your crowdsec local API, you can start the service directly since the `install.sh` took care of the configuration.
47
47
```sh
48
-
sudo systemctl start cs-custom-bouncer
48
+
sudo systemctl start crowdsec-custom-bouncer
49
49
```
50
50
51
51
## Upgrade
52
52
53
-
If you already have `cs-custom-bouncer` installed, please download the [latest release](https://github.com/crowdsecurity/cs-custom-bouncer/releases) and run the following commands to upgrade it:
53
+
If you already have `crowdsec-custom-bouncer` installed, please download the [latest release](https://github.com/crowdsecurity/crowdsec-custom-bouncer/releases) and run the following commands to upgrade it:
54
54
55
55
```bash
56
-
tar xzvf cs-custom-bouncer.tgz
57
-
cdcs-custom-bouncer-v*/
56
+
tar xzvf crowdsec-custom-bouncer.tgz
57
+
cdcrowdsec-custom-bouncer-v*/
58
58
sudo ./upgrade.sh
59
59
```
60
60
@@ -83,11 +83,11 @@ custom_binary.sh del 1.2.3.4/32 3600 "test blacklist"
83
83
84
84
## Configuration
85
85
86
-
Before starting the `cs-custom-bouncer` service, please edit the configuration to add your API url and key.
87
-
The default configuration file is located under : `/etc/crowdsec/cs-custom-bouncer/`
86
+
Before starting the `crowdsec-custom-bouncer` service, please edit the configuration to add your API url and key.
87
+
The default configuration file is located under : `/etc/crowdsec/crowdsec-custom-bouncer/`
88
88
89
89
```sh
90
-
$ vim /etc/crowdsec/custom-bouncer/cs-custom-bouncer.yaml
90
+
$ vim /etc/crowdsec/custom-bouncer/crowdsec-custom-bouncer.yaml
91
91
```
92
92
93
93
```yaml
@@ -105,5 +105,5 @@ api_key: <API_KEY> # Add your API key generated with `cscli bouncers add --name
echo "please enter the binary path in '/etc/crowdsec/crowdsec-custom-bouncer/crowdsec-custom-bouncer.yaml' and start the bouncer via 'sudo systemctl start crowdsec-custom-bouncer' "
echo"Please edit ${CONFIG_DIR}crowdsec-custom-bouncer.yaml with a real binary path and run 'sudo systemctl start crowdsec-custom-bouncer'."
57
57
exit 1
58
58
fi
59
59
60
60
if [ "$READY"="yes" ];then
61
-
systemctl start cs-custom-bouncer.service
61
+
systemctl start crowdsec-custom-bouncer.service
62
62
else
63
-
echo"service not started. You need to get an API key and configure it in ${CONFIG_DIR}cs-custom-bouncer.yaml and then run systemctl start cs-custom-bouncer.service"
63
+
echo"service not started. You need to get an API key and configure it in ${CONFIG_DIR}crowdsec-custom-bouncer.yaml and then run systemctl start crowdsec-custom-bouncer.service"
64
64
fi
65
65
66
-
echo"cs-custom-bouncer service has been installed!"
66
+
echo"crowdsec-custom-bouncer service has been installed!"
0 commit comments