I've successfully detected a port scan with scanlogd
systemctl status scanlogd.service
● scanlogd.service - LSB: Portscan Detection Daemon
Loaded: loaded (/etc/init.d/scanlogd; generated)
Active: active (running) since Tue 2023-01-03 08:06:26 -03; 16min ago
Docs: man:systemd-sysv-generator(8)
Process: 23065 ExecStart=/etc/init.d/scanlogd start (code=exited, status=0/SUCCESS)
Tasks: 1 (limit: 26167)
Memory: 240.0K
CPU: 239ms
CGroup: /system.slice/scanlogd.service
└─23072 /usr/sbin/scanlogd
Jan 03 08:06:26 pop-os systemd[1]: Starting LSB: Portscan Detection Daemon...
Jan 03 08:06:26 pop-os scanlogd[23065]: Starting scanlogd: scanlogd.
Jan 03 08:06:26 pop-os systemd[1]: Started LSB: Portscan Detection Daemon.
Jan 03 08:06:40 pop-os scanlogd[23072]: 192.168.0.116 to 192.168.0.116 ports 80, 1720, 8888, 22, 256, 143, 111, 8080, ..., f?rp?uxy, TOS 00, TTL 64 @11:06:40
Jan 03 08:20:04 pop-os scanlogd[23072]: 192.168.0.116 to 192.168.0.116 ports 80, 53, 139, 256, 25, 1720, 443, 1723, ..., fSrpauxy, TOS 00, TTL 64 @11:20:04
Jan 03 08:20:15 pop-os scanlogd[23072]: 192.168.0.116 to 192.168.0.116 ports 25, 3306, 22, 587, 21, 256, 139, ..., fSrpauxy, TOS 00, TTL 64 @11:20:15
Now I'm trying to see where it saves the logs (documentation is a bit obscure)