From 428f1646b072e3ac5e6347f3fda1989ab19098b0 Mon Sep 17 00:00:00 2001 From: dnomd343 Date: Thu, 27 May 2021 21:21:10 +0800 Subject: [PATCH] update: docs of routing, default segment --- README.md | 29 +++++++++++++---------------- load.sh | 5 +++++ 2 files changed, 18 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index 64252bd..1f5ce8d 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # TProxy -基于Docker的旁路由透明代理工具,借助Xray处理TProxy流量,实现拥有独立IP与MAC地址的虚拟化代理网关。 +容器化的旁路由透明代理工具,使用Xray处理TProxy流量,实现拥有独立IP与MAC地址的虚拟化代理网关,支持 `amd64`、`i386`、`arm64`、`armv7` 四种CPU架构,可代理任意TCP与UDP流量。 -TProxy当前支持 `amd64`、`i386`、`arm64`、`armv7` 四种CPU架构,可代理任意TCP与UDP流量。 +TProxy使用Docker容器化部署,在[Docker Hub](https://hub.docker.com/repository/docker/dnomd343/tproxy)可获取已构建的镜像。 ## 部署 @@ -89,10 +89,18 @@ shell> docker ps -a "routing": { "domainStrategy": "AsIs", "rules": [ + { + "type": "field", + "inboundTag": [ + "proxy" + ], + "outboundTag": "node" + }, { "type": "field", "ip": [ - "0.0.0.0/0" + "0.0.0.0/0", + "::/0" ], "outboundTag": "node" } @@ -101,26 +109,15 @@ shell> docker ps -a } ``` -`segment` 文件夹下默认存储 `ipv4` 与 `ipv6` 两个文件,其中存储不代理的网段信息 +`segment` 文件夹下默认存储 `ipv4` 与 `ipv6` 两个文件,其中存储不代理的网段信息,建议绕过内网地址、本地回环地址、链路本地地址、组播地址等网段 ``` # IPv4与IPv6均默认绕过组播地址 shell> cat /etc/scutweb/segment/ipv4 -224.0.0.0/3 -shell> cat /etc/scutweb/segment/ipv6 -FF00::/8 -``` - -建议绕过内网地址、本地回环地址、链路本地地址、组播地址等网段 - -``` -# IPv4 127.0.0.0/8 169.254.0.0/16 -192.168.2.0/24 224.0.0.0/3 - -# IPv6 +shell> cat /etc/scutweb/segment/ipv6 ::1/128 FC00::/7 FE80::/10 diff --git a/load.sh b/load.sh index 6d8385c..a45bb75 100755 --- a/load.sh +++ b/load.sh @@ -136,12 +136,17 @@ EOF load_ipv4(){ cat>$XRAY_DIR/expose/segment/ipv4<$XRAY_DIR/expose/segment/ipv6<