r/eBPF • u/jamala2000 • Oct 01 '26
Egress Traffic BPF program
Hello,
I'd like to ask a question about network probing from a pod or service while the destination is Internet. If the packet reaches to the default gateway, it means there is no policy blocking it and connectivity is successful. How I can drop the packet that is generated in user space with DSCP value?
- What program can I use for this? Considering Cilium utilizes SNAT, how to make sure I can identify the source address of the packet?
For pod-to-pod traffic probing, I used cgroup/ingress to drop the packet if they reach destination pod. However, internet probing seems more complicated to me and I really need help/ideas.
Much appreciated and thanks in advance! :)
1
u/safrax Oct 01 '26
I have no idea what you’re asking. It seems like English is not your native language, if so you might get better results using your native language and having an LLM translate for you.
0
u/noboruma Oct 03 '26
eBPF / XDP is not going to help you with user space, it's executed way earlier in kernel space.
If you need to take decision based on user space logic, then it's already too late as far as eBPF is concerned for the packet you are processing. What are you trying to achieve here? Checking connectivity of remote endpoints?