XrayR-project / XrayR

A Xray backend framework that can easily support many panels. 一个基于Xray的后端框架,支持V2ay,Trojan,Shadowsocks协议,极易扩展,支持多面板对接
https://xrayr-project.github.io/XrayR-doc/
Mozilla Public License 2.0
2.12k stars 841 forks source link

How to setup rules & route for direct domain connection #358

Closed unknownqp closed 1 year ago

unknownqp commented 1 year ago

Hello, I want to make some configurations where the domains ending with '.ir' and '.tr' can be accessed directly without going through a proxy. I want to perform this task from the server side. Is there anyone who can guide me?

Cp0204 commented 1 year ago

Please read the xray routing document

wengguanjie1997 commented 1 year ago

我想咨询下。如何设置direct标识,我发现这样设置后,流量一样走的是VPS。是否需要增加一个proxy标识,让国外流量走proxy。但是我的vmess配置信息是从v2board拉取生成。这个我该如何取定义呢? { "tag": "direct", "protocol": "freedom", "settings": {} },

unknownqp commented 1 year ago

I'm in the same situation, and I'm using V2board with XrayR as well. I'm not exactly sure how and where to enter these codes to make it work correctly.

wengguanjie1997 commented 1 year ago

Yeah. If I config vmess configuration in the custom_outbound.json file, that my remote configuration of v2board node info is invalid. So, how to config this part of proxy configuration ? My purpose is to divert traffic on the server. Because I found that turning on the global proxy on the client will cause some domestic traffic to go through Vps。

Septrum101 commented 1 year ago

Once the traffic send to server, this traffic will proxy by the server. Your pupose is handle the traffic on client side, So you should goto panel group to deal with the rule from your panel.