Skip to content

Commit d98456f

Browse files
committed
refine the doc
1 parent 8ebd42c commit d98456f

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

README.md

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252
- [9.4.1 WARP 模式](#941-warp-模式)
5353
- [9.4.2 代理模式](#942-代理模式)
5454
- [9.4.3 Docker 代理](#943-docker-代理)
55-
- [用 Docker 可以更方便地部署起一个 Cloudflare WARP Proxy,只需要一行命令:](#用-docker-可以更方便地部署起一个-cloudflare-warp-proxy只需要一行命令)
5655
- [10. 其它](#10-其它)
5756
- [10.1 其它方式](#101-其它方式)
5857
- [10.2 搭建脚本](#102-搭建脚本)
@@ -1116,7 +1115,7 @@ gost -L "http://:8080" -F "socks5://127.0.0.1:40000"
11161115
```
11171116
当然,上面的配置是不够好的,我们最好使用有证书的 HTTPS 代理。这里的内容参见于 前的面 [3.3 用 Gost 设置 HTTPS 服务](#33-用-gost-设置-https-服务)
11181117

1119-
为了使用两种不同的代理,Gost需要启动两个服务
1118+
为了使用两种不同的代理,你可以启动两个 gost 服务
11201119

11211120
- 一个是通过 443 端口直接代理
11221121
- 另一个是通过 8443 端口转发到 Cloudflare WARP 的 Socks5 代理上
@@ -1146,7 +1145,10 @@ sudo docker run -d --name gost-warp \
11461145
11471146
> **Note**
11481147
>
1149-
> 你也可以使用 V2Ray 的路由模式,参见 [V2Ray 的路由功能](https://www.v2ray.com/chapter_02/03_routing.html)。V2Ray的路由模式就比 gost 要强很多。你还可以通过使用预定义域名列表 `geolocation-cn` 把其的路由转发到 Cloudflare WARP 的 Socks5 代理上,以避免你的 VPS 的 IP 被暴露。
1148+
> 1) 你也可以使用 gost 的 `bypass`参数来让相应的域名的流量转发到 Cloudflare WARP 的 Socks5 代理上。如:`
1149+
-F=socks5://localhost:40000?bypass=~*.openai.com,openai.com&notls=true`
1150+
>
1151+
> 2) 你也可以使用 V2Ray 的路由模式,参见 [V2Ray 的路由功能](https://www.v2ray.com/chapter_02/03_routing.html)。V2Ray的路由模式就比 gost 要强很多。你还可以通过使用预定义域名列表 `geolocation-cn` 把其的路由转发到 Cloudflare WARP 的 Socks5 代理上,以避免你的 VPS 的 IP 被暴露。
11501152
11511153
**其它事宜**
11521154
@@ -1170,19 +1172,18 @@ LimitNOFILESoft=65535
11701172
```
11711173
然后,重启服务:
11721174
1173-
<<<<<<< HEAD
1174-
#### 9.4.3 Docker 代理
1175-
1176-
用 Docker 可以更方便地部署起一个 Cloudflare WARP Proxy,只需要一行命令:
1177-
=======
11781175
```shell
11791176
sudo systemctl daemon-reload
11801177
sudo systemctl restart warp-svc.service
11811178
```
1182-
>>>>>>> 71a4636 (refine the doc)
1179+
1180+
#### 9.4.3 Docker 代理
1181+
1182+
用 Docker 可以更方便地部署起一个 Cloudflare WARP Proxy,只需要一行命令:
11831183
11841184
```shell
1185-
docker run -v $HOME/.warp:/var/lib/cloudflare-warp:rw --restart=always --name=cloudflare-warp e7h4n/cloudflare-warp
1185+
docker run -v $HOME/.warp:/var/lib/cloudflare-warp:rw \
1186+
--restart=always --name=cloudflare-warp e7h4n/cloudflare-warp
11861187
```
11871188
11881189
这条命令会在容器上的 40001 开启一个 socks5 代理,接下来查看这个容器的 ip:
@@ -1205,9 +1206,9 @@ docker run --rm curlimages/curl --connect-timeout 2 -x "socks5://172.17.0.2:4000
12051206
-F=socks5://172.17.0.2:40001?bypass=~*.openai.com,openai.com&notls=true
12061207
```
12071208
1208-
`bypass=~` 的含义是,只有命中后面规则时才转发请求到 `172.17.0.2:40001` 这个 socks5 代理。
1209-
1210-
接下来,通过这个 Gost 代理访问 openai.com 时,就会走 warp 网络了。
1209+
> **Note**
1210+
>
1211+
> `bypass=~` 的含义是,只有命中后面规则时才转发请求到 `172.17.0.2:40001` 这个 socks5 代理。接下来,通过这个 Gost 代理访问 `openai.com` 时,就会走 warp 网络了。
12111212
12121213
## 10. 其它
12131214

0 commit comments

Comments
 (0)