mirror of
https://github.com/XTLS/Xray-docs-next.git
synced 2026-09-25 07:48:07 +03:00
1.2 KiB
1.2 KiB
Loopback
Loopback is a loopback outbound used to send traffic back to routing for further processing without leaving the core.
OutboundConfigurationObject
OutboundConfigurationObject corresponds to the settings item in OutboundObject.
{
"outbounds": [
{
// ...
"protocol": "loopback",
// [!code focus:3]
"settings": {
"inboundTag": "TagUseAsInbound"
}
}
]
}
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.
::: tip Uses
- In places where only an outbound can be specified and
balancerTagcannot be written directly, Loopback lets you use a balancer indirectly.
For example,proxySettingsanddialerProxyin chained proxies, andfallbackTagin load balancing. - After traffic has already been routed once, it can be further subdivided using more conditions.
For example, TCP traffic and UDP traffic split by the same set of routing rules can be sent to different outbounds.
:::