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.96k stars 471 forks source link

Advanced Outband #1409

Open StayAway32 opened 1 month ago

StayAway32 commented 1 month ago

greetings i have a question that is very important for me in case you can help me i would appericiate it

lets say i have multiple ip addresses on my server

and using sendthrough feature you have added recently i want to set a routing rule where clients will use the same inbound ip they connected to as their outband instead of whatever is on eth0 !

i have tried connecting source ip x to outband direct x and source ip y to outband direct y but it seems like Source ip refers to clients ip instead of the ip they connect to

and the ip field also refers to destination the packet is for

is it even possible to achieve this through routing rules or the only way is linux routing tables ?

thanks alot

StayAway32 commented 1 month ago

to simplify

if you connect to inbound 1 via ip x packet should be SendThrough ip x

if you also connect to inbound 1 via ip y packet should be SendThrough ip y thanks alot again in advance

alireza0 commented 2 weeks ago

Hello,

If you have defined some inbounds with IP#1, and want to use routing rules, you cannot use SourceIP which is about client IP. Instead, you can use inbounds' tag.