datahangar / sfunnel

K8s service funneling using eBPF
BSD 2-Clause "Simplified" License
4 stars 0 forks source link

Match fwmark (with log. operators) #6

Open msune opened 2 months ago

msune commented 2 months ago

When sfunnel is attached in EGRESS, it would be highly interesting to be able to match fwmark. This would allow other BPF programs or iptables/nftables to select which traffic to funneled (or unfunneled in not-so-bvious use-cases).

Rule syntax would follow the ~nftables one, so:

meta mark <match_value>
meta mark & <value> == <match_value>
meta mark | <value> == <match_value>

Requirements

TODO