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

Version 3.5.0 feedback #434

Open
yichya opened this issue Nov 25, 2024 · 12 comments
Open

Version 3.5.0 feedback #434

yichya opened this issue Nov 25, 2024 · 12 comments

Comments

@yichya
Copy link
Owner

yichya commented Nov 25, 2024

Version 3.5.0 includes:

Currently to use splithttp transport with upload / download separation, using custom configurations is required and specifying correct streamSettings.splithttpSettings.downloadSettings.sockopt.mark is necessary to avoid loopback traffic. There'll be a value shown in the app (for example 234 in the screenshot below; it defaults to 255 and can be changed in preview app.)

image

Just fill it in the correct field:

{
    "streamSettings": {
        "splithttpSettings": {
            "downloadSettings": {
                "address": "redacted.server.name",
                "port": 443,
                "network": "xhttp",
                "security": "tls",
                "tlsSettings": {
                    "serverName": "redacted.server.name",
                    "fingerprint": "random",
                    "alpn": [
                        "h2",
                        "http/1.1"
                    ]
                },
                "xhttpSettings": {
                    "path": "/redacted"
                },
                "sockopt": {
                    "mark": 234,
                    "domainStrategy": "UseIPv6"
                }
            }
        }
    }
}
@yichya yichya pinned this issue Nov 25, 2024
@ptipti23
Copy link

Sorry for what may be a stupid question, is there a way to safely update the app from an old version while keeping all settings?

@keyuxing
Copy link

keyuxing commented Dec 1, 2024

Thanks for developing this great plugin! I'm wondering that when xhttp can be supported? Or is there an alternative way to use xhttp in version 3.5.0?

@yichya
Copy link
Owner Author

yichya commented Dec 1, 2024

Sorry for what may be a stupid question, is there a way to safely update the app from an old version while keeping all settings?

This project follows Semantic Versioning, so in most cases you can simply opkg install a new version. See Breaking Changes in README for exceptions.

Thanks for developing this great plugin! I'm wondering that when xhttp can be supported? Or is there an alternative way to use xhttp in version 3.5.0?

splithttp is just an alias for xhttp and is supported (basically) in 3.5.0. Some advanced usages require Custom Configurations mentioned previously in this issue.

@ghggn
Copy link

ghggn commented Dec 11, 2024

作者您好, 我一直被安装luci-app-xray之后Zerotier不能使用问题困扰, 我不知道如何解决.
这个问题至少从3.4开始就存在 (甚至3.0就存在,但我记不太清)

@yichya
Copy link
Owner Author

yichya commented Dec 11, 2024

作者您好, 我一直被安装luci-app-xray之后Zerotier不能使用问题困扰, 我不知道如何解决. 这个问题至少从3.4开始就存在 (甚至3.0就存在,但我记不太清)

你这个 zerotier 是装在路由器上还是其他接入到路由器的设备上?

如果是装在路由器上的话建议考虑尝试修改 /etc/init.d/zerotier#L93 让 zerotier 用一个别的 group(比如 network,gid 101)启动,大概就是在这个地方加一行 procd_set_param group network;然后在 luci-app-xray 里面设置一下 gid 101 跳过代理

image

@ghggn
Copy link

ghggn commented Dec 11, 2024

成功了 ! 太强大了 !

@malikshi
Copy link

how we add hook for balancer? i want different balancer strategy. leastping for UDP and roundrobin for TCP? could you guys help me out, what should i do with custom options

@yichya
Copy link
Owner Author

yichya commented Dec 14, 2024

how we add hook for balancer? i want different balancer strategy. leastping for UDP and roundrobin for TCP? could you guys help me out, what should i do with custom options

This should be enough to change global UDP balancers to use leastPing strategy:

return function (config) {
    for (let i in config["routing"]["balancers"]) {
        if (i["tag"] == "udp_outbound_v4" || i["tag"] == "udp_outbound_v6") {
            i["strategy"]["type"] = "leastPing";
        }
    }
    return config;
};

@malikshi
Copy link

how make all domain resolved in fakedns except private ips(geoip:private) ?

@ptipti23
Copy link

ptipti23 commented Jan 3, 2025

Hello. I noticed that in this topic you have 2 screenshots, and they have different tabs. I have default tabs as in the answer "#434 (comment)"
Accordingly, there are no tabs that are specified in the screenshot as in the comment "#434 (comment)", exactly where the settings for torrents are. How can I get such tabs?

@yichya
Copy link
Owner Author

yichya commented Jan 3, 2025

how make all domain resolved in fakedns except private ips(geoip:private) ?

Not supported currently. Not recommended as well, as it may lead to recursions in DNS resolutions.

Accordingly, there are no tabs that are specified in the screenshot as in the comment "#434 (comment)", exactly where the settings for torrents are. How can I get such tabs?

#434 (comment) does not include anything related to torrents. If you're looking for "BitTorrent Direct":

  • Enable "Preview or Deprecated" in Extra Options
  • Reboot your OpenWrt device
  • Find the new application "Xray (preview)" and enable Sniffing there

image

@ptipti23
Copy link

ptipti23 commented Jan 3, 2025

Thanks alot
however, the connection still goes through the default server in the main settings. I'm already blocked for the second time because the provider has banned torrent traffic.

in general, the Bittorrent direct checkbox doesn't work :(

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

5 participants