I need to be notified exactly when an application start LISTENING
on any/specified TCP port.
is there anything like
- configuring an application to log this event
- using a library in any programming language(C/C++ is preferred), so that it provides ability to stands in the middle and log this event
- or any other idea, EXCEPT watching
netstat
or watching SYN packet received in any way (tcpdump
,iptable
, ...)
man auditctl
.