Try to implement crowdsec everywhere, connected to central lapi
This commit is contained in:
parent
d90a031c68
commit
da4ee48f72
4 changed files with 66 additions and 2 deletions
|
@ -98,6 +98,12 @@
|
|||
netcat-openbsd
|
||||
];
|
||||
};
|
||||
age.secrets = {
|
||||
cs-lapi-key = {
|
||||
file = ../secrets/cs-lapi-key.age;
|
||||
owner = "crowdsec";
|
||||
};
|
||||
};
|
||||
|
||||
services = {
|
||||
openssh = {
|
||||
|
@ -115,6 +121,21 @@
|
|||
fail2ban = {
|
||||
enable = true;
|
||||
};
|
||||
crowdsec = {
|
||||
enable = true;
|
||||
package = pkgs.crowdsec;
|
||||
autoUpdateService = false;
|
||||
openFirewall = true;
|
||||
settings = {
|
||||
general = {
|
||||
prometheus.listen_addr = "0.0.0.0";
|
||||
};
|
||||
lapi.credentialsFile = "${config.age.secrets.cs-lapi-key.path}";
|
||||
};
|
||||
hub.collections = [
|
||||
"crowdsecurity/linux"
|
||||
];
|
||||
};
|
||||
rsyslogd = {
|
||||
enable = true;
|
||||
extraConfig = "*.*@192.168.1.27:514;RSYSLOG_SyslogProtocol23Format";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue