|
@@ -1,2 +1,17 @@
|
|
|
-# SS/SSR 透明代理
|
|
|
|
|
|
|
+# SS/SSR 透明代理脚本
|
|
|
|
|
+## 脚本简介
|
|
|
|
|
+ss-tproxy 脚本运行于 Linux 系统,用于实现类似 Windows SS/SSR 客户端的代理功能。目前实现的模式有 global(全局代理模式)、gfwlist(黑名单模式)、chnroute(白名单模式,绕过大陆地址段),考虑到部分用户没有支持 UDP-Relay 的 SS/SSR 节点,所以代理模式又分为 tcp&udp 和 tcponly 两类。Linux 系统下实现透明代理有两种思路:一是利用 iptables 进行重定向(DNAT),二是利用 tun 虚拟网卡进行代理(路由);因此代理模式又分为 tproxy、tun2socks 两大类,所以一共存在 12 种代理模式(下文中的“本机”指运行 ss-tproxy 的主机):
|
|
|
|
|
+- `tproxy_global`:代理 TCP/UDP(本机 UDP 除外),iptables/global 模式
|
|
|
|
|
+- `tproxy_global_tcp`:仅代理 TCP(DNS 使用 TCP 方式查询),iptables/global 模式
|
|
|
|
|
+- `tproxy_gfwlist`:代理 TCP/UDP(本机 UDP 除外),iptables/gfwlist 模式
|
|
|
|
|
+- `tproxy_gfwlist_tcp`:仅代理 TCP(DNS 使用 TCP 方式查询),iptables/gfwlist 模式
|
|
|
|
|
+- `tproxy_chnroute`:代理 TCP/UDP(本机 UDP 除外),iptables/chnroute 模式
|
|
|
|
|
+- `tproxy_chnroute_tcp`:仅代理 TCP(DNS 使用 TCP 方式查询),iptables/chnroute 模式
|
|
|
|
|
+- `tun2socks_global`:代理 TCP/UDP(包括本机 UDP),route/global 模式
|
|
|
|
|
+- `tun2socks_global_tcp`:仅代理 TCP(DNS 使用 TCP 方式查询),route/global 模式
|
|
|
|
|
+- `tun2socks_gfwlist`:代理 TCP/UDP(包括本机 UDP),route/gfwlist 模式
|
|
|
|
|
+- `tun2socks_gfwlist_tcp`:仅代理 TCP(DNS 使用 TCP 方式查询),route/gfwlist 模式
|
|
|
|
|
+- `tun2socks_chnroute`:代理 TCP/UDP(包括本机 UDP),route/chnroute 模式
|
|
|
|
|
+- `tun2socks_chnroute_tcp`:仅代理 TCP(DNS 使用 TCP 方式查询),route/chnroute 模式
|
|
|
|
|
+
|
|
|
// TODO
|
|
// TODO
|