RFC: Revamp identification of TCP/UDP port bind and unbind events #2586
Replies: 3 comments 2 replies
-
@balajiv113, we are using this component in Rancher Desktop. Why couldn't Lima adopt a similar approach since it doesn't require polling? As I mentioned, I’m prepared to make the necessary adjustments to the project to make it compatible with Lima. |
Beta Was this translation helpful? Give feedback.
-
👍 I think this is the most realistic approach
👍
👎 |
Beta Was this translation helpful? Give feedback.
-
Required option CONFIG_FUNCTION_TRACER not set These 2 options are missing in alpine due to which events are not published |
Beta Was this translation helpful? Give feedback.
-
Problem
Major problems with current approach are,
Possible Solution
1. Using eBPF program (Recommended)
In this approach we make use of eBPF program https://github.com/balajiv113/trackport written in go for identifying tcp and udp opening and closing.
Pros
Cons
2. Using go-libaudit
In this approach we make use of go-libaudit that we already use in guest agent to identify port opening and closing.
Pros
Cons
Creating this RFC mainly to brainstorm ideas as we don't have a single drop in replacement with either approach. But it nearly solves the problem
Some further ideas to explore are
Beta Was this translation helpful? Give feedback.
All reactions