FranzKafkaYu / x-ui

Lightweight Xray panel with multi-protocol and multi-user on the same port,supports English language and Telegram bot. Easy to use and easy to manage.
GNU General Public License v3.0
7.84k stars 1.57k forks source link

Support Outbound for tunneling #415

Open mortezaghafoori opened 1 year ago

mortezaghafoori commented 1 year ago

Hi, is it possible to add outbounds section to tunnel incoming connections through another xray config?

taesiri commented 1 year ago

@mortezaghafoori You should be able to do that in the setting -> xray config tab.

mortezaghafoori commented 1 year ago

First of all, thanks for the info. Second, I'm a real noob here so can you guide me a little bit on how to do it? Or just suggest any guides or tutorials to follow and make it work.

taesiri commented 1 year ago

@mortezaghafoori

First, take a backup from the original config file, then, paste the json config for your upstream proxy in the outbounds section of that config file.

mortezaghafoori commented 1 year ago

I've been testing a lot and I finally got it to work! Just a few tips for those who want to do it: You have to replace your outbound config with the freedom protocol that is already in the panel and you must remove any tags if it has any (if you export your config from v2rayng for example it will have a proxy tag). That's it! Leave everything else as it is.

taesiri commented 1 year ago

@mortezaghafoori Good! Feel free to close this issue.