Skip to content
Back to skills

Setup Shadowsocks

CSecurity

Install and configure Shadowsocks — client on macOS, server on Linux VPS, or diagnose both. Ask the user server-vs-client first.

  • 9 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 6, 2026
developmentpythonrustgobash

Works with

  • cli

Security analysis

C63/100
  • criticalAccesses sensitive system or user directories
  • criticalModifies startup scripts or system services for persistence

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

Scanned September 6, 2026

npx -y skills add yanmxa/cc-plugins --skill setup-shadowsocks --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Setup Shadowsocks?

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

Security grade badge for Setup Shadowsocks
[![Security: C — Skills Directory](https://www.skillsdirectory.com/api/skills/yanmxa-setup-shadowsocks/badge)](https://www.skillsdirectory.com/skills/yanmxa-setup-shadowsocks)

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: setup-shadowsocks
description: Install and configure Shadowsocks — client on macOS, server on Linux VPS, or diagnose both. Ask the user server-vs-client first.
allowed-tools: [Bash, Read, Write, Edit, AskUserQuestion]
---

# Setup Shadowsocks

Three things this skill does:

- **Client** — install + configure Shadowsocks on THIS Mac (sslocal + sing-box HTTP layer)
- **Server** — SSH-deploy to a Linux VPS (ssserver + systemd + firewall)
- **Diagnose** — check both ends, restart, fix issues

## Step 0 — ask

Always ask first: **client, server, or diagnose?**

## Client

One command:

```bash
bash ${CLAUDE_SKILL_DIR}/scripts/setup-shadowsocks.sh --service   # or --no-service for manual
```

Installs `shadowsocks-rust` (Homebrew), deploys `~/.config/shadowsocks/config.json` + `aliases.sh` + `http-proxy.json` (sing-box mixed port for HTTP), optionally creates a launchd plist. Never overwrites an existing config.json.

After setup, fill in `server` and `password`, then:

```bash
source ~/.zshrc
ssstart && sson
```

Architecture:

```
sson → :1082(sing-box) → :1084(sslocal) → TCP → 服务器
       对外统一口          内部 SOCKS5
```

| 端口 | 进程 | 说明 |
|------|------|------|
| `:1082` | sing-box | 对外统一口,`sson` 指向这里 |
| `:1084` | sslocal | 内部 SOCKS5,自动管理 |

### Commands

| Command | Action |
|---------|--------|
| `ssstart` / `ssstop` / `ssrestart` | Service control (launchd or manual) |
| `ssstatus` | PID + mode + SOCKS5:1084 + HTTP:1082 |
| `sslog` / `sslogs` | Tail / last 50 lines of logs |
| `ssedit` | Edit config.json + auto-restart |
| `sshelp` | Full command reference |
| `sson` / `ssoff` / `ssproxystatus` | Proxy env vars (HTTP_PROXY=http://:1082, ALL_PROXY=socks5://:1082) |
| `ssip` | Compare direct vs. proxy egress IP |
| `ssspeed` | Test proxy download speed |
| `goss` / `stopss` | Start+proxy+IP / Stop+unproxy |

Default: SOCKS5 `:1084` (sslocal), HTTP+SOCKS5 `:1082` (sing-box).

## Server

```bash
bash ${CLAUDE_SKILL_DIR}/scripts/setup-shadowsocks.sh --server --host <ip> \
  [--ssh-user root] [--ssh-port 22] [--ssh-key <path>] [--server-port 8388] [--method aes-256-gcm]
```

Requires key-based SSH (`ssh-copy-id` first). Installs shadowsocks-rust, writes `/etc/shadowsocks-rust/config.json` with server-generated password, enables systemd, opens firewall. Prints ready-to-paste client config.

## Diagnose

SS is simple — TCP-based, no complex protocol issues. Check:

```bash
ssstatus         # local: running? ports listening?
sslogs           # any errors?
nc -zv <server> 8388   # TCP reachable?
```

## Common fixes

| Symptom | Likely cause | Fix |
|---------|-------------|-----|
| `Connection refused` | sslocal not running | `ssstart` |
| HTTP tools don't work | sing-box layer down | `ssrestart` (restarts both) |
| `timeout` | GFW blocked port/IP | Change server port or switch to hy2 |
| Method not supported | Old Python ss client | Use `shadowsocks-rust` (Homebrew) |

Files in this skill

  • scripts/aliases.sh6.9 KB
  • scripts/com.shadowsocks.client.plist.template867 B
  • scripts/config.json.template456 B
  • scripts/deploy-shadowsocks-server.sh3 KB
  • scripts/http-proxy.json.template268 B
  • scripts/server-install-shadowsocks.sh3.4 KB
  • scripts/setup-shadowsocks.sh5.7 KB
  • scripts/ssh-deploy.sh2.1 KB
  • skill.md2.9 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.

View all in development →

Comments

Loading comments…

Newsletter

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