i have problem to use reverse proxy #4868
Unanswered
ShahabSiam
asked this question in
Q&A
Replies: 0 comments
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a server and i want to use reverse proxy to connect from my server to my pc that i have ip and my dmz in my modem
this is my server config
`
{
"api": {
"services": [
"HandlerService",
"LoggerService",
"StatsService"
],
"tag": "api"
},
"burstObservatory": null,
"dns": null,
"fakedns": null,
"inbounds": [
],
"log": {
"access": "none",
"dnsLog": false,
"error": "",
"loglevel": "warning",
"maskAddress": ""
},
"metrics": {
"listen": "127.0.0.1:11111",
"tag": "metrics_out"
},
"observatory": null,
"outbounds": [
{
"protocol": "freedom",
"settings": {
"domainStrategy": "AsIs",
"noises": [],
"redirect": ""
},
"tag": "direct"
},
{
"protocol": "blackhole",
"settings": {},
"tag": "blocked"
},
{
"protocol": "vmess",
"settings": {
"vnext": [
{
"address": "my pc ip",
"port": 8405,
"users": [
{
"id": "id1",
"security": "auto"
}
]
}
]
},
"streamSettings": {
"network": "tcp",
"security": "none",
"tcpSettings": {
"header": {
"type": "none"
}
}
},
"tag": "tunel"
}
],
"policy": {
"levels": {
"0": {
"statsUserDownlink": true,
"statsUserUplink": true
}
},
"system": {
"statsInboundDownlink": true,
"statsInboundUplink": true,
"statsOutboundDownlink": false,
"statsOutboundUplink": false
}
},
"reverse": {
"bridges": [
{
"domain": "reverse.xui",
"tag": "reverse-0"
}
]
},
"routing": {
"domainStrategy": "AsIs",
"rules": [
{
"inboundTag": [
"api"
],
"outboundTag": "api",
"type": "field"
},
{
"ip": [
"geoip:private"
],
"outboundTag": "blocked",
"type": "field"
},
{
"outboundTag": "blocked",
"protocol": [
"bittorrent"
],
"type": "field"
},
{
"domain": [
"full:reverse.xui"
],
"inboundTag": [
"reverse-0"
],
"outboundTag": "tunel",
"type": "field"
},
{
"inboundTag": [
"reverse-0"
],
"outboundTag": "tunel",
"type": "field"
}
]
},
"stats": {},
"transport": null
}`
and this is my pc config
{ "api": { "services": [ "HandlerService", "LoggerService", "StatsService" ], "tag": "api" }, "burstObservatory": null, "dns": null, "fakedns": null, "inbounds": [ { "allocate": null, "listen": "127.0.0.1", "port": 62789, "protocol": "dokodemo-door", "settings": { "address": "127.0.0.1" }, "sniffing": null, "streamSettings": null, "tag": "api" }, { "allocate": { "concurrency": 3, "refresh": 5, "strategy": "always" }, "listen": null, "port": 8405, "protocol": "vmess", "settings": { "clients": [ { "email": "tunel", "id": "id1" }, { "email": "externaluser", "id": "id2" } ] }, "sniffing": { "destOverride": [ "http", "tls", "quic", "fakedns" ], "enabled": true, "metadataOnly": false, "routeOnly": false }, "streamSettings": { "network": "tcp", "security": "none", "tcpSettings": { "acceptProxyProtocol": false, "header": { "type": "none" } } }, "tag": "inbound-8405" } ], "log": { "access": "./access.log", "dnsLog": false, "error": "./error.log", "loglevel": "debug", "maskAddress": "" }, "metrics": { "listen": "127.0.0.1:11111", "tag": "metrics_out" }, "observatory": null, "outbounds": [ { "protocol": "freedom", "settings": { "domainStrategy": "UseIPv4" }, "tag": "direct" }, { "protocol": "blackhole", "settings": {}, "tag": "blocked" } ], "policy": { "levels": { "0": { "statsUserDownlink": true, "statsUserUplink": true } }, "system": { "statsInboundDownlink": true, "statsInboundUplink": true, "statsOutboundDownlink": false, "statsOutboundUplink": false } }, "reverse": { "portals": [ { "domain": "reverse.xui", "tag": "reverse-0" } ] }, "routing": { "domainStrategy": "AsIs", "rules": [ { "inboundTag": [ "api" ], "outboundTag": "api", "type": "field" }, { "domain": [ "full:reverse.xui" ], "inboundTag": [ "inbound-8405" ], "outboundTag": "reverse-0", "type": "field" }, { "inboundTag": [ "inbound-8405" ], "outboundTag": "reverse-0", "type": "field", "user": [ "externaluser" ] } ] }, "stats": {}, "transport": null }
with above routing i use external user to connect i got 300ms to get real delay test But when i use externaluser for proxy it act like direct routing not proxy routing (WHY?)
with direct real delay test i get 50ms delay
if i remove externaluser from routing i got -1 and cant connect
[ { "type": "field", "inboundTag": [ "api" ], "outboundTag": "api" }, { "type": "field", "outboundTag": "blocked", "ip": [ "geoip:private" ] }, { "outboundTag": "tunel", "inboundTag": [ "reverse-0" ], "domain": [ "full:reverse.xui" ], "type": "field" }, { "outboundTag": "tunel", "inboundTag": [ "reverse-0" ], "type": "field" } ]
whats the problem wtih my routing rules?
Beta Was this translation helpful? Give feedback.
All reactions