Package Details: sing-box 1.10.1-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: custom:GPL-3.0-or-later WITH name use or association addition
Conflicts: sing-box-beta, sing-box-git
Submitter: everyx
Maintainer: everyx (lilac)
Last Packager: lilac
Votes: 9
Popularity: 0.009721
First Submitted: 2022-09-15 09:44 (UTC)
Last Updated: 2024-10-17 13:18 (UTC)

Dependencies (3)

Required by (8)

Sources (2)

Latest Comments

1 2 3 4 Next › Last »

everyx commented on 2024-11-19 03:38 (UTC)

Are there any reasons the default config is readable by anyone? This seems to be a potential security issue :/

@Poscat Since the sing-box user is created by systemd-sysusers, modifying the file group to sing-box within the PKGBUILD should not work. I'm not sure what the best practice is for this type of requirement. Do you have any related suggestions?

Poscat commented on 2024-11-18 09:52 (UTC)

Are there any reasons the default config is readable by anyone? This seems to be a potential security issue :/

everyx commented on 2024-04-14 01:50 (UTC)

add gopath to build so that it doesn't pollute your home dir export GOPATH="$SRCDEST/go-modules"

@kevku Setting GOPATH="$SRCDEST/go-modules can be a helpful solution if they haven't already configured a GOPATH, I will submit an update soon.

kevku commented on 2024-04-11 08:36 (UTC)

add gopath to build so that it doesn't pollute your home dir

export GOPATH="$SRCDEST/go-modules"

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)