Loopback outbound: Add sniffing#6326
Merged
Merged
Conversation
Member
|
tun也有嗅探功能啊 为什么要扔loopback上 |
Contributor
Author
Member
|
sniff能有多少开销 看开头一个包而已 有gvisor TUN零头吗 |
Collaborator
|
@Fangliding |
Collaborator
|
routing.balancers.fallbackTag 只能是出站,但借由 loopback 可以到另一个 balancer |
Member
如果没有异议的话就算了 因为loopback出站再走一次dispatcher也不是零开销的 后续数据都要多倒一手 |
Contributor
Author
|
https://xtls.github.io/config/policy.html#levelpolicyobject |
Member
|
可能会。不过一般两个功能遇不到一起用的 |
Member
不是已经被你改成 dispatchLink 了吗 |
Member
|
那也是走了一遍dispatcher啊( |
Member
|
我的意思是看代码至少没有再多一层双向 link,不过 stats 等东西似乎又包了一层,不过这也符合预期行为
|
sniffing
Maolaohei
added a commit
to Maolaohei/Bray-Core
that referenced
this pull request
Jun 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

为Loopback出站添加流量探测
示例:tun入站白名单
{ "routing": { "rules": [ { "inboundTag": ["tun-in"], "process": ["chrome", "firefox"], "outboundTag": "loopback-out" }, { "inboundTag": ["tun-in"], "outboundTag": "direct" } ] }, "inbounds": [ { "protocol": "tun", "settings": { "name": "xray0", "mtu": 1500, "gateway": ["10.0.0.1/16", "fc00::1/64"], "dns": ["1.1.1.1"], "autoSystemRoutingTable": ["0.0.0.0/0", "::/0"], "autoOutboundsInterface": "auto" }, "tag": "tun-in" } ], "outbounds": [ { "protocol": "loopback", "settings": { "sniffing": { "destOverride": ["http", "tls", "quic"], "routeOnly": true, "enabled": true }, "inboundTag": "loopback-in" }, "tag": "loopback-out" } ] }