Skip to content

Commit c50b41b

Browse files
committed
refine the gost-cloudflare section
1 parent 628fdf5 commit c50b41b

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

README.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@
1919
- [3. 搭建相关代理服务](#3-搭建相关代理服务)
2020
- [3.1 设置Docker服务](#31-设置docker服务)
2121
- [3.2 开启 TCP BBR 拥塞控制算法](#32-开启-tcp-bbr-拥塞控制算法)
22-
- [3.3.1 用 Gost 设置 HTTPS 服务](#331-用-gost-设置-https-服务)
23-
- [3.3.2用Gost设置Websocket Over Tls服务(支持CDN)](#332用gost设置websocket-over-tls服务支持cdn)
22+
- [3.3 用 Gost 设置 HTTPS 服务](#33-用-gost-设置-https-服务)
2423
- [3.4 设置 ShadowSocks 服务](#34-设置-shadowsocks-服务)
2524
- [3.5 设置L2TP/IPSec服务](#35-设置l2tpipsec服务)
2625
- [3.6 设置 PPTP 服务](#36-设置-pptp-服务)
@@ -173,7 +172,7 @@ BBR之后移植入Linux内核4.9版本,并且对于QUIC可用。
173172

174173
如果开启,请参看 《[开启TCP BBR拥塞控制算法](https://github.com/iMeiji/shadowsocks_install/wiki/开启-TCP-BBR-拥塞控制算法)
175174

176-
### 3.3.1 用 Gost 设置 HTTPS 服务
175+
### 3.3 用 Gost 设置 HTTPS 服务
177176

178177
[gost](https://github.com/ginuerzh/gost) 是一个非常强的代理服务,它可以设置成 HTTPS 代理,然后把你的服务伪装成一个Web服务器,**我感觉这比其它的流量伪装更好,也更隐蔽。这也是这里强烈推荐的一个方式**
179178

@@ -246,23 +245,24 @@ curl -v "https://www.google.com" --proxy "https://DOMAIN" --proxy-user 'USER:PAS
246245
0 0 1 * * /usr/bin/certbot renew --force-renewal
247246
5 0 1 * * /usr/bin/docker restart gost
248247
```
248+
这样,服务器就配置完成了。客户端请移动后面的客户端章节。
249249

250-
### 3.3.2用Gost设置Websocket Over Tls服务(支持CDN)
251-
252-
服务器端:
253-
```
254-
gost -L=mwss://username:password@:443?cert=/path/to/your/cert/file\&key=/path/to/your/key/file
255-
```
256-
257-
CloudFlare:将TLS/SSL设置为**完全**
258-
259-
客户端:
260-
```
261-
gost -L socks://:YourLocalPort -F mwss://username:[email protected]:443
262-
```
263-
然后在其他软件中设置socks5代理即可
250+
> **使用 Cloudflare 的注意事项**
251+
>
252+
> 上述的方法并不支持 Cloudflare CDN,如果你想使用了 Cloudflare CDN,你需要使用 WebSocket 协议,如下所示,你需要使用 `mwss` 协议。
253+
>
254+
> ```shell
255+
> gost -L=mwss://username:password@:443?cert=/path/to/your/cert/file\&key=/path/to/your/key/file
256+
> ```
257+
> 在 CloudFlare 上,请将TLS/SSL设置为 **完全**
258+
>
259+
> 如果你的客户端只能使用 socks 协议,你还要在客户端这边转一下:
260+
>
261+
>```shell
262+
>gost -L socks://:YourLocalPort -F mwss://username:[email protected]:443
263+
> ```
264+
> 然后在其他软件中设置socks5代理即可
264265
265-
这样,服务器就配置完成了。客户端请移动后面的客户端章节。
266266
267267
### 3.4 设置 ShadowSocks 服务
268268

0 commit comments

Comments
 (0)