# proxy

* [Shadowsocks](#shadowsocks)
* [xray](#xray)
* [v2ray](#v2ray)
  * [with router](#with-router)
* [hysteria - Go](#hysteria---go)
* [naiveproxy](#naiveproxy)
* [Brook - Go](#brook---go)
* [fastd](#fastd)
* [tinc](#tinc)
* [Manager](#manager)
* [Panel](#panel)
* [Docker](#docker)
* [Cow - Auto detect blocked sites](#cow---auto-detect-blocked-sites)
* [Optimize](#optimize)
  * [BBR (Kernel 4.9+)](#bbr-kernel-49)
  * [KCPTun](#kcptun)
  * [dragonite-java](#dragonite-java)
  * [UDPspeeder](#udpspeeder)
* [govpn](#govpn)
* [HTTP tunnel in Go: goflyway](#http-tunnel-in-go-goflyway)
* [LightSword](#lightsword)
* [ShadowVPN](#shadowvpn)
* [gohop VPN - go](#gohop-vpn---go)
* [GO Simple Tunnel](#go-simple-tunnel)
* [goproxy for GAE](#goproxy-for-gae)
* [goproxy with msocks protocal](#goproxy-with-msocks-protocal)
* [tinyFecVPN](#tinyfecvpn)
* [Clients](#clients)
  * [clash](#clash)
    * [Premium](#premium)
    * [Tap](#tap)
    * [Web UI](#web-ui)
  * [Gaming](#gaming)
    * [netch](#netch)
  * [sing-box](#sing-box)
  * [nekoray](#nekoray)
* [Management](#management)
  * [Web](#web)
  * [CLI](#cli)
* [Subscription](#subscription)
* [VPN](#vpn)
* [Host Apps](#host-apps)
* [tsocks](#tsocks)

## Shadowsocks

* [Official](https://github.com/shadowsocks/) |
* [Compare](https://github.com/shadowsocks/shadowsocks/wiki/Feature-Comparison-across-Different-Versions)
* ([raw](https://raw.githubusercontent.com/wiki/shadowsocks/shadowsocks/Feature-Comparison-across-Different-Versions.md))
* haproxy <https://lvii.gitbooks.io/outman/content/ss.haproxy.html>
* shadow-tls: <https://github.com/ihciah/shadow-tls/wiki/Example-Compose>

## xray

<https://github.com/XTLS/\\>
<https://hub.docker.com/r/teddysun/xray>

<https://github.com/rprx/v2fly-github-io/blob/master/docs/config/protocols/vless.md#%E5%AE%A2%E6%88%B7%E7%AB%AF%E6%8C%87%E5%BC%95>

```
Qv2ray（v2.6.3+），支持 Linux、macOS、Windows
v2rayN（v3.21+），支持 Windows
v2rayNG（v1.3.0+），支持 Android
PassWall（v3.9.35+），支持 OpenWrt
v2rayA（v1.0.0+），支持 Linux, Web UI
v2rayU（v3.0.0+），支持 macOS
```

## v2ray

<https://www.v2ray.com/chapter\\_02/01\\_overview.html\\>
<https://github.com/v2ray/manual/blob/master/zh\\_cn/chapter\\_02/protocols/vmess.md>

* 配置指南 <https://toutyrater.github.io/v2ray-guide-pages/>
* <https://github.com/ToutyRater/v2ray-guide/blob/master/basic/vmess.md>

loglevel： "debug"、"info"、"warning"、"error" 和 "none"

```
"inbound": {
    "protocol": "http",
    "port":8123,
    "settings": {
        "timeout": 0
    }
},
"inbound": {
    "port": 1080,           // 本地监听端口
    "listen": "0.0.0.0",
    "protocol": "socks",    // 使用 Socks(5) 传入协议
    "settings": {
        "auth": "noauth",     // 不认证
        "udp": false,         // 不开启 UDP 转发
        "ip": "127.0.0.1"     // 当开启 UDP 时，V2Ray 需要知道本机的 IP 地址
    }
},
```

### with router

<https://blog.zichao.io/2018/03/03/v2ray-on-vyos.html>

## hysteria - Go

* <https://github.com/apernet/hysteria>
* Clinets: <https://hysteria.network/zh/docs/installation/>
* Full Config: <https://hysteria.network/zh/docs/advanced-usage/>

multi-port: <https://v2.hysteria.network/docs/advanced/Port-Hopping/#server>

```
iptables -t nat -A PREROUTING -i eth0 -p udp --dport X:Y -j REDIRECT --to-ports Z
iptables -t nat -L | grep redir
```

## naiveproxy

* <https://github.com/klzgrad/naiveproxy>
* wiki: <https://github.com/klzgrad/naiveproxy/wiki/%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87>
* docker: <https://github.com/RayWangQvQ/naiveproxy-docker>

## Brook - Go

<https://github.com/txthinking/brook>

## fastd

<https://projects.universe-factory.net/projects/fastd/wiki>

```
deb http://ftp.de.debian.org/debian sid main
deb https://repo.universe-factory.net/debian/ sid main
```

<https://nilsschneider.net/2013/02/17/fastd-tutorial.html\\>
<https://github.com/digineo/fastd>

## tinc

<https://www.tinc-vpn.org/>

## Manager

<https://github.com/fzinfz/ssmanager-nopanel>

## Panel

<https://hub.docker.com/r/fzinfz/ss-panel/>

## Docker

<https://hub.docker.com/r/fzinfz/ss/>

```
docker run -d -v /config.json:/etc/v2ray/config.json v2ray/official/  
docker run -dt mritd/v2ray -c "..encode with http://www.bejson.com/zhuanyi/ .."
```

## Cow - Auto detect blocked sites

<https://github.com/cyfdecyf/cow>

## Optimize

<https://github.com/iMeiji/shadowsocks\\_install/wiki/shadowsocks-optimize>

### BBR (Kernel 4.9+)

```
curl https://raw.githubusercontent.com/fzinfz/scripts/master/bbr_enable.sh | bash
```

### KCPTun

<https://github.com/xtaci/kcptun>

```
./server_linux_amd64 -t "127.0.0.1:8388" -l ":554" -mode fast2  // 转发到服务器的本地8388端口
./client_darwin_amd64 -r "服务器IP地址:554" -l ":8388" -mode fast2 
```

### dragonite-java

<https://github.com/dragonite-network/dragonite-java>

### UDPspeeder

<https://github.com/wangyu-/UDPspeeder>

## govpn

<http://www.cypherpunks.ru/govpn/>

## HTTP tunnel in Go: goflyway

<https://github.com/coyove/goflyway>

## LightSword

<https://github.com/UnsignedInt8/LightSword\\>
<https://medium.com/@UnsignedInt8>

## ShadowVPN

<https://github.com/OkamiSupport/How-to-build-your-own-private-network>

## gohop VPN - go

<https://github.com/bigeagle/gohop>

## GO Simple Tunnel

<https://github.com/ginuerzh/gost>

## goproxy for GAE

<https://github.com/phuslu/goproxy/blob/wiki/SimpleGuide.md>

## goproxy with msocks protocal

<https://github.com/shell909090/goproxy>

## tinyFecVPN

<https://github.com/wangyu-/tinyFecVPN>

## Clients

<https://www.v2ray.com/awesome/tools.html\\>
iOS free: OneClick、Leaf | <https://itlanyan.com/get-proxy-clients/#bnp\\_i\\_2>

### clash

<https://github.com/Dreamacro/clash\\>
Rules: <https://github.com/snapei/clash-pro-rules>

#### Premium

Download: <https://github.com/Dreamacro/clash/releases/tag/premium\\>
Guide：

* <https://github.com/Dreamacro/clash/wiki/Clash-Premium-Features>
* <https://docs.cfw.lbyczf.com/contents/tap.html>

#### Tap

.dll to clash folder: <https://www.wintun.net/>

#### Web UI

* TS: <https://github.com/Dreamacro/clash-dashboard>
  * forked: <https://github.com/haishanh/yacd/>
* TS + Rust: <https://github.com/zzzgydi/clash-verge>

git clone <https://github.com/zzzgydi/clash-verge.git>

### Gaming

#### netch

WireGuard/trojan/SS/X: <https://github.com/netchx/netch>

### sing-box

<https://sing-box.sagernet.org/features/>

### nekoray

<https://github.com/MatsuriDayo/nekoray>

```
SOCKS (4/4a/5) / HTTP(S) 
Shadowsocks / VMess / VLESS
Trojan
NaïveProxy ( Custom Core )
Hysteria ( Custom Core or sing-box )
```

## Management

### Web

* Xray/Trojan-Go/Hysteria/NaiveProxy: <https://github.com/trojanpanel/install-script>
* vmess、vless、trojan、shadowsocks、dokodemo-door、socks、http
  * <https://github.com/vaxilu/x-ui>
  * <https://hub.docker.com/r/enwaiax/x-ui>

### CLI

* mack-a: <https://raw.githubusercontent.com/mack-a/v2ray-agent/master/install.sh>

## Subscription

* convert/merge: <https://github.com/tindy2013/subconverter/blob/master/README-docker.md>

  docker run -d --restart=unless-stopped -p 25500:25500 tindy2013/subconverter:latest

<https://github.com/tindy2013/subconverter/blob/master/README-cn.md#%E8%BF%9B%E9%98%B6%E7%94%A8%E6%B3%95>

<http://192.168.1.25:25500/sub?target=clash\\&url=http%3A%2F%2F192.168.88.19%3A88%2Fxray.txt>

```
%3A : 
%2F /
```

## VPN

* Cloudflare WARP: <https://1.1.1.1/>
  * WARP+ | $4.99/month or less , +1GB per share
* Private Cloud: [/nw/VPN/](https://github.com/fzinfz/book/blob/master/nw/VPN/README.md)

## Host Apps

* Win | ssh : MobaXterm
* Linux :
  * env: <https://wiki.archlinux.org/title/Proxy\\_server>
  * [tsocks](https://github.com/fzinfz/book/blob/master/nw/proxy_socks/README.md#tsocks)
  * proxychains： `apt install -y proxychains && vi /etc/proxychains.conf`

## tsocks

* <https://linux.die.net/man/8/tsocks>
* <https://github.com/zouguangxian/tsocks>
* `SOCKS server ... is not on a local subnet!` => `vi /root/.tsocks.conf or /etc/tsocks.conf` - `local =`

  TSOCKS\_DEBUG: -1/no debug, 2/verbose TSOCKS\_DEBUG=2 LD\_PRELOAD=libtsocks.so curl -4 ip.gs


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://book.ferro.pro/nw/proxy.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
