Skip to content
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

能说一下到底怎么才能用起来吗? #302

Open
herozzm opened this issue May 26, 2023 · 3 comments
Open

能说一下到底怎么才能用起来吗? #302

herozzm opened this issue May 26, 2023 · 3 comments

Comments

@herozzm
Copy link

herozzm commented May 26, 2023

我下载了下面两个ipk安装,中间提示缺少的组件我也安装好了
luci-app-xray-shared_2.0.0-1_all.ipk
luci-app-xray-fw4_2.0.0-1_all.ipk

安装好后台也能看到界面,但是相比之前手动写的config.json,感觉不一样,我在windows上用v2rayN用1分钟配置可以正常链接了,但是在luci-app-xray配了一天没用起来,看日志启动了没问题,我将电脑网关和dns都改成了这个openwrt(openwrt只是作为一个旁路由来使用)的ip还是无法翻墙,/usr/bin/xray -test -config /var/etc/xray/config.json也显示ok,
luci-app-xray界面配置上也没说是不是全部接管了openwrt的流量(已勾选透明代理)?

是不是类似系统代理,然后在xray这里用geo来分流?比如黑名单模式,白名单模式,luci-app-xray采用的是默认是什么模式呢?
在DNS Settings有一条Bypassed domain rules:geosite:cn,用的绕过大陆模式吗?只要是国外ip一律走梯子?
我在windows上x2rayN、macOS和其他linux上可以正常使用的config.json配置:

{
    "log": {
        "access": "",
        "error": "",
        "loglevel": "none"
    },
    "inbounds": [
        {
            "tag": "socks",
            "port": 10808,
            "listen": "127.0.0.1",
            "protocol": "socks",
            "sniffing": {
                "enabled": true,
                "destOverride": [
                    "http",
                    "tls"
                ],
                "routeOnly": false
            },
            "settings": {
                "auth": "noauth",
                "udp": true,
                "allowTransparent": false
            }
        },
        {
            "tag": "http",
            "port": 10809,
            "listen": "127.0.0.1",
            "protocol": "http",
            "sniffing": {
                "enabled": true,
                "destOverride": [
                    "http",
                    "tls"
                ],
                "routeOnly": false
            },
            "settings": {
                "auth": "noauth",
                "udp": true,
                "allowTransparent": false
            }
        }
    ],
    "outbounds": [
        {
            "tag": "direct",
            "protocol": "freedom",
            "settings": {}
        },
        {
            "tag": "proxy",
            "protocol": "vless",
            "settings": {
                "vnext": [
                    {
                        "address": "xxxx.com",
                        "port": 443,
                        "users": [
                            {
                                "id": "xxxx-xxxx-xxx-xx",
                                "alterId": 0,
                                "email": "[email protected]",
                                "security": "auto",
                                "encryption": "none",
                                "flow": "xtls-rprx-vision"
                            }
                        ]
                    }
                ]
            },
            "streamSettings": {
                "network": "tcp",
                "security": "tls",
                "tlsSettings": {
                    "allowInsecure": true,
                    "show": false
                }
            },
            "mux": {
                "enabled": false,
                "concurrency": -1
            }
        }
    ],
    "routing": {
        "rules": [
            {
                "type": "field",
                "outboundTag": "proxy",
                "domain": [
                    "geosite:google"
                ],
                "enabled": true
            }
        ]
    }
}
@yichya
Copy link
Owner

yichya commented May 26, 2023

旁路由这种用法应该是支持的,但我没用过,你可以先试试不使用旁路由的形式。这个项目的分流使用白名单(域名 + ip)的方式。

@herozzm
Copy link
Author

herozzm commented May 26, 2023

旁路由这种用法应该是支持的,但我没用过,你可以先试试不使用旁路由的形式。这个项目的分流使用白名单(域名 + ip)的方式。

好 我换成主路由模式试试

@hululu1068
Copy link

hululu1068 commented Aug 25, 2023

旁路由这种用法应该是支持的,但我没用过,你可以先试试不使用旁路由的形式。这个项目的分流使用白名单(域名 + ip)的方式。

试了下,没有配置成功。。。
LUCIconfig还是有很多区别的。。。能提供个示例文件吗,或者开下discussions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants