Hi,
With Suricata, you can detect scan events and then create alerts/take action depending on the generated events.
You can also use another program like
scanlogd to detect portscans as the logs are saved in
/var/log/syslog and this file is monitored by default, so you will only have to
create some custom decoders and rules to create alerts; logs look like this:
Jan 4 10:15:33 pop-os scanlogd: 127.0.0.1 to 127.0.0.1 ports 80, 443, 995, 256, 8888, 554, 5900, 135, ..., fSrpauxy, TOS 00, TTL 64 @13:15:33
I'll be awaiting your comments.
Regards,