Package Details: sing-box 1.8.6-1

Git Clone URL: https://aur.archlinux.org/sing-box.git (read-only, click to copy)
Package Base: sing-box
Description: The universal proxy platform.
Upstream URL: https://sing-box.sagernet.org/
Licenses: GPL3 with name use or association addition
Conflicts: sing-box-beta, sing-box-git
Submitter: everyx
Maintainer: everyx
Last Packager: everyx
Votes: 8
Popularity: 0.28
First Submitted: 2022-09-15 09:44 (UTC)
Last Updated: 2024-02-24 06:23 (UTC)

Dependencies (3)

Required by (5)

Sources (2)

Latest Comments

1 2 3 Next › Last »

rocka commented on 2024-02-03 10:34 (UTC)

When using tun inbound with systemd-resolved, sing-box would execute resolvectl commands to modify default DNS route and search domain, but sing-box user does not have this privilege.

ref: https://github.com/SagerNet/sing-box/issues/477 https://github.com/SagerNet/sing-tun/blob/38c945fec5df642b1ee0895c5c3a75a3f1276341/tun_linux.go#L821-L824

I suggest install a polkit rule file to /usr/share/polkit-1/rules.d/sing-box-tun.rules:

// Allow sing-box to set domain and default-route
polkit.addRule(function(action, subject) {
    if ((action.id == "org.freedesktop.resolve1.set-domains" ||
         action.id == "org.freedesktop.resolve1.set-default-route" ||
         action.id == "org.freedesktop.resolve1.set-dns-servers") &&
        subject.user == "sing-box") {
        return polkit.Result.YES;
    }
});

This would allow sing-box user to modify systemd-resolved DNS configuration without manual authorization.

Merrkry commented on 2024-01-12 11:17 (UTC)

sing-box 的默认构建标记已经包含 with_dhcp,请求添加。

Zes4Null commented on 2023-10-18 03:20 (UTC)

能否为ech添加支持 ECH is not included in this build, rebuild with -tags with_ech

everyx commented on 2023-09-27 06:24 (UTC)

sing-box 有 completion 命令用于生成自动补全,可以用一下

参考 Termux 的 sing-box(但是考虑交叉编译的话得 go run 而不是拿 binary 跑?不是很懂 go)

@Henry-ZHR 已加入 completions

Henry-ZHR commented on 2023-09-27 04:49 (UTC)

sing-box 有 completion 命令用于生成自动补全,可以用一下

参考 Termux 的 sing-box(但是考虑交叉编译的话得 go run 而不是拿 binary 跑?不是很懂 go)

everyx commented on 2023-06-30 03:14 (UTC)

One or more files did not pass the validity check 我这边下载到的 *.tar.gz 的 sha256 是 e89ffdadf11d4b34d12b2c0659efea0f0786b2396ea4638c61a06e7772783ca5,不知道是不是上游换了

@Henry-ZHR 我刚看了一下,的确是变了,已更新

Henry-ZHR commented on 2023-06-29 15:52 (UTC) (edited on 2023-06-29 15:52 (UTC) by Henry-ZHR)

One or more files did not pass the validity check

我这边下载到的 *.tar.gz 的 sha256 是 e89ffdadf11d4b34d12b2c0659efea0f0786b2396ea4638c61a06e7772783ca5,不知道是不是上游换了

everyx commented on 2023-05-21 05:02 (UTC)

@rrenn 用 StateDirectory 设置了目录,应该没问题了,见 [commit](https://aur.archlinux.org/cgit/aur.git/commit/?h=sing-box&id=b6a69ce2e823d00d1b2632d8af3214ed00760c7b(

everyx commented on 2023-05-18 01:44 (UTC) (edited on 2023-05-18 01:45 (UTC) by everyx)

@rrenn 之前是看到 sing-box 现在会自动创建工作目录了,见 此 commit,所以就移除了自动创建工作目录的配置,见 此commit,目前看来是默认的 sing-box 用户权限不够,我晚上看看 systemd 有没有提供相关的配置方式,再提交修改