kyra(hardening): crowdsec init
Signed-off-by: s0me1newithhand7s <git+me@hand7s.org>
This commit is contained in:
parent
5ff4f78974
commit
ab2a010175
1 changed files with 51 additions and 0 deletions
51
kyra/services/crowdsec.nix
Normal file
51
kyra/services/crowdsec.nix
Normal file
|
|
@ -0,0 +1,51 @@
|
||||||
|
_: {
|
||||||
|
services = {
|
||||||
|
crowdsec = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
hub = {
|
||||||
|
collections = [
|
||||||
|
"crowdsecurity/linux"
|
||||||
|
"crowdsecurity/traefik"
|
||||||
|
"crowdsecurity/http-dos"
|
||||||
|
"crowdsecurity/cloudflare"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
acquisitions = [
|
||||||
|
{
|
||||||
|
source = "journalctl";
|
||||||
|
|
||||||
|
journalctl_filter = [
|
||||||
|
"_SYSTEMD_UNIT=traefik.service"
|
||||||
|
];
|
||||||
|
|
||||||
|
labels = {
|
||||||
|
type = "traefik";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
source = "journalctl";
|
||||||
|
|
||||||
|
journalctl_filter = [
|
||||||
|
"_SYSTEMD_UNIT=sshd.service"
|
||||||
|
];
|
||||||
|
|
||||||
|
labels = {
|
||||||
|
type = "syslog";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
crowdsec-firewall-bouncer = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
settings = {
|
||||||
|
mode = "firewalld";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue