Loopback
Loopback is a loopback outbound used to send traffic back to routing for further processing without leaving the core.
Uses
- In places where only an outbound can be specified and
balancerTagcannot be written directly, Loopback can be used to indirectly use a balancer.
For example,proxySettingsanddialerProxyin chained proxies, andfallbackTagin load balancing. - After traffic has already been routed once, it can be further subdivided based on more conditions.
For example, TCP traffic and UDP traffic routed by the same set of routing rules can be sent to different outbounds.
OutboundConfigurationObject
OutboundConfigurationObject corresponds to the settings item in OutboundObject.
json
{
"outbounds": [
{
// ...
"protocol": "loopback",
"settings": {
"inboundTag": "TagUseAsInbound",
"sniffing": {}
}
}
]
}1
2
3
4
5
6
7
8
9
10
11
12
13
2
3
4
5
6
7
8
9
10
11
12
13
inboundTag: string
The inbound tag used when re-entering routing.
This tag can be used as inboundTag in routing, indicating that data from this outbound will re-enter routing with this tag and be processed again by the corresponding rules.
sniffing: SniffingObject
Traffic sniffing. The specific configuration is the same as that of Inbound. Disabled by default.