This commit is contained in:
p4gefau1t
2020-09-06 05:38:46 +00:00
parent 10b30f4867
commit 684e6ca64c
6 changed files with 18 additions and 10 deletions
+7 -1
View File
@@ -30,7 +30,7 @@
<meta itemprop="name" content="自定义协议栈">
<meta itemprop="description" content="注意,Trojan不支持这个特性 Trojan-Go允许高级用户自定义协议栈。在自定义模式下,Trojan-Go将放弃对协议栈的控制,允许用户">
<meta itemprop="wordCount" content="1279">
<meta itemprop="wordCount" content="1291">
<meta itemprop="image" content="https://p4gefau1t.github.io/trojan-go/images/og-image.png"/>
@@ -314,6 +314,8 @@
- <span style="color:#66d9ef">protocol</span>: tls
<span style="color:#66d9ef">tag</span>: tls
<span style="color:#66d9ef">config</span>:
<span style="color:#66d9ef">remote-addr</span>: <span style="color:#ae81ff">127.0.0.1</span>
<span style="color:#66d9ef">remote-port</span>: <span style="color:#ae81ff">80</span>
<span style="color:#66d9ef">ssl</span>:
<span style="color:#66d9ef">sni</span>: localhost
<span style="color:#66d9ef">key</span>: server.key
@@ -322,12 +324,16 @@
- <span style="color:#66d9ef">protocol</span>: trojan
<span style="color:#66d9ef">tag</span>: trojan1
<span style="color:#66d9ef">config</span>:
<span style="color:#66d9ef">remote-addr</span>: <span style="color:#ae81ff">127.0.0.1</span>
<span style="color:#66d9ef">remote-port</span>: <span style="color:#ae81ff">80</span>
<span style="color:#66d9ef">password</span>:
- <span style="color:#ae81ff">12345678</span>
- <span style="color:#66d9ef">protocol</span>: trojan
<span style="color:#66d9ef">tag</span>: trojan2
<span style="color:#66d9ef">config</span>:
<span style="color:#66d9ef">remote-addr</span>: <span style="color:#ae81ff">127.0.0.1</span>
<span style="color:#66d9ef">remote-port</span>: <span style="color:#ae81ff">80</span>
<span style="color:#66d9ef">password</span>:
- <span style="color:#ae81ff">87654321</span>
+4 -2
View File
@@ -30,7 +30,7 @@
<meta itemprop="name" content="国内直连和广告屏蔽">
<meta itemprop="description" content="注意,Trojan不支持这个特性 Trojan-Go内建的路由模块可以帮助你实现国内直连,即客户端对于国内网站不经过代理,直接连接。 路由模块在">
<meta itemprop="wordCount" content="663">
<meta itemprop="wordCount" content="853">
<meta itemprop="image" content="https://p4gefau1t.github.io/trojan-go/images/og-image.png"/>
@@ -87,7 +87,9 @@
}
}
</code></pre></div><p>这个配置文件激活了router模块,使用的是白名单的模式,当匹配到中国大陆或者局域网的IP/域名时,直接连接。如果是广告运营商的域名,则直接断开连接。</p>
<p>所需要的数据库geoip.datgeosite.dat已经包含在release的压缩包中,直接使用即可。它们来自v2ray的<a href="https://github.com/v2ray/domain-list-community">domain-list-community</a><a href="https://github.com/v2ray/geoip">geoip</a>你可以使用如<code>geosite:cn</code><code>geosite:bilibili</code>的形式来指定某一类域名,使用如<code>geoip:cn</code><code>geoip:private</code>的形式来指定某一类IP。所有可用的tag可以在<a href="https://github.com/v2ray/domain-list-community">domain-list-community</a>仓库中找到。</p>
<p>所需要的数据库<code>geoip.dat</code><code>geosite.dat</code>已经包含在release的压缩包中,直接使用即可。它们来自V2Ray的<a href="https://github.com/v2fly/domain-list-community">domain-list-community</a><a href="https://github.com/v2fly/geoip">geoip</a></p>
<p>你可以使用如<code>geosite:cn</code><code>geosite:geolocation-!cn</code><code>geosite:category-ads-all</code><code>geosite:bilibili</code>的形式来指定某一类域名,所有可用的tag可以在<a href="https://github.com/v2fly/domain-list-community">domain-list-community</a>仓库的<a href="https://github.com/v2fly/domain-list-community/tree/master/data"><code>data</code></a>目录中找到。<code>geosite.dat</code> 更详细使用说明,参考<a href="https://www.v2fly.org/config/routing.html#%E9%A2%84%E5%AE%9A%E4%B9%89%E5%9F%9F%E5%90%8D%E5%88%97%E8%A1%A8">V2Ray/Routing路由#预定义域名列表</a></p>
<p>你可以使用如<code>geoip:cn</code><code>geoip:hk</code><code>geoip:us</code><code>geoip:private</code>的形式来指定某一类IP。<code>geoip:private</code>为特殊项,囊括了内网IP和保留IP,其余类别囊括了各个国家/地区的IP地址段。各国家/地区的代号参考<a href="https://zh.wikipedia.org/wiki/%E5%9C%8B%E5%AE%B6%E5%9C%B0%E5%8D%80%E4%BB%A3%E7%A2%BC">维基百科</a></p>
<p>你也可以配置自己的路由规则。例如,想要屏蔽所有example.com域名以及其子域名,以及192.168.1.0/24,添加下面的规则。</p>
<div class="highlight"><pre style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-json" data-lang="json"><span style="color:#e6db74">&#34;block&#34;</span><span style="color:#960050;background-color:#1e0010">:</span> [
<span style="color:#e6db74">&#34;domain:example.com&#34;</span>,
+1 -1
View File
@@ -138,7 +138,7 @@
<span style="color:#f92672">&#34;enabled&#34;</span>: <span style="color:#66d9ef">false</span>,
<span style="color:#f92672">&#34;type&#34;</span>: <span style="color:#e6db74">&#34;&#34;</span>,
<span style="color:#f92672">&#34;command&#34;</span>: <span style="color:#e6db74">&#34;&#34;</span>,
<span style="color:#f92672">&#34;plugin_option&#34;</span>: <span style="color:#e6db74">&#34;&#34;</span>,
<span style="color:#f92672">&#34;option&#34;</span>: <span style="color:#e6db74">&#34;&#34;</span>,
<span style="color:#f92672">&#34;arg&#34;</span>: [],
<span style="color:#f92672">&#34;env&#34;</span>: []
},
+1 -1
View File
@@ -88,7 +88,7 @@
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>https://p4gefau1t.github.io/trojan-go/developer/url/</guid>
<description>Changelog encrpytion 格式修改为 ss;method:password 概述 感谢 @DuckSoft @StudentMain @phlinhng 对 Trojan-Go URL 方案的讨论和贡献。目前 URL 方案为草案,需要更多的实践和讨论。 Trojan-Go客户端可以接受URL,以定位</description>
<description>Changelog encryption 格式修改为 ss;method:password 概述 感谢 @DuckSoft @StudentMain @phlinhng 对 Trojan-Go URL 方案的讨论和贡献。目前 URL 方案为草案,需要更多的实践和讨论。 Trojan-Go客户端可以接受URL,以定位</description>
</item>
</channel>
+4 -4
View File
@@ -17,7 +17,7 @@
:root {}
</style>
<meta property="og:title" content="URL方案(草案)" />
<meta property="og:description" content="Changelog encrpytion 格式修改为 ss;method:password 概述 感谢 @DuckSoft @StudentMain @phlinhng 对 Trojan-Go URL 方案的讨论和贡献。目前 URL 方案为草案,需要更多的实践和讨论。 Trojan-Go客户端可以接受URL,以定位" />
<meta property="og:description" content="Changelog encryption 格式修改为 ss;method:password 概述 感谢 @DuckSoft @StudentMain @phlinhng 对 Trojan-Go URL 方案的讨论和贡献。目前 URL 方案为草案,需要更多的实践和讨论。 Trojan-Go客户端可以接受URL,以定位" />
<meta property="og:type" content="article" />
<meta property="og:url" content="https://p4gefau1t.github.io/trojan-go/developer/url/" />
<meta property="og:image" content="https://p4gefau1t.github.io/trojan-go/images/og-image.png"/>
@@ -26,9 +26,9 @@
<meta name="twitter:image" content="https://p4gefau1t.github.io/trojan-go/images/og-image.png"/>
<meta name="twitter:title" content="URL方案(草案)"/>
<meta name="twitter:description" content="Changelog encrpytion 格式修改为 ss;method:password 概述 感谢 @DuckSoft @StudentMain @phlinhng 对 Trojan-Go URL 方案的讨论和贡献。目前 URL 方案为草案,需要更多的实践和讨论。 Trojan-Go客户端可以接受URL,以定位"/>
<meta name="twitter:description" content="Changelog encryption 格式修改为 ss;method:password 概述 感谢 @DuckSoft @StudentMain @phlinhng 对 Trojan-Go URL 方案的讨论和贡献。目前 URL 方案为草案,需要更多的实践和讨论。 Trojan-Go客户端可以接受URL,以定位"/>
<meta itemprop="name" content="URL方案(草案)">
<meta itemprop="description" content="Changelog encrpytion 格式修改为 ss;method:password 概述 感谢 @DuckSoft @StudentMain @phlinhng 对 Trojan-Go URL 方案的讨论和贡献。目前 URL 方案为草案,需要更多的实践和讨论。 Trojan-Go客户端可以接受URL,以定位">
<meta itemprop="description" content="Changelog encryption 格式修改为 ss;method:password 概述 感谢 @DuckSoft @StudentMain @phlinhng 对 Trojan-Go URL 方案的讨论和贡献。目前 URL 方案为草案,需要更多的实践和讨论。 Trojan-Go客户端可以接受URL,以定位">
<meta itemprop="wordCount" content="1278">
<meta itemprop="image" content="https://p4gefau1t.github.io/trojan-go/images/og-image.png"/>
@@ -53,7 +53,7 @@
<main><h1>URL方案(草案)</h1>
<h2 id="changelog">Changelog</h2>
<ul>
<li>encrpytion 格式修改为 ss;method:password</li>
<li>encryption 格式修改为 ss;method:password</li>
</ul>
<h2 id="概述">概述</h2>
<p>感谢 @DuckSoft @StudentMain @phlinhng 对 Trojan-Go URL 方案的讨论和贡献。<strong>目前 URL 方案为草案,需要更多的实践和讨论。</strong></p>
+1 -1
View File
@@ -205,7 +205,7 @@
<pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
<guid>https://p4gefau1t.github.io/trojan-go/developer/url/</guid>
<description>Changelog encrpytion 格式修改为 ss;method:password 概述 感谢 @DuckSoft @StudentMain @phlinhng 对 Trojan-Go URL 方案的讨论和贡献。目前 URL 方案为草案,需要更多的实践和讨论。 Trojan-Go客户端可以接受URL,以定位</description>
<description>Changelog encryption 格式修改为 ss;method:password 概述 感谢 @DuckSoft @StudentMain @phlinhng 对 Trojan-Go URL 方案的讨论和贡献。目前 URL 方案为草案,需要更多的实践和讨论。 Trojan-Go客户端可以接受URL,以定位</description>
</item>
</channel>