This commit is contained in:
death916 2026-01-16 02:57:55 -08:00
parent 2580cbd227
commit 5742bc2a7d

View file

@ -3,47 +3,42 @@
{
services.crowdsec = {
enable = true;
allowLocalAPI = true;
hub = {
collections = [
"crowdsecurity/linux"
"crowdsecurity/sshd"
"crowdsecurity/traefik"
"crowdsecurity/http-cve"
];
};
api.server.enable = true;
localConfig = {
acquisitions = [
{
source = "journalctl";
journalctl_filter = [ "_SYSTEMD_UNIT=sshd.service" ];
labels.type = "syslog";
}
{
source = "journalctl";
journalctl_filter = [
"SYSLOG_IDENTIFIER=sudo"
"SYSLOG_IDENTIFIER=auth"
];
labels.type = "syslog";
}
{
source = "journalctl";
journalctl_filter = [ "_SYSTEMD_UNIT=docker-traefik.service" ];
labels.type = "traefik";
}
];
};
hub.collections = [
"crowdsecurity/linux"
"crowdsecurity/sshd"
"crowdsecurity/traefik"
"crowdsecurity/http-cve"
];
localConfig = [
{
source = "journalctl";
journalctl_filter = [ "_SYSTEMD_UNIT=sshd.service" ];
labels.type = "syslog";
}
{
source = "journalctl";
journalctl_filter = [
"SYSLOG_IDENTIFIER=sudo"
"SYSLOG_IDENTIFIER=auth"
];
labels.type = "syslog";
}
{
source = "journalctl";
journalctl_filter = [ "_SYSTEMD_UNIT=docker-traefik.service" ];
labels.type = "traefik";
}
];
};
services.crowdsec-firewall-bouncer = {
enable = true;
registerBouncer = {
enable = true;
};
registerBouncer.enable = true;
settings = {
mode = "nftables";