Loopback outbound: Add "sniffing"#6326
Open
j2rong4cn wants to merge 1 commit into
Open
Conversation
Member
|
tun也有嗅探功能啊 为什么要扔loopback上 |
Contributor
Author
Member
|
sniff能有多少开销 看开头一个包而已 有gvisor TUN零头吗 |
Collaborator
|
@Fangliding |
Collaborator
|
routing.balancers.fallbackTag 只能是出站,但借由 loopback 可以到另一个 balancer |
Member
如果没有异议的话就算了 因为loopback出站再走一次dispatcher也不是零开销的 后续数据都要多倒一手 |
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" } ] }