代理
协议
Note
- 建 议基于 overlay 组件内部 proxy,更安全,更好跨网。
- 对外暴露甚至选择
protocol | transport | UDP | Note |
---|---|---|---|
socks4 | tcp | ❌ | |
socks5 | tcp | ✅ | |
http | http | ❌ | |
https | |||
ss/ShadowSocks | tcp,ws,quic,http | ✅ | |
ssr/ShadowSocksR | ✅ | ||
vmess | tcp,ws,http,h2,grpc | ✅ | V2Ray |
vless | |||
snell | tcp | ❌ | surge |
trojan | h2,http,grpc,ws | ✅ | |
tuic | quic | ||
hysteria | quic | ||
hysteria2 | http3, 0rtt udp | ||
wireguard | 用户空间实现可作为代理 | ||
juicity | quic |
- juicity
- AGPLv3, Golang
- TUIC
- vmess
- v2ray
- 支持非常复杂的协议配置
- 有点过于复杂和臃肿
- [vless]
- trojan
- WS+TLS
- 伪装 tls
- snell
- hysteria
- v1 和 v2 不兼容
- brook wss
- obfs - 混淆 - 用于 ss,ssr,hysteria
- tls1.2_ticket_auth, tls1.2_ticket_fastauth
- http_simple, http_post
- http proxy
- socks proxy
- ss - ShadowSocks
- ssr - ShadowSocksR
- 不活跃,不推荐使用
- CCProxy, Proxycap, Proxifier
- Tunnel
- ginuerzh/gost
- kcp
- XX-net/XX-Net
- snail007/goproxy
- GPL-3.0, Go
- frp
- rapiz1/rathole
- Apache-2.0, Rust
- 类似 frp,但 rust 实现
curl https://1.1.1.1/cdn-cgi/trace
universal
Note universal
- 入站和出站都支持多种协议
- SagerNet/sing-box
- GPL, Golang
- universal proxy platform
- ginuerzh/gost
- MIT, Golang
- GO Simple Tunnel
- 多端口
- 支持代理 HTTP/HTTPS/HTTP2/SOCKS4(A)/SOCKS5
- UDP over TCP
- TCP/UDP 透明代理/转发
- 支持 Shadowsocks(TCP/UDP)
- 支持 SNI 代理
- TUN/TAP
- 权限控制
- 负载均衡
- 路由控制
- DNS 解析和代理
- nadoo/glider
- 类似 gost,但支持更多协议
- 只有 Listener 和 Forwarder
- mix - http+socks5
- http
- socks5
- ss
- trojan
- trojanc - cleartext
- vless
- vmess
- Forward/TCP - ssr, ssh. socks4, socks4a
- tcp, udp - tunnel
- tls, kcp, unic, vsock, smux, ws, wss, PROXY Protocol, simple obfs
- redir, redir6, TProxy
- reject
- 类似 gost,但支持更多协议
client
Note Client
- 强调规则
- 支持较多出站协议 - outbound
- 至少支持 socks 或 http 入站 - 最常用本地代理
- 支持更多的接入逻辑 - 透明代理、tun、ebpf
- 支持多路复用
- 支持负载均衡
- GUI
- 2dust/clashN
- Windows
- 2dust/clashN
- 服务/Servic/Socks/HTTP Proxy
- MetaCubeX/mihomo
- GPLv3, Go
- Clash.Meta -> mihomo
- 支持出站传输协议 VLESS Reality, Vision, Trojan XTLS, Hysteria, TUIC, ShadowTLS
- 规则支持 GEOSITE
- 支持 TUN
- zzzgydi/clash-verge
- GPLv3, Rust+Typescript
- 基于 tauri 的桌面应用
clash- rule based
- MetaCubeX/mihomo
- Transparent
- mezantrop/ts-warp
- BSD-2, C
- daeuniverse/dae
- AGPLv3, Go
- Linux >= 5.8
- eBPF
- /sys/fs/bpf
- Linux high-performance transparent proxy solution based on eBPF
- https://github.com/daeuniverse/dae/blob/main/docs/en/proxy-protocols.md
- mezantrop/ts-warp
- 命令行/CLI
- anderspitman/awesome-tunneling
- https://github.com/hunshcn/gh-proxy
- heiher/hev-socks5-tproxy
- sower-proxy/sower
iOS Client
- SingBox https://apps.apple.com/us/app/sing-box/id6451272673
- Surge 5 https://nssurge.com/buy_now
- $50
- Stash - Rule Based Proxy
- $4
- 支持 Clash, hysteria
- App Store https://apps.apple.com/app/stash/id1596063349
- Test Flight https://testflight.apple.com/join/elwvzipQ
- https://t.me/RnNc2RaV8x0wMzQ0
- https://t.me/stashnetworks
- Clash for iOS
- Proxyman
server
Note Server
- 强调协议
- 支持较多入站协议
- v2ray
- HyNetwork/hysteria
- MIT, Go
- XTLS/Xray-core
- MPLv2, Go
- XTLS/REALITY
配置
- xmdhs/clash2singbox
- Clash.Mate -> SingBox
- Web 版 xmdhs/clash2sfa
- https://github.com/Toperlock/sing-box-subscribe
- https://github.com/izumiChan16/clash_ini2sing-box
- https://clash2sfa-xmdhs.koyeb.app
- https://github.com/chika0801/sing-box-examples
- https://subconverters.com/
Sniff/Introspection
- Charles - 商业
- macOS
- Proxyman - 商业
- macOS
- mitmproxy
- lqqyt2423/go-mitmproxy
- MIT, Golang
- AdguardTeam/gomitmproxy
- GPL-3.0, Golang
- lqqyt2423/go-mitmproxy
- Wireshark
- tshark
- tcpdump
- ngrep
- requestly/requestly
HTTP 代理
- CONNECT 会用于建立 TCP 通道
- 通常是用于 https
- 非 https 的时候会直接发起 GET 这样的请求
- Path 不会参与代理协议
# 会发起 GET 请求
curl -x http://127.0.0.1:8080 icanhazip.com -v
# 相同
curl -x http://127.0.0.1:8080 https://icanhazip.com -v
curl -x http://127.0.0.1:8080/proxy https://icanhazip.com -v
# http2
# ==========
# HTTP Upgrade
curl -v --http2 http://localhost:8000
# GET / HTTP/2
curl -v --http2-prior-knowledge http://localhost:8000
库
- eycorsican/leaf
- Apachev2, Rust
- Koolson/Qure
- Quantumult X Policy Icon Set
- crossutility/Quantumult-X/
Golang
- p4gefau1t/trojan-go
- mingcheng/socks5lb
- httputil.ReverseProxy
- google/huproxy
- Server/Client 结构
- 与 HTTP 并存
- 支持 Path
- 利用 Connection-Upgrade 升级为其他协议
- google/inverting-proxy
- Reverse proxy that inverts the direction of traffic
- google/martian
- library for building custom HTTP/S proxies
- antoniomika/sish
- HTTP(S)/WS(S)/TCP Tunnels to localhost using only SSH.
- xtaci/smux
- TCP, KCP
- Simple MUltipleXing
- hashicorp/yamux
- MPLv2, Go
- connection multiplexing
- jamescun/switcher - ssh http same port
- inetaf/tcpproxy
- TCP over HTTP
- 支持静态规则 - Host 头、SNI
- akutz/memconn
- MemConn: an in-memory network stack for Go
- 可用于测试或虚拟内部代理网络
- dshulyak/uring
- pojntfx/weron
- AGPLv3, Golang
- Overlay networks based on WebRTC
其他语言
- yrutschle/sslh - Applicative Protocol Multiplexer
- C
- HTTP, TLS/SSL (including SNI and ALPN), SSH, OpenVPN, tinc, XMPP, SOCKS5
- joeferner/node-http-mitm-proxy
- NodeJS
GFW
- ValdikSS/GoodbyeDPI
- SadeghHayeri/GreenTunnel
- comwrg/FUCK-GFW
- https://github.com/haoel/haoel.github.io
线路
- CN1 - 163 骨干网 - 带宽容量大,价格便宜
- as4134
202.97.*
- CN2 - 带宽容量较小,费用高
- as4809
59.43.*
- CN2 GT - Global Transit
- 出口单独线路,入口使用 163
- CN2 GIA
- 独立的回国线路
- HK > CN2 GIA > CN2 GT
域名
- 常见需要代理域名
- quora.com
- medium.com
- 可直接访问
- gstatic.com
- 需要速度快 - 体验好
- google.com
- github.com
- 大流量 - 带宽为主
- www.googleapis.com
- Google 的云盘、对象存储
- googlevideo.com
- Youtube
- svc.ms
- OneDrive 下载
- anonfiles.com
- codeload.github.com
https://codeload.github.com/<org>/<repo>/tar.gz/refs/tags/<tag>
- objects.githubusercontent.com
- Github Release
- googleusercontent.com
- www.googleapis.com
- google
- goog
- google.com
- googleusercontent.com
- gstatic.com
- ggpht.com
- google maps
- profile
- https://developers.google.com/maps/gmp-domains
- TG - AS62041 - https://core.telegram.org/resources/cidr.txt - https://ipinfo.io/AS62041
- 91.108.56.0/22
- 91.108.56.150
- 91.108.56.0/22
- nintendo
- app.lp1.five.nintendo.net
- atum.hac.lp1.d4c.nintendo.net - 主要下载 CDN
- https://www.ping.cn/dns/atum.hac.lp1.d4c.nintendo.net
- 23.56.180.81
- 23.2.16.27
- app-a03.lp1.npns.srv.nintendo.net
- http://ctest.cdn.nintendo.net.akamaized.net
- 网络检测
- broker.lp1.npns.srv.nintendo.net
- bcat-list-lp1.cdn.nintendo.net
- https://github.com/buggerman/SwitchBlockerForPiHole
- receive-lp1.er.srv.nintendo.net
- 可以 blcok
- Error Reporting
- 香港 DNS:
- 208.67.222.222
- 208.67.220.220
Domains
- min-api.cryptocompare.com
- webpkgcache.com
- gas-api.metaswap.codefi.network
- amdc.alipay.com
- HTTP DNS
curl -X POST amdc.alipay.com/squery
- https://github.com/cxw620/AdGuard-Rules/issues/3
ADGuard
114.114.114.114
114.114.115.115
223.5.5.5
223.6.6.6
[/facebook.com/github.com/github.io/goog/google/google.com/hbo.com/imdb.com/instagram.com/jp/medium.com/mega.nz/netflix.com/nordvpn.com/pornhub.com/quora.com/rarbg.to/rarbgprx.org/reddit.com/slack.com/spotify.com/t.co/telegram.org/thepiratebay.org/twitter.com/uk/whatsapp.com/wikileaks.org/wikipedia.org/wikiquote.org/wsj.com/xvideos.com/youtube.com/okx.com/okpool.top/]https://dns.cloudflare.com/dns-query
[/nintendo.net/nintendo.com/]208.67.222.222
Rules
- https://github.com/Loyalsoldier/v2ray-rules-dat
- https://github.com/Loyalsoldier/clash-rules
- https://github.com/Loyalsoldier/surge-rules
- https://github.com/Loyalsoldier/geoip
- https://github.com/DustinWin/clash-geosite
- https://github.com/MetaCubeX/meta-rules-dat
- felixonmars/dnsmasq-china-list
Game Rules
游戏主要以 IP 为判断标准,且大多需要 UDP 协议,传统代理试用 域名 作为判断标准
- Roblex AS22697
- https://bgp.he.net/AS22697#_prefixes
- https://en.help.roblox.com/hc/en-us/articles/203312880-General-Connection-Problems
- UDP 49152 - 65535
- TCP: 3074
- UDP: 88, 500, 3074, 3544, 4500
- Nintendo
t-00000000-lp1.lp1.t.npln.srv.nintendo.net
baas.nintendo.net
- 参考
Limits
- https://platform.openai.com/docs/supported-countries
- Netflix HK 只能看自有,不能看授权内容
- tv.apple.com