mirror of
https://github.com/Death916/nixconfig.git
synced 2026-04-11 04:48:25 -07:00
crowdsec
This commit is contained in:
parent
5abbaddeaf
commit
3676153c68
1 changed files with 22 additions and 25 deletions
|
|
@ -3,6 +3,7 @@
|
|||
{
|
||||
services.crowdsec = {
|
||||
enable = true;
|
||||
allowLocalAPI = true;
|
||||
|
||||
hub = {
|
||||
collections = [
|
||||
|
|
@ -13,32 +14,28 @@
|
|||
];
|
||||
};
|
||||
|
||||
localConfig = {
|
||||
# Log Sources
|
||||
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";
|
||||
}
|
||||
];
|
||||
|
||||
api.server.enable = true;
|
||||
};
|
||||
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";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
services.crowdsec-firewall-bouncer = {
|
||||
enable = true;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue