[Feature Request] 添加基于skb->mark的分流功能
- Dominant language
- Go
- Stars
- 6.2k
- Forks
- 402
- Avg merge
- 57m
- Merged PRs (30d)
- 2
Description
### Greetings
考虑到我cgroup分流的需求,基于这个issue
https://github.com/daeuniverse/dae/issues/379
中提及的想法扩展而想到的
### Feature Request
添加基于skb->mark的分流功能
### Use Cases
Linux桌面系统上的应用边界基本是是以cgroup为界,考虑到程序可能fork出其他exe(比如某些容器),单纯的pname分流规则可能不足以完成应用分流。如果有了基于skb->mark的分流规则支持,那么就可以让systemd配合nftables直接给cgroup的数据包打mark完成更精准的应用/服务/容器分流。
甚至dae代码中对来自控制平面本身的流量直连的判断逻辑也可以简单的靠mark判断来完成,而不需要判定pname。
### Potential Benefits
在systemd或者其他广泛使用cgroup组织进程的系统上实现更精准的应用/服务/容器分流。
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reading issue #379 and tracing the existing pname-based application routing and control-plane direct-connection logic. Then investigate how systemd cgroups and nftables could provide skb marks on Linux. Done should include documented behavior and tests or reproducible checks showing that marked traffic can select routing rules and support the stated cgroup and control-plane use cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, linux
- Domain
- networking, operating-systems
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 28/100