Skip to content
プロジェクト

概要

A 0-RTT QUIC Proxy with SNI camouflage

システム・インフラ

この数値の測り方

計測したスター増加

24時間
+1
7日間
+6
15日間
+9
1か月
履歴を収集中

期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。

image

A 0-RTT QUIC Proxy with SNI camouflage

Building with Nix

Build the native package with nix build. On Linux, build a static musl binary for the host architecture with:

nix build .#musl
./result/bin/shadowquic --help

For customized GitHub Actions builds, see the custom build guide.

Usage

See Documentation

Ask GPT

Read https://spongebob888.github.io/shadowquic/main/configuration/  
Give a config of client and server. For clients it should bypass China local traffic with api enabled. The router script should be intergrated with config file

Client

$ shadowquic -c client.yaml

Example config: client.yaml

Clash-rs

# config.yaml
{
  name: "node_name",
  type: shadowquic,
  server: "1.1.1.1",
  port: 1443,
  username: "my_name",
  password: "my_password",
  server-name: "cloudflare.com"
}

Server

Installation Script (Linux)

$ curl -L https://raw.githubusercontent.com/spongebob888/shadowquic/main/scripts/linux_install.sh | bash

This script will:

  • Install shadowquic to /usr/local/bin/
  • Generate random credentials and config at /etc/shadowquic/server.yaml
  • Setup and start shadowquic systemd service
$ systemctl start shadowquic.service
$ systemctl stop shadowquic.service

Manual Usage

$ shadowquic -c server.yaml

Example config server.yaml

Configuration detail can be found in Documentation

Use inbounds and outbounds lists. Every endpoint requires a nonempty tag, unique within its list. All inbounds run concurrently and route through the outbound named by router.default-outbound; if omitted, the first outbound in the list is used. For example:

inbounds:
- type: socks
  tag: local-socks
  bind-addr: "127.0.0.1:1080"
- type: socks
  tag: second-socks
  bind-addr: "127.0.0.1:1081"
outbounds:
- type: direct
  tag: direct
- type: socks
  tag: upstream
  addr: "127.0.0.1:1082"
router:
  default-outbound: direct

Both listeners above use direct. Additional outbounds are available by tag; API commands select one with api --outbound TAG. Existing singular inbound/outbound configs continue to work unchanged. Each object becomes a single-entry list; omitted tags default to inbound and outbound, respectively. Explicit tags are preserved. List entries still require tags, and specifying both the singular and plural key for the same direction is an error.

With the plugin feature, configure request routing with either inline Lua source or a script file:

router:
  src: |
    return function(ctx) return "direct" end
router:
  path: router.lua

Set only one of src and path. Without a script, requests use router.default-outbound, or the first outbound if it is omitted. Selecting a default outbound does not require the plugin feature. File paths resolve from the process working directory. Changes reload automatically for subsequent requests. Read or script-loading errors are logged and the last working router stays active. A successful reload resets Lua script state; existing connections are unaffected. Inline src scripts are not watched.

The script returns a function that receives the request context and returns a configured outbound tag, or nil, error_message to reject the request. See the router configuration reference for context fields and destination rewriting.

Other Clients

Other Servers

Protocol

PROTOCOL

Interop

ShadowQUIC Interop

Acknowledgement

関連プロジェクトを探す

読み込み中…