-
Notifications
You must be signed in to change notification settings - Fork 504
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multi Outbound Routing #1220
Comments
This is gonna add much complexity, and needs lots of change in database structure. |
Yes, it needs a lot of changes, but there may be an easier solution |
First thing is that, we don't need to create many UUID for each user, we can just append the Outbound name to user's UUID and then change this string to a new UUID! (user's UUID will become a master UUID)
or we can directly use user's UUID as namespace of UUIDv5
for Trojan Inbounds, can just append outbound name |
This part is not a big problem, the real problem is the record usage job, we're gonna have multiple records for each user instead of 1, also this gonna be applied for each node |
record usage job only uses user-id and ignores rest of the email, so we can just add outbound name after the username and there will be no problem Marzban/app/jobs/record_usages.py Lines 104 to 110 in 349451d
just needs changes in add/remove/alter/update users at api operations https://github.com/Gozargah/Marzban/blob/master/app/xray/operations.py |
i think i didn't says it right, i mean job its gonna be much slower and its not efficient |
The only thing that can take longer time is recording new values to database |
not for now , maybe in future. |
Hello
I know all of you have warp outbound, some people have even more
If we want to have multiple config (one to freedom, another to warp and another for others)
we need to create multiple Inbounds and add routing like this
But there is another way to do the same without creating a new inbound for each outbound
It has many benefits especially for users who have multiple outbounds
Is it possible to integrate this with Marzban? @SaintShit
Needs to create new pair of Email and UUID for each outbound and a change in GUI to select the outbound for each Host
The text was updated successfully, but these errors were encountered: