What is the most robust solution for a super-simple linux daemon that just LISTENS on some port(s) and every time a connection is ESTABLISHED, it immediately sends me an email alert?
I'm building a low-interaction honeypot inside my production network. I found that most of the open-source "honeypot" solutions are way more complex than what I need.
I just want a simple daemon to listen on some "valuable" ports (eg
5900, etc) and send me an email alert if anything connects to it.
Valid solutions could be to use a an open-source project already available, or to just a simple bash/perl/python script -- as long as it can be daemonized to a service that will start on boot.