Skip to content
Back to skills

Singbox Tun

BSecurity

Fedora/Linux reference for a system TUN tunnel through sing-box. Installation, systemd, CAP_NET_ADMIN, routing and DNS changes are mutation procedures requiring explicit authorization.

  • 15 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added November 7, 2026
testinggobashnode

Security analysis

B88/100
  • criticalModifies startup scripts or system services for persistence

Pro scans all 2 files and shows the line behind each finding

Scanned November 7, 2026

npx -y skills add youlianvr/oper-share --skill singbox-tun --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Singbox Tun?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Singbox Tun
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/youlianvr-singbox-tun/badge)](https://www.skillsdirectory.com/skills/youlianvr-singbox-tun)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: singbox-tun
description: 'Fedora/Linux reference for a system TUN tunnel through sing-box. Installation, systemd, CAP_NET_ADMIN, routing and DNS changes are mutation procedures requiring explicit authorization.'
---


# singbox-tun — all system traffic through proxy (TUN)

Full system-level tunnel: all applications (browser, torrents, messengers)
go through the selected proxy. Provider sees only the proxy IP, DNS requests
also go through the proxy (domains are hidden).

Diagram:

```
Applications → TUN (sing-tun) → urltest (best proxy selection) → SOCKS5 proxy → internet
                                   └─ DNS: tls://1.1.1.1 via proxy (domains hidden)
```

## Installation (Fedora, official repository)

```bash
sudo dnf config-manager addrepo --from-repofile=https://sing-box.app/sing-box.repo
sudo dnf install sing-box          # verify: sing-box version
```

The package already installs the systemd unit `/usr/lib/systemd/system/sing-box.service`
with `AmbientCapabilities=CAP_NET_ADMIN CAP_NET_RAW` and user `sing-box` —
TUN works WITHOUT root and without sudo hacks.

## Config

File: `/etc/sing-box/config.json`. Full working example (verified on 1.13.18) —
in `references/config.example.json`. Key nodes:

- **inbound**: `tun` (`auto_route: true`, `strict_route: true`, `stack: "system"`) — pulls all traffic
- **outbounds**: SOCKS5 with `username`/`password` (auth supported!) + `urltest` group for auto-switching
- **DNS**: `tls://1.1.1.1` with `detour: "auto"` — resolving through proxy
- **route**: `final: "auto"` — all unmatched traffic into proxy; local network (`ip_is_private`) — direct (so printers/router don't break)

## Running and verification

```bash
sudo systemctl enable --now sing-box
systemctl is-active sing-box                 # active

Files in this skill

  • SKILL.md1.8 KB
  • references/config.example.json1.3 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.