diff --git a/404.html b/404.html index 06eef75..75656a9 100644 --- a/404.html +++ b/404.html @@ -32,7 +32,7 @@

Trojan-Go Docs

- Version 0.4.7 + Version 0.4.8

An unidentifiable mechanism that helps you bypass GFW.

diff --git a/advance/forward/index.html b/advance/forward/index.html index d1c4766..233e7e9 100644 --- a/advance/forward/index.html +++ b/advance/forward/index.html @@ -39,7 +39,7 @@

Trojan-Go Docs

- Version 0.4.7 + Version 0.4.8

An unidentifiable mechanism that helps you bypass GFW.

diff --git a/advance/index.html b/advance/index.html index 1d8776a..d7bf2ca 100644 --- a/advance/index.html +++ b/advance/index.html @@ -32,7 +32,7 @@

Trojan-Go Docs

- Version 0.4.7 + Version 0.4.8

An unidentifiable mechanism that helps you bypass GFW.

diff --git a/advance/mux/index.html b/advance/mux/index.html index 375bf58..7889526 100644 --- a/advance/mux/index.html +++ b/advance/mux/index.html @@ -30,7 +30,7 @@ - + @@ -39,7 +39,7 @@

Trojan-Go Docs

- Version 0.4.7 + Version 0.4.8

An unidentifiable mechanism that helps you bypass GFW.

@@ -56,9 +56,9 @@

注意,Trojan-GFW版本不支持这个特性

Trojan-Go支持使用多路复用提升并发性能。

Trojan协议基于TLS。在一个TLS安全连接建立之前,连接双方需要进行密钥协商和交换等步骤确保后续通讯的安全性。这个过程即为TLS握手。

-

目前GFW对于TLS握手有审查和干扰,同时由于出口网络拥塞的原因,普通的线路完成TLS握手通常需要将近一秒甚至更长的时间。这可能会使得浏览网页和观看视频的延迟提高。

-

Trojan-Go使用多路复用的方式解决这一问题。每个建立的TLS连接将承载多个TCP连接。当新的代理请求到来时,不需要和服务器握手发起一个新的TLS连接,而是尽可能重复使用已有的TLS连接。以此减少频繁TLS握手的带来的延迟。

-

启用多路复用功能不会增加你的链路速度(甚至会有所减少),而且可能会增加服务器和客户端的计算负担。但在高并发的情况下,如浏览含有大量图片的网页时,或者发送大量UDP请求时,可以提升使用体验。

+

目前GFW对于TLS握手有审查和干扰,同时由于出口网络拥塞的原因,普通的线路完成TLS握手通常需要将近一秒甚至更长的时间。这可能导致浏览网页和观看视频的延迟提高。

+

Trojan-Go使用多路复用的方式解决这一问题。每个建立的TLS连接将承载多个TCP连接。当新的代理请求到来时,不需要和服务器握手发起一个新的TLS连接,而是尽可能重复使用已有的TLS连接。以此减少频繁TLS握手和TCP握手的带来的延迟。

+

启用多路复用功能不会增加你的链路速度(甚至会有所减少),而且可能会增加服务器和客户端的计算负担。但在高并发的情景下,如浏览含有大量图片的网页时,或者发送大量UDP请求时,可以提升使用体验。

激活mux模块,只需要将mux选项中enabled字段设为true即可,下面是一个客户端的例子

{
     "run_type": "client",
@@ -80,8 +80,8 @@
     "concurrency": 8,
     "idle_timeout": 60
 }
-

concurrency是每个TLS连接最多可以承载的TCP连接数。这个数值越大,TLS连接被复用的比例就更高,握手导致的延迟越低,但服务器和客户端的计算负担也会越大,这有可能使你的网络吞吐量降低。如果你的线路的TLS握手极端缓慢,你可以将这个数值设置为-1,Trojan-Go将只进行一次TLS握手,只使用唯一的一条TLS连接进行传输。

-

idle_timeout指的是每个TLS连接空闲多长时间后关闭。设置超时时间,可能有助于减少不必要的长连接存活确认(Keep Alive)流量传输引发GFW的探测。你可以将这个数值设置为-1,TLS连接将不会因为长时间空闲而被关闭。

+

concurrency是每个TLS连接最多可以承载的TCP连接数。这个数值越大,每个TLS连接被复用的程度就更高,握手导致的延迟越低。但服务器和客户端的计算负担也会越大,这有可能使你的网络吞吐量降低。如果你的线路的TLS握手极端缓慢,你可以将这个数值设置为-1,Trojan-Go将只进行一次TLS握手,只使用唯一的一条TLS连接进行传输。

+

idle_timeout指的是每个TLS连接空闲多长时间后关闭。设置超时时间,可能有助于减少不必要的长连接存活确认(Keep Alive)流量传输引发GFW的探测。你可以将这个数值设置为-1,TLS连接在空闲时将被立即关闭。

