Skip to content

network: add sing-box package (VLESS/Reality tun VPN) - #3111

Open
aumVilohm wants to merge 1 commit into
ROCKNIX:nextfrom
aumVilohm:add-sing-box-vpn
Open

network: add sing-box package (VLESS/Reality tun VPN)#3111
aumVilohm wants to merge 1 commit into
ROCKNIX:nextfrom
aumVilohm:add-sing-box-vpn

Conversation

@aumVilohm

Copy link
Copy Markdown

What

Adds sing-box as a ROCKNIX network package, wired in like tailscale / zerotier:

  • Prebuilt upstream binary v1.13.15 to /usr/sbin/sing-box (aarch64 + x86_64, SHA256-pinned).
  • Autostart daemon daemons/004-sing-box, gated by the singbox.up setting.
  • sing-box.service: sing-box check pre-start, runs -c /storage/.config/sing-box/config.json, Restart=on-failure, CAP_NET_ADMIN / CAP_NET_RAW only.
  • Sample config (placeholders only) + README.
  • SINGBOX_SUPPORT distro-wide, pulled in by the network virtual package.

Why

sing-box is an obfuscation-capable proxy client (VLESS/REALITY, AmneziaWG, WireGuard, Shadowsocks, Hysteria2) with TUN transparent routing. On links where plain WireGuard is DPI-blocked, and where the menu wg-quick path is not usable, it is a working way to route the device through a VPN (e.g. to reach Steam/FEX servers for Install Steam on restricted connections).

Testing

Built for SM8750, flashed on a KONKR Pocket FIT Elite (AYANEO, sun):

  • /usr/sbin/sing-box present; sing-box check passes a VLESS+REALITY+gRPC TUN config.
  • set_setting singbox.up 1 + systemctl start sing-box brings the service up; external IP resolves to the VPN exit, tunnel carries traffic and re-arms on boot via singbox.up.

UI toggle

A matching switch in the VPN SERVICES menu: ROCKNIX/emulationstation-next#25

Adds sing-box as a ROCKNIX network package, integrated like tailscale/
zerotier: prebuilt aarch64/x86_64 binary to /usr/sbin, an autostart daemon
gated by the singbox.up setting, and a systemd unit. Enabled distro-wide
via SINGBOX_SUPPORT. Provides an obfuscation-capable client (VLESS/Reality,
AmneziaWG, WireGuard, Shadowsocks, Hysteria2) with tun transparent routing,
for networks where plain WireGuard is DPI-blocked.
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

Successfully merging this pull request may close these issues.

1 participant