Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add DSCP rule for Tproxy UDP packets #996

Merged
merged 3 commits into from
Jan 20, 2024
Merged

feat: add DSCP rule for Tproxy UDP packets #996

merged 3 commits into from
Jan 20, 2024

Conversation

pretzel0373
Copy link

为 Tproxy 模式下的 UDP 包增加 DSCP 规则,使得 UDP 可以根据其 IP 报文头部的 DSCP 进行分流。

在 Windows 下,可以设置 QoS 策略,此策略可以根据进程修改 IP 报文的 DSCP;在 Linux 下,可以通过 iptables 等用户态工具为应用或用户修改 IP 报文的 DSCP。从而,在开启 Tproxy 的透明代理模式下,通过 DSCP 规则进行 UDP 分流可以等效地实现针对代理下客户端的分应用 UDP 分流或分用户 UDP 分流。

@wwqgtxx wwqgtxx merged commit 25d6ad2 into MetaCubeX:Alpha Jan 20, 2024
@pretzel0373 pretzel0373 deleted the Alpha branch January 20, 2024 04:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants