Package Details: sing-box 1.10.5-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: 10
Popularity: 0.77
First Submitted: 2022-09-15 09:44 (UTC)
Last Updated: 2024-12-21 12:37 (UTC)

Dependencies (3)

Required by (8)

Sources (2)

Latest Comments

1 2 3 4 Next › Last »

everyx commented on 2024-11-22 09:39 (UTC)

One solution would be to make the config not readable by non-root users and load it using LoadCredentials in the systemd service.

@Poscat In fact, most users who care about this should create a configuration file under /etc/sing-box/ themselves, set the permissions, and then enable sing-box@[config_file_name].service.

However, can you send me a patch to my email? I will carry out a review.

Poscat commented on 2024-11-22 09:19 (UTC)

One solution would be to make the config not readable by non-root users and load it using LoadCredentials in the systemd service.

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