yichya / luci-app-xray

(Almost) full feature Xray client for OpenWrt
Mozilla Public License 2.0
543 stars 317 forks source link

I was confued on how to setting up routing #372

Closed davidw0374 closed 4 months ago

davidw0374 commented 6 months ago

I'm newbie on luci-app-xray, i studied it these 2 days ,I learned 3.2.1 ,luckily understood its logic. but for 3.3.1, I was confued totally on how to set up xray routing,i open menu Outbound Routing, the interface is weird . where i put on item "domain" such as "geosite:geolocation-!cn" ? and where i lay down "outboundtag" such as "my-vmess-tunnel"? Thanks for your passion on network f r e e d o m. 2024-01-10_17-47-20

yichya commented 6 months ago

where i put on item "domain" such as "geosite:geolocation-!cn" ? and where i lay down "outboundtag" such as "my-vmess-tunnel"?

Use FakeDNS.

davidw0374 commented 6 months ago

Thank for your advice ,the routing Job done , and link is up, youtubes are charming, long live xray!

but still a annoyed problem : it's important to troubleshooting by watching access.log and error.log ,but i can not setup the location of these files via luci interface , so should i create them manually in config.json ?

yichya commented 6 months ago

it's important to troubleshooting by watching access.log and error.log ,but i can not setup the location of these files via luci interface , so should i create them manually in config.json ?

Just see OpenWrt System Log.

image

If you really need to redirect logs add the following Custom Configurations Hook:

return function(config) {
    config["log"]["error"] = "/tmp/xray.log";
    return config;
};
davidw0374 commented 4 months ago

yes, the Custom Configurations Hook code works. thanks.