这个客户端配置使Trojan-Go开启一个监听在本地1080端口的socks5/http代理(自动识别),远端服务器为your_awesome_server:443,your_awesome_server可以是IP或者域名。

-

如果你在remote_addr中填写的是域名,sni可以省略。sni字段应当填写你申请证书的对应域名,或者你自己签发证书时证书的Common Name,而且必须一致。注意,sni字段目前的在TLS协议中是规定明文传送的(目的是使服务器提供相应证书),所以不要填写类似google.com等已经被封锁的域名,否则很有可能导致你的服务器也被封锁。

-

fingerprint将设置Trojan-Go伪造Firefox浏览器的TLS请求指纹,使得Trojan-Go的流量混杂在正常的HTTPS流量中无法被识别。还可以设置为ioschrome等。

+

如果你在remote_addr中填写的是域名,sni可以省略。sni字段应当填写你申请证书的对应域名,或者你自己签发的证书的Common Name,而且必须一致。注意,sni字段目前的在TLS协议中是明文传送的(目的是使服务器提供相应证书)。GFW已经被证实具有SNI探测和阻断能力,所以不要填写类似google.com等已经被封锁的域名,否则很有可能导致你的服务器也被封锁。

+

fingerprint将设置Trojan-Go伪造Firefox浏览器的TLS请求指纹,使得Trojan-Go的流量混杂在正常的HTTPS流量中无法被识别。还可以设置为ioschrome,randomized等。

更多关于配置文件的信息,可以在左侧导航栏中找到相应介绍。

diff --git a/basic/fullconfig/index.html b/basic/fullconfig/index.html index 21dde2d..795939c 100644 --- a/basic/fullconfig/index.html +++ b/basic/fullconfig/index.html @@ -39,7 +39,7 @@

Trojan-Go Docs

- Version 0.4.7 + Version 0.4.8

An unidentifiable mechanism that helps you bypass GFW.

diff --git a/basic/index.html b/basic/index.html index dce1a22..4ebac17 100644 --- a/basic/index.html +++ b/basic/index.html @@ -32,7 +32,7 @@

Trojan-Go Docs

- Version 0.4.7 + Version 0.4.8

An unidentifiable mechanism that helps you bypass GFW.

diff --git a/basic/index.xml b/basic/index.xml index 8a99b06..67d0b03 100644 --- a/basic/index.xml +++ b/basic/index.xml @@ -25,7 +25,7 @@ Mon, 01 Jan 0001 00:00:00 +0000 https://p4gefau1t.github.io/trojan-go/basic/config/ - 下面将介绍如何正确配置Trojan-Go以完全隐藏你的代理节点特征 在开始之前,你需要 一个服务器,且未被GFW封锁 一个域名,可以使用免费的域名 + 下面将介绍如何正确配置Trojan-Go以完全隐藏你的代理节点特征。 在开始之前,你需要 一个服务器,且未被GFW封锁 一个域名,可以使用免费的域 diff --git a/basic/trojan/index.html b/basic/trojan/index.html index 7eca0ed..0a3c95d 100644 --- a/basic/trojan/index.html +++ b/basic/trojan/index.html @@ -39,7 +39,7 @@

Trojan-Go Docs

- Version 0.4.7 + Version 0.4.8

An unidentifiable mechanism that helps you bypass GFW.

diff --git a/categories/index.html b/categories/index.html index dce624f..0ea35b5 100644 --- a/categories/index.html +++ b/categories/index.html @@ -32,7 +32,7 @@

Trojan-Go Docs

- Version 0.4.7 + Version 0.4.8

An unidentifiable mechanism that helps you bypass GFW.

diff --git a/developer/api/index.html b/developer/api/index.html index 76e302d..3e8ea47 100644 --- a/developer/api/index.html +++ b/developer/api/index.html @@ -39,7 +39,7 @@

Trojan-Go Docs

- Version 0.4.7 + Version 0.4.8

An unidentifiable mechanism that helps you bypass GFW.

diff --git a/developer/build/index.html b/developer/build/index.html index a16f7e4..c56e5eb 100644 --- a/developer/build/index.html +++ b/developer/build/index.html @@ -30,7 +30,7 @@ - + @@ -39,7 +39,7 @@

Trojan-Go Docs

- Version 0.4.7 + Version 0.4.8

An unidentifiable mechanism that helps you bypass GFW.

@@ -63,7 +63,7 @@ GOOS=linux GOARCH

你可以使用build-all.sh进行批量的多个平台的交叉编译,release版本使用了这个脚本进行构建。

Trojan-Go的大多数模块是可插拔的。在build文件夹下可以找到各个模块的导入声明。如果你不需要其中某些功能,或者需要缩小可执行文件的体积,可以使用构建标签(tags)进行模块的自定义,例如

