logchange / hofund

🗡️💥 hofund is a tool set to monitor applications, connections and discover current state of components of the system 💥🗡️
Apache License 2.0
54 stars 2 forks source link

Monitor outgoing traffic of UDP and TCP protocols to monitor if all connections are monitored and inform about it in logs #51

Open marwin1991 opened 3 days ago

marwin1991 commented 3 days ago

@witx98 what do you think about something like this?

witx98 commented 1 day ago

I found some relevant information regarding TCP and UDP support in Spring Integration that might be useful for this issue https://docs.spring.io/spring-integration/reference/ip.html Could you please clarify what exactly we want to know about these connections? @marwin1991

marwin1991 commented 1 day ago

@witx98 I was thinking about something more like this https://stackoverflow.com/a/63197003

The idea is that, application can do some connections, but we don't know about it and this should capture it and print to logs (if it's not monitored by hofund)

witx98 commented 1 day ago

The approach mentioned in the Stack Overflow is based on SecurityManager which is deprecated and planned for removal in future Java versions. @marwin1991

marwin1991 commented 23 hours ago

@witx98 yes, but maybe we can find something inside JVM or lib that will allow us to do it :)

Athi commented 23 hours ago

@marwin1991 maybe this way is the way XD ? https://github.com/slytechs-repos/jnetpcap-wrapper?tab=readme-ov-file