forwarding #4768
Unanswered
mohamadrezamomeni
asked this question in
Q&A
forwarding
#4768
Replies: 1 comment 1 reply
-
The "redirect" property should be put inside "outbound.settings". Beside that I don't see any other problems. {
"outbounds": [
{
"tag": "custom",
"protocol": "freedom",
"settings": {
"redirect": "127.0.0.1:8021"
}
}
]
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
i set vmess in inbound i want to forward traffic to specific app that accepct tcp after that forward that and finally return result but i couldn't forward traffic to that app i explained my config is:
{
"log": {
"access": "/var/log/xray/access.log",
"error": "/var/log/xray/error.log",
"level": "info"
},
"routing": {
"rules": [
{
"inboundTag": [
"api"
],
"outboundTag": "api",
"type": "field"
},
{
"outboundTag": "custom",
"type": "field",
"inboundTag": [
"inbound-333"
]
}
]
},
"dns": null,
"inbounds": [
{
"tag": "inbound-333",
"port": 10086, // Port of the server. Must be the same as above.
"protocol": "vmess",
"settings": {
"clients": [
{
"id": "b831381d-6324-4d53-ad4f-8cda48b30811"
}
]
},
"streamSettings": {
"network": "tcp"
}
},
{
"listen": "0.0.0.0",
"port": 62789,
"protocol": "dokodemo-door",
"settings": {
"address": "0.0.0.0"
},
"streamSettings": null,
"tag": "api",
"sniffing": null
}
],
"outbounds": [
{
"protocol": "freedom",
"settings": {},
"redirect": "127.0.0.1:8021",
"tag": "custom"
}
],
"transport": null,
"policy": {
"levels": {
"0": {
"statsUserUplink": true,
"statsUserDownlink": true
}
},
"system": {
"statsInboundDownlink": true,
"statsInboundUplink": true
}
},
"api": {
"services": [
"ReflectionService",
"HandlerService",
"LoggerService",
"StatsService"
],
"tag": "api"
},
"stats": {},
"reverse": null,
"fakeDns": null
}
Beta Was this translation helpful? Give feedback.
All reactions