go build -tags "full" #编译所有模块
-go build -tags "client" #只有客户端功能
+go build -tags "client" -ldflags="-s -w" #只有客户端功能,且去除符号表缩小体积
 go build -tags "server auth_mysql" #只有服务端和mysql支持
 go build -tags "client router" #只有客户端和路由模块
 

使用full标签等价于

diff --git a/developer/index.html b/developer/index.html index a72f29d..4522a5f 100644 --- a/developer/index.html +++ b/developer/index.html @@ -32,7 +32,7 @@

Trojan-Go Docs

- Version 0.4.7 + Version 0.4.8

An unidentifiable mechanism that helps you bypass GFW.

diff --git a/developer/mux/index.html b/developer/mux/index.html index e48d0f6..f2d7322 100644 --- a/developer/mux/index.html +++ b/developer/mux/index.html @@ -39,7 +39,7 @@

Trojan-Go Docs

- Version 0.4.7 + Version 0.4.8

An unidentifiable mechanism that helps you bypass GFW.

diff --git a/developer/overview/index.html b/developer/overview/index.html index ecd2f92..2078bed 100644 --- a/developer/overview/index.html +++ b/developer/overview/index.html @@ -39,7 +39,7 @@

Trojan-Go Docs

- Version 0.4.7 + Version 0.4.8

An unidentifiable mechanism that helps you bypass GFW.

diff --git a/developer/simplesocks/index.html b/developer/simplesocks/index.html index 1259cd4..1c41119 100644 --- a/developer/simplesocks/index.html +++ b/developer/simplesocks/index.html @@ -39,7 +39,7 @@

Trojan-Go Docs

- Version 0.4.7 + Version 0.4.8

An unidentifiable mechanism that helps you bypass GFW.

diff --git a/developer/trojan/index.html b/developer/trojan/index.html index 4c8b24c..a76b9e1 100644 --- a/developer/trojan/index.html +++ b/developer/trojan/index.html @@ -39,7 +39,7 @@

Trojan-Go Docs

- Version 0.4.7 + Version 0.4.8

An unidentifiable mechanism that helps you bypass GFW.

diff --git a/developer/websocket/index.html b/developer/websocket/index.html index 72d8dbc..f831612 100644 --- a/developer/websocket/index.html +++ b/developer/websocket/index.html @@ -30,7 +30,7 @@ - + @@ -39,7 +39,7 @@

Trojan-Go Docs

- Version 0.4.7 + Version 0.4.8

An unidentifiable mechanism that helps you bypass GFW.

@@ -88,11 +88,11 @@ SimpleSocks -如果使用mux +如果开启多路复用 smux -如果使用mux +如果开启多路复用 Trojan diff --git a/index.html b/index.html index 8c60513..ac4b0e0 100644 --- a/index.html +++ b/index.html @@ -32,7 +32,7 @@

Trojan-Go Docs

- Version 0.4.7 + Version 0.4.8

An unidentifiable mechanism that helps you bypass GFW.

@@ -97,10 +97,10 @@

Websocket,用于支持CDN流量中转(基于WebSocket over TLS/SSL)和对抗GFW中间人攻击

  • -

    自动化HTTPS证书申请,使用ACME协议从Let’s Encrypt自动申请和更新HTTPS证书

    +

    自动化证书申请,使用ACME协议从Let’s Encrypt自动申请和更新HTTPS证书

  • -

    基于grpc的API支持,支持动态用户管理和流量速度限制

    +

    基于gRPC的API支持,支持动态用户管理和流量速度限制

  • 如果你遇到配置方面的问题,或是遇到了软件Bug,或是有更好的想法,欢迎加入Telegram交流反馈群

    diff --git a/index.xml b/index.xml index 77494e2..0370b0e 100644 --- a/index.xml +++ b/index.xml @@ -106,7 +106,7 @@ Mon, 01 Jan 0001 00:00:00 +0000 https://p4gefau1t.github.io/trojan-go/basic/config/ - 下面将介绍如何正确配置Trojan-Go以完全隐藏你的代理节点特征 在开始之前,你需要 一个服务器,且未被GFW封锁 一个域名,可以使用免费的域名 + 下面将介绍如何正确配置Trojan-Go以完全隐藏你的代理节点特征。 在开始之前,你需要 一个服务器,且未被GFW封锁 一个域名,可以使用免费的域 diff --git a/tags/index.html b/tags/index.html index 6386816..bda67f0 100644 --- a/tags/index.html +++ b/tags/index.html @@ -32,7 +32,7 @@

    Trojan-Go Docs

    - Version 0.4.7 + Version 0.4.8

    An unidentifiable mechanism that helps you bypass GFW.