alireza0 / x-ui

xray panel supporting multi-protocol multi-user expire day & traffic (Vmess & Vless & Trojan & Shadowsocks)
https://t.me/XrayUI
GNU General Public License v3.0
2.97k stars 473 forks source link

Managed to make one inbound to control all other inbounds for a client , BUT ... #1436

Open SomeBytee opened 2 weeks ago

SomeBytee commented 2 weeks ago

Hi again, sorry to open this comment again I figured it out and now I can control multiple inbounds for a single user using routing rules configuration. and it's working just fine, the key is creating a single inbound containing user traffic limit and expiration date, and creating outbound for each client in the outbound section in the panel settings. then in the routing rules, I select the inbounds that the user will connect to and instead of redirecting them, I choose the inbound that contains the user's traffic and expiration date and then I redirect the inbound which has the data of each client.

the problem with this is you have to create an outbound for each client ( you can use the script for it anyway ) and in the routing rules section you need to define the Client name on each inbound so it won't interrupt other client settings.

but, I'm one step away from what I want, I did a lot of testing and I'm pretty sure I'm not getting something here and it's about having different IP servers ( like Germany, Netherlands, USA, and ... ) that clients can connect to. in the previous we talked that we now managed to control all inbounds using one inbound, now can I use that ONE inbound to go through separated inbounds ( one with a reverse proxy to a USA location and the other one with a reverse proxy to the Netherlands) the base server is Germany which all clients are in there? like for example, all my inbounds are for connecting to a German server. I have a different inbound which is supposed to go to the USA server ( reverse proxied ) . and because all of them are connecting to one inbound for controlling traffic and expiry date, how I can define that one inbound go to each of these server locations?

LONG STORY SHORT: need to know, how to define to transfer data from on inbound , to 2 other inbounds , first one will go to USA and second one go to Netherlands server ( which both of them are reverse proxied to my panel)

i need to add something to the topic as well in my tests : 1- all the data routed through the Netherlands , or the Main inbound which is for controlling inbound would not work anyway 2- couldn't route traffics to Netherlands server but all configs were going through the Main inbound which is for controlling the traffics and expiration date

the key is i want the inbound still can control the traffic and route the traffic based on what client is connecting with . like how i can separate it when it's going through one inbound for 2 different inbound?

I'll send some screenshots of the settings that I already have: ( for now I just want to separate the German inbounds that go to Netherlands server )

chrome_PYJOz5MQJm chrome_etKJ67LgU4 J3jsHpgYC4 chrome_lHqxGmzHXL chrome_arvPz6Pxk2 chrome_2z0URqcmBE

diat01 commented 1 week ago

@SomeBytee

Hello,

First of all, I am new in this field and I hope you know a lot of things because of the question you asked. Can you share with me what you know about how you use this system?