<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Trojan 归档 - 外贸网站建设-Mac163</title>
	<atom:link href="https://mac163.com/post-series/trojan/feed/" rel="self" type="application/rss+xml" />
	<link>https://mac163.com/post-series/trojan/</link>
	<description></description>
	<lastBuildDate>Thu, 08 Dec 2022 16:21:08 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.1</generator>

<image>
	<url>https://mac163.com/wp-content/uploads/2020/08/Mac163.png</url>
	<title>Trojan 归档 - 外贸网站建设-Mac163</title>
	<link>https://mac163.com/post-series/trojan/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>trojan-qt5代理上网工具客户端介绍</title>
		<link>https://mac163.com/4764/</link>
		
		<dc:creator><![CDATA[mac163]]></dc:creator>
		<pubDate>Sat, 17 Sep 2022 14:25:12 +0000</pubDate>
				<category><![CDATA[Linux运维]]></category>
		<category><![CDATA[Linux教程]]></category>
		<guid isPermaLink="false">https://mac163.com/?p=4764</guid>

					<description><![CDATA[trojan是近两年兴起的网络工具，其将通信流量伪装成互联网上最常见的https流量，从而能有效防止流量被检测&#8230;]]></description>
										<content:encoded><![CDATA[<p><strong>trojan</strong>是近两年兴起的网络工具，其将通信流量伪装成互联网上最常见的https流量，从而能有效防止流量被检测和干扰。与v2ray相比，trojan功能更专注、从而更加轻量级，性能更好。</p>
<p>可能还会有网友不清楚 Trojan 是什么，在这里再次的简单给大家啰嗦几句，Trojan 是一款可以自由上网的新兴起的网络工具，相比前面的几种 Trojan 可以把我们上网的流量通过技术手段伪装成为常见的 HTTPS 流量，以便躲过被检测到以及被强行干扰，从而让我们更有效安全的进行网络的访问。</p>
<p>首先大家要知道的是我们如果需要实现科学上网的目标，需要配合一台国外服务器（也就是本站推送的各种国外VPS服务器），并且在服务器上搭建好服务端，也就是平常说的节点，还没有节点的朋友可以参考本站前面的Trojan服务端搭建教程：<a title="Linux系统下手动搭建及配置Trojan服务器教程" href="https://shop.mac163.com/17157/" target="_blank" rel="nofollow noopener">Trojan节点服务器搭建</a>，有需要搭建好的Trojan隧道加密节点可以私我，免除自建出现各种问题的烦恼！</p>
<p>1、接着我们需要下载Trojan-Qt5客户端，支持Windows/Linux/MacOS系统，这里主要介绍Windows版本：</p>
<p>Trojan-Qt5项目官方版本下载地址：<a href="https://github.com/Trojan-Qt5/Trojan-Qt5/releases" target="_blank" rel="nofollow noopener">https://github.com/Trojan-Qt5/Trojan-Qt5/releases</a>（涉及某些不可描述原因，作者已删除封存该项目，请自行查找其它版本客户端）</p>
<p>2、以我们的Windows客户端为例</p>
<figure class="aligncenter size-large">
<figure id="attachment_18190" class="wp-caption aligncenter" aria-describedby="caption-attachment-18190"><figcaption id="caption-attachment-18190" class="wp-caption-text">
<figure id="attachment_4765" aria-describedby="caption-attachment-4765" style="width: 1792px" class="wp-caption aligncenter"><a href="https://mac163.com/wp-content/uploads/2022/09/7c69045.png"><img fetchpriority="high" decoding="async" class="size-full wp-image-4765" src="https://mac163.com/wp-content/uploads/2022/09/7c69045.png" alt="Trojan Qt5 Windows客户端安装" width="1792" height="776" srcset="https://mac163.com/wp-content/uploads/2022/09/7c69045.png 1792w, https://mac163.com/wp-content/uploads/2022/09/7c69045-300x130.png 300w, https://mac163.com/wp-content/uploads/2022/09/7c69045-1024x443.png 1024w, https://mac163.com/wp-content/uploads/2022/09/7c69045-768x333.png 768w, https://mac163.com/wp-content/uploads/2022/09/7c69045-1536x665.png 1536w" sizes="(max-width: 1792px) 100vw, 1792px" /></a><figcaption id="caption-attachment-4765" class="wp-caption-text">Trojan Qt5 Windows客户端安装</figcaption></figure>
</figcaption></figure>
</figure>
<p>下载后解压文件，双击客户端运行：</p>
<figure id="attachment_18191" class="wp-caption aligncenter" aria-describedby="caption-attachment-18191"><figcaption id="caption-attachment-18191" class="wp-caption-text">
<figure id="attachment_4766" aria-describedby="caption-attachment-4766" style="width: 601px" class="wp-caption aligncenter"><a href="https://mac163.com/wp-content/uploads/2022/09/d93a67.jpeg"><img decoding="async" class="size-full wp-image-4766" src="https://mac163.com/wp-content/uploads/2022/09/d93a67.jpeg" alt="Trojan Qt5 Windows客户端下载" width="601" height="398" srcset="https://mac163.com/wp-content/uploads/2022/09/d93a67.jpeg 601w, https://mac163.com/wp-content/uploads/2022/09/d93a67-300x199.jpeg 300w" sizes="(max-width: 601px) 100vw, 601px" /></a><figcaption id="caption-attachment-4766" class="wp-caption-text">Trojan Qt5 Windows客户端下载</figcaption></figure>
</figcaption></figure>
<p>3、打开后显示如下：连接的方式可以选择手动添加，也可以选择链接导入，这个自己怎么方便怎么来，一般服务端可以生成Trojan链接，没有的话就手动添加；</p>
<figure id="attachment_18192" class="wp-caption aligncenter" aria-describedby="caption-attachment-18192">
<figure id="attachment_4767" aria-describedby="caption-attachment-4767" style="width: 1000px" class="wp-caption aligncenter"><a href="https://mac163.com/wp-content/uploads/2022/09/08bc771.jpeg"><img decoding="async" class="wp-image-4767 size-full" src="https://mac163.com/wp-content/uploads/2022/09/08bc771.jpeg" alt="Trojan Qt5节点导入说明" width="1000" height="750" srcset="https://mac163.com/wp-content/uploads/2022/09/08bc771.jpeg 1000w, https://mac163.com/wp-content/uploads/2022/09/08bc771-300x225.jpeg 300w, https://mac163.com/wp-content/uploads/2022/09/08bc771-768x576.jpeg 768w" sizes="(max-width: 1000px) 100vw, 1000px" /></a><figcaption id="caption-attachment-4767" class="wp-caption-text">Trojan Qt5节点导入说明</figcaption></figure></figure>
<p>4、点击界面连接，节点状态会变成“Conneted”，这时候说明已经可以愉快的进行访问国际互联网了，同时在桌面右下角的Trojan图标会变亮，没有连接就是灰色的；</p>
<figure class="aligncenter size-large">
<figure id="attachment_18193" class="wp-caption aligncenter" aria-describedby="caption-attachment-18193"><figcaption id="caption-attachment-18193" class="wp-caption-text">
<figure id="attachment_4768" aria-describedby="caption-attachment-4768" style="width: 1646px" class="wp-caption aligncenter"><a href="https://mac163.com/wp-content/uploads/2022/09/451f667.png"><img loading="lazy" decoding="async" class="size-full wp-image-4768" src="https://mac163.com/wp-content/uploads/2022/09/451f667.png" alt="Trojan Qt5使用教程" width="1646" height="1118" srcset="https://mac163.com/wp-content/uploads/2022/09/451f667.png 1646w, https://mac163.com/wp-content/uploads/2022/09/451f667-300x204.png 300w, https://mac163.com/wp-content/uploads/2022/09/451f667-1024x696.png 1024w, https://mac163.com/wp-content/uploads/2022/09/451f667-768x522.png 768w, https://mac163.com/wp-content/uploads/2022/09/451f667-1536x1043.png 1536w" sizes="auto, (max-width: 1646px) 100vw, 1646px" /></a><figcaption id="caption-attachment-4768" class="wp-caption-text">Trojan Qt5使用教程</figcaption></figure>
</figcaption></figure>
</figure>
<p>5.关于Mac版本安装，首先下载我们Mac系统版本</p>
<figure id="attachment_18194" class="wp-caption aligncenter" aria-describedby="caption-attachment-18194"><figcaption id="caption-attachment-18194" class="wp-caption-text">
<figure id="attachment_4769" aria-describedby="caption-attachment-4769" style="width: 1762px" class="wp-caption aligncenter"><a href="https://mac163.com/wp-content/uploads/2022/09/f7f2288.png"><img loading="lazy" decoding="async" class="size-full wp-image-4769" src="https://mac163.com/wp-content/uploads/2022/09/f7f2288.png" alt="Trojan Qt5 Mac版本安装" width="1762" height="490" srcset="https://mac163.com/wp-content/uploads/2022/09/f7f2288.png 1762w, https://mac163.com/wp-content/uploads/2022/09/f7f2288-300x83.png 300w, https://mac163.com/wp-content/uploads/2022/09/f7f2288-1024x285.png 1024w, https://mac163.com/wp-content/uploads/2022/09/f7f2288-768x214.png 768w, https://mac163.com/wp-content/uploads/2022/09/f7f2288-1536x427.png 1536w" sizes="auto, (max-width: 1762px) 100vw, 1762px" /></a><figcaption id="caption-attachment-4769" class="wp-caption-text">Trojan Qt5 Mac版本安装</figcaption></figure>
</figcaption></figure>
<p>随后打开dmg安装文件，将里面的Trojan-qt5拖动到应用程序即可：</p>
<figure id="attachment_18195" class="wp-caption aligncenter" aria-describedby="caption-attachment-18195"><figcaption id="caption-attachment-18195" class="wp-caption-text">
<figure id="attachment_4770" aria-describedby="caption-attachment-4770" style="width: 1950px" class="wp-caption aligncenter"><a href="https://mac163.com/wp-content/uploads/2022/09/705cd40.png"><img loading="lazy" decoding="async" class="size-full wp-image-4770" src="https://mac163.com/wp-content/uploads/2022/09/705cd40.png" alt="Trojan Qt5 Mac安装教程" width="1950" height="860" srcset="https://mac163.com/wp-content/uploads/2022/09/705cd40.png 1950w, https://mac163.com/wp-content/uploads/2022/09/705cd40-300x132.png 300w, https://mac163.com/wp-content/uploads/2022/09/705cd40-1024x452.png 1024w, https://mac163.com/wp-content/uploads/2022/09/705cd40-768x339.png 768w, https://mac163.com/wp-content/uploads/2022/09/705cd40-1536x677.png 1536w" sizes="auto, (max-width: 1950px) 100vw, 1950px" /></a><figcaption id="caption-attachment-4770" class="wp-caption-text">Trojan Qt5 Mac安装教程</figcaption></figure>
</figcaption>应用程序最直接的打开方法就是通过Finder打开！</figure>
<p>最后，Trojan-Qt5项目还在不断完善，更多功能等待大家自己发掘，比如Trojan的模式、trojan隧道、订阅和代理TG等等。</p>
<p><a class="color-button blue" title="Trojan代理上网节点服务器介绍专门为Trojan-qt5打造" href="https://mac163.com/4817/" target="_blank" rel="noopener">节点服务器自助购买</a></p>
<p><span style="color: #ff6600; font-size: 16px;"><strong>软件相关下载地址下面付费购买(注：在我们处购买节点服务器免费赠送下面软件)</strong></span></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Trojan代理上网节点服务器介绍专门为Trojan-qt5打造</title>
		<link>https://mac163.com/4817/</link>
		
		<dc:creator><![CDATA[mac163]]></dc:creator>
		<pubDate>Mon, 19 Sep 2022 13:19:45 +0000</pubDate>
				<category><![CDATA[Linux运维]]></category>
		<category><![CDATA[Linux教程]]></category>
		<guid isPermaLink="false">https://mac163.com/?p=4853</guid>

					<description><![CDATA[Trojan基本原理 这个页面将会简单讲述Trojan协议的基本工作原理。如果你对于GFW和Trojan的工作&#8230;]]></description>
										<content:encoded><![CDATA[<figure id="attachment_4855" aria-describedby="caption-attachment-4855" style="width: 615px" class="wp-caption aligncenter"><a href="https://mac163.com/wp-content/uploads/2022/09/347b754.png"><img loading="lazy" decoding="async" class="size-full wp-image-4855" src="https://mac163.com/wp-content/uploads/2022/09/347b754.png" alt="Trojan代理上网节点服务器介绍专门为trojan Qt5打造" width="615" height="271" srcset="https://mac163.com/wp-content/uploads/2022/09/347b754.png 615w, https://mac163.com/wp-content/uploads/2022/09/347b754-300x132.png 300w" sizes="auto, (max-width: 615px) 100vw, 615px" /></a><figcaption id="caption-attachment-4855" class="wp-caption-text">Trojan代理上网节点服务器介绍专门为trojan Qt5打造</figcaption></figure>
<h3>Trojan基本原理</h3>
<p>这个页面将会简单讲述Trojan协议的基本工作原理。如果你对于GFW和Trojan的工作方式不感兴趣，可以跳过这一小节。但为了更好地保护你的通讯安全性和节点的隐蔽性，我还是建议你阅读。</p>
<p>与其他代理上网工具相反，Trojan不使用自定义的加密协议来隐藏自身。相反，使用特征明显的TLS协议(TLS/SSL)，使得流量看起来与正常的HTTPS网站相同。TLS是一个成熟的加密体系，HTTPS即使用TLS承载HTTP流量。使用<strong>正确配置</strong>的加密TLS隧道，可以保证传输的</p>
<ul>
<li>保密性（GFW无法得知传输的内容）</li>
<li>完整性（一旦GFW试图篡改传输的密文，通讯双方都会发现）</li>
<li>不可抵赖（GFW无法伪造身份冒充服务端或者客户端）</li>
<li>前向安全（即使密钥泄露，GFW也无法解密先前的加密流量）</li>
</ul>
<p>对于被动检测，Trojan协议的流量与HTTPS流量的特征和行为完全一致。而HTTPS流量占据了目前互联网流量的一半以上，且TLS握手成功后流量均为密文，几乎不存在可行方法从其中分辨出Trojan协议流量。</p>
<p>对于主动检测，当防火墙主动连接Trojan服务器进行检测时，Trojan可以正确识别非Trojan协议的流量。与其他代理上网工具不同的是，此时Trojan不会断开连接，而是将这个连接代理到一个正常的Web服务器。在GFW看来，该服务器的行为和一个普通的HTTPS网站行为完全相同，无法判断是否是一个Trojan代理节点。这也是Trojan推荐使用合法的域名、使用权威CA签名的HTTPS证书的原因: 这让你的服务器完全无法被GFW使用主动检测判定是一个Trojan服务器。</p>
<p>因此，就目前的情况来看，若要识别并阻断Trojan的连接，只能使用无差别封锁（封锁某个IP段，某一类证书，某一类域名，甚至阻断全国所有出境HTTPS连接）或发动大规模的中间人攻击（劫持所有TLS流量并劫持证书，审查内容）。对于中间人攻击，可以使用Websocket的双重TLS应对，高级配置中有详细讲解。</p>
<p><span style="font-size: 16px; color: #ff6600;">下面为Trojan节点服务器年付购买，包含Trojan所有客户端下载！</span></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Trojan节点订阅以及服务器端一键搭建教程</title>
		<link>https://mac163.com/5066/</link>
		
		<dc:creator><![CDATA[mac163]]></dc:creator>
		<pubDate>Sat, 01 Oct 2022 15:56:43 +0000</pubDate>
				<category><![CDATA[Linux运维]]></category>
		<category><![CDATA[Linux教程]]></category>
		<guid isPermaLink="false">https://mac163.com/?p=5066</guid>

					<description><![CDATA[什么是 Trojan Trojan 是一个比较新的翻墙软件，它模仿了互联网上最常见的HTTPS协议，以诱骗 G&#8230;]]></description>
										<content:encoded><![CDATA[<h3>什么是 Trojan</h3>
<p>Trojan 是一个比较新的翻墙软件，它模仿了互联网上最常见的HTTPS协议，以诱骗 GFW 认为它就是 HTTPS，从而不被识别。所谓魔高一尺道高一丈，墙在不断往上砌，那工具也得跟着变了。</p>
<figure id="attachment_5067" aria-describedby="caption-attachment-5067" style="width: 1920px" class="wp-caption aligncenter"><a href="https://mac163.com/wp-content/uploads/2022/10/Trojan-sch.png"><img loading="lazy" decoding="async" class="size-full wp-image-5067" src="https://mac163.com/wp-content/uploads/2022/10/Trojan-sch.png" alt="Trojan Sch" width="1920" height="972" srcset="https://mac163.com/wp-content/uploads/2022/10/Trojan-sch.png 1920w, https://mac163.com/wp-content/uploads/2022/10/Trojan-sch-300x152.png 300w, https://mac163.com/wp-content/uploads/2022/10/Trojan-sch-1024x518.png 1024w, https://mac163.com/wp-content/uploads/2022/10/Trojan-sch-768x389.png 768w, https://mac163.com/wp-content/uploads/2022/10/Trojan-sch-1536x778.png 1536w" sizes="auto, (max-width: 1920px) 100vw, 1920px" /></a><figcaption id="caption-attachment-5067" class="wp-caption-text">Trojan Sch</figcaption></figure>
<p>Trojan 工作在 443 端口，并且处理来自外界的 HTTPS 请求，如果是合法的 Trojan 请求，那么为该请求提供服务，否则将该流量转交给 WEB 服务器 Nginx，由 Nginx 为其提供服务。基于这个工作过程可以知道，Trojan 的一切表现均与 Nginx 一致，不会引入额外特征，从而达到无法识别的效果。当然，为了防止恶意探测，我们需要将 80 端口的流量全部重定向到 443 端口，并且服务器只暴露 80 和 443 端口，这样可以使得服务器与常见的 WEB 服务器表现一致。<br />
<strong>项目地址：</strong> <a href="https://github.com/trojan-gfw" target="_blank" rel="noopener nofollow">https://github.com/trojan-gfw</a></p>
<h2>搭建前准备</h2>
<h3>域名申请</h3>
<p>目前免费顶级域名我知道的只有 <a href="http://www.freenom.com/zh/index.html" target="_blank" rel="noopener nofollow">http://www.freenom.com/zh/index.html</a> 可申请。另外，在一些域名商家也可购买几块钱一年的，我看阿里云现在有 6 元一年的，一年一换也不费事。</p>
<h3>VPS 购买</h3>
<p>还是建议 <a href="http://VULTR.COM" target="_blank" rel="noopener nofollow">VULTR.COM</a>，主要是因为在同价位 VPS 中比较稳定，IP 虽然日本经常有被墙的，但可以随时换啊，无论是换地区还是换 IP。论小时计费，如果用 IPV6 的话最低 $2.5/月，IPV4 的最低有美区 $3.5/月，我觉得还是比较合适的。</p>
<h3>DNS 解析</h3>
<p>免费解析网站有很多，首先域名申请机构一般都会解析，如腾讯云，阿里云，godaddy 等，还有：</p>
<ul>
<li>cloudflare.com</li>
<li>dns.he.net</li>
<li>dnsever.com<br />
<strong>将域名解析设置到购买的 VPS 对应 IP，并确认已成功。使用 cloudflare 的记得将 DNS only 灰掉。</strong></p>
<figure id="attachment_5068" aria-describedby="caption-attachment-5068" style="width: 1062px" class="wp-caption aligncenter"><a href="https://mac163.com/wp-content/uploads/2022/10/DNS.png"><img loading="lazy" decoding="async" class="size-full wp-image-5068" src="https://mac163.com/wp-content/uploads/2022/10/DNS.png" alt="Dns" width="1062" height="797" srcset="https://mac163.com/wp-content/uploads/2022/10/DNS.png 1062w, https://mac163.com/wp-content/uploads/2022/10/DNS-300x225.png 300w, https://mac163.com/wp-content/uploads/2022/10/DNS-1024x768.png 1024w, https://mac163.com/wp-content/uploads/2022/10/DNS-768x576.png 768w" sizes="auto, (max-width: 1062px) 100vw, 1062px" /></a><figcaption id="caption-attachment-5068" class="wp-caption-text">Dns</figcaption></figure></li>
</ul>
<h3>一键安装 Trojan</h3>
<p>系统建议：</p>
<ul>
<li>Debian 9，10（推荐）</li>
<li>Ubuntu 14，16，18</li>
<li>CentOS 7，8</li>
</ul>
<h3>安装依赖包</h3>
<p>安装依赖包(Debian/Ubuntu)：</p>
<pre>apt-get update &amp;&amp; apt-get install sudo whiptail curl locales -y &amp;&amp; sudo -i</pre>
<p>安装依赖包(Centos):</p>
<pre>yum update -y &amp;&amp; yum install sudo newt curl -y &amp;&amp; sudo -i</pre>
<h3>一键安装脚本</h3>
<p>感谢 <strong>johnrosen1</strong> 提供的一键脚本：<a href="https://github.com/johnrosen1/trojan-gfw-script" target="_blank" rel="noopener nofollow">https://github.com/johnrosen1/trojan-gfw-script</a></p>
<pre>sudo bash -c "$(curl -fsSL https://raw.githubusercontent.com/johnrosen1/trojan-gfw-script/master/vps.sh)"</pre>
<p><strong>注：</strong><br />
开发者更新后删除了 v2ray 等，我 fork 后回退了一下版本，想安装多个应用的用这个吧：</p>
<pre>sudo bash -c "$(curl -fsSL https://raw.githubusercontent.com/harry3633/trojan-gfw-script/master/trojangui.sh)"</pre>
<ol>
<li>方向键选择，回车确定安装。提示 VPS 打开 80,443 端口，一般服务器都是开的吧，我还没碰到过没打开这两端口的。
<figure id="attachment_5069" aria-describedby="caption-attachment-5069" style="width: 653px" class="wp-caption aligncenter"><a href="https://mac163.com/wp-content/uploads/2022/10/Trojan1.png"><img loading="lazy" decoding="async" class="size-full wp-image-5069" src="https://mac163.com/wp-content/uploads/2022/10/Trojan1.png" alt="Trojan1" width="653" height="272" srcset="https://mac163.com/wp-content/uploads/2022/10/Trojan1.png 653w, https://mac163.com/wp-content/uploads/2022/10/Trojan1-300x125.png 300w" sizes="auto, (max-width: 653px) 100vw, 653px" /></a><figcaption id="caption-attachment-5069" class="wp-caption-text">Trojan1</figcaption></figure></li>
<li>可安装项目有很多，我是把下载相关的都取消了，没这方面需求。
<figure id="attachment_5070" aria-describedby="caption-attachment-5070" style="width: 727px" class="wp-caption aligncenter"><a href="https://mac163.com/wp-content/uploads/2022/10/Trojan2.png"><img loading="lazy" decoding="async" class="size-full wp-image-5070" src="https://mac163.com/wp-content/uploads/2022/10/Trojan2.png" alt="Trojan2" width="727" height="404" srcset="https://mac163.com/wp-content/uploads/2022/10/Trojan2.png 727w, https://mac163.com/wp-content/uploads/2022/10/Trojan2-300x167.png 300w" sizes="auto, (max-width: 727px) 100vw, 727px" /></a><figcaption id="caption-attachment-5070" class="wp-caption-text">Trojan2</figcaption></figure>
<figure id="attachment_5071" aria-describedby="caption-attachment-5071" style="width: 719px" class="wp-caption aligncenter"><a href="https://mac163.com/wp-content/uploads/2022/10/Trojan3.png"><img loading="lazy" decoding="async" class="size-full wp-image-5071" src="https://mac163.com/wp-content/uploads/2022/10/Trojan3.png" alt="Trojan3" width="719" height="406" srcset="https://mac163.com/wp-content/uploads/2022/10/Trojan3.png 719w, https://mac163.com/wp-content/uploads/2022/10/Trojan3-300x169.png 300w" sizes="auto, (max-width: 719px) 100vw, 719px" /></a><figcaption id="caption-attachment-5071" class="wp-caption-text">Trojan3</figcaption></figure></li>
<li>输入已经解析成功的域名。
<figure id="attachment_5072" aria-describedby="caption-attachment-5072" style="width: 626px" class="wp-caption aligncenter"><a href="https://mac163.com/wp-content/uploads/2022/10/Trojan4.png"><img loading="lazy" decoding="async" class="size-full wp-image-5072" src="https://mac163.com/wp-content/uploads/2022/10/Trojan4.png" alt="Trojan4" width="626" height="131" srcset="https://mac163.com/wp-content/uploads/2022/10/Trojan4.png 626w, https://mac163.com/wp-content/uploads/2022/10/Trojan4-300x63.png 300w" sizes="auto, (max-width: 626px) 100vw, 626px" /></a><figcaption id="caption-attachment-5072" class="wp-caption-text">Trojan4</figcaption></figure></li>
<li>输入用户密码阵列两个，可输不同的密码，一样也可以。
<figure id="attachment_5073" aria-describedby="caption-attachment-5073" style="width: 638px" class="wp-caption aligncenter"><a href="https://mac163.com/wp-content/uploads/2022/10/Trojan5.png"><img loading="lazy" decoding="async" class="size-full wp-image-5073" src="https://mac163.com/wp-content/uploads/2022/10/Trojan5.png" alt="Trojan5" width="638" height="147" srcset="https://mac163.com/wp-content/uploads/2022/10/Trojan5.png 638w, https://mac163.com/wp-content/uploads/2022/10/Trojan5-300x69.png 300w" sizes="auto, (max-width: 638px) 100vw, 638px" /></a><figcaption id="caption-attachment-5073" class="wp-caption-text">Trojan5</figcaption></figure>
<figure id="attachment_5074" aria-describedby="caption-attachment-5074" style="width: 628px" class="wp-caption aligncenter"><a href="https://mac163.com/wp-content/uploads/2022/10/Trojan6.png"><img loading="lazy" decoding="async" class="size-full wp-image-5074" src="https://mac163.com/wp-content/uploads/2022/10/Trojan6.png" alt="Trojan6" width="628" height="131" srcset="https://mac163.com/wp-content/uploads/2022/10/Trojan6.png 628w, https://mac163.com/wp-content/uploads/2022/10/Trojan6-300x63.png 300w" sizes="auto, (max-width: 628px) 100vw, 628px" /></a><figcaption id="caption-attachment-5074" class="wp-caption-text">Trojan6</figcaption></figure></li>
<li>输入访问 natdata 访问路径，随便填。
<figure id="attachment_5075" aria-describedby="caption-attachment-5075" style="width: 617px" class="wp-caption aligncenter"><a href="https://mac163.com/wp-content/uploads/2022/10/Trojan7.png"><img loading="lazy" decoding="async" class="size-full wp-image-5075" src="https://mac163.com/wp-content/uploads/2022/10/Trojan7.png" alt="Trojan7" width="617" height="123" srcset="https://mac163.com/wp-content/uploads/2022/10/Trojan7.png 617w, https://mac163.com/wp-content/uploads/2022/10/Trojan7-300x60.png 300w" sizes="auto, (max-width: 617px) 100vw, 617px" /></a><figcaption id="caption-attachment-5075" class="wp-caption-text">Trojan7</figcaption></figure></li>
<li>是否使用 API ，支持 cloudflare，aliyun，dnspod 等几家，当然也可以选否，不用去输入 key，更简单。
<figure id="attachment_5076" aria-describedby="caption-attachment-5076" style="width: 625px" class="wp-caption aligncenter"><a href="https://mac163.com/wp-content/uploads/2022/10/Trojan8.png"><img loading="lazy" decoding="async" class="size-full wp-image-5076" src="https://mac163.com/wp-content/uploads/2022/10/Trojan8.png" alt="Trojan8" width="625" height="134" srcset="https://mac163.com/wp-content/uploads/2022/10/Trojan8.png 625w, https://mac163.com/wp-content/uploads/2022/10/Trojan8-300x64.png 300w" sizes="auto, (max-width: 625px) 100vw, 625px" /></a><figcaption id="caption-attachment-5076" class="wp-caption-text">Trojan8</figcaption></figure>
<figure id="attachment_5077" aria-describedby="caption-attachment-5077" style="width: 622px" class="wp-caption aligncenter"><a href="https://mac163.com/wp-content/uploads/2022/10/Trojan9.png"><img loading="lazy" decoding="async" class="size-full wp-image-5077" src="https://mac163.com/wp-content/uploads/2022/10/Trojan9.png" alt="Trojan9" width="622" height="250" srcset="https://mac163.com/wp-content/uploads/2022/10/Trojan9.png 622w, https://mac163.com/wp-content/uploads/2022/10/Trojan9-300x121.png 300w" sizes="auto, (max-width: 622px) 100vw, 622px" /></a><figcaption id="caption-attachment-5077" class="wp-caption-text">Trojan9</figcaption></figure>
<p>如果是 cloudflare，在 My Profile 里选择 Global API Key：</p>
<figure id="attachment_5078" aria-describedby="caption-attachment-5078" style="width: 1128px" class="wp-caption aligncenter"><a href="https://mac163.com/wp-content/uploads/2022/10/API-key.png"><img loading="lazy" decoding="async" class="size-full wp-image-5078" src="https://mac163.com/wp-content/uploads/2022/10/API-key.png" alt="Api Key" width="1128" height="658" srcset="https://mac163.com/wp-content/uploads/2022/10/API-key.png 1128w, https://mac163.com/wp-content/uploads/2022/10/API-key-300x175.png 300w, https://mac163.com/wp-content/uploads/2022/10/API-key-1024x597.png 1024w, https://mac163.com/wp-content/uploads/2022/10/API-key-768x448.png 768w" sizes="auto, (max-width: 1128px) 100vw, 1128px" /></a><figcaption id="caption-attachment-5078" class="wp-caption-text">Api Key</figcaption></figure></li>
<li>回车开始自动安装，等一袋烟的功夫出结果。
<figure id="attachment_5079" aria-describedby="caption-attachment-5079" style="width: 960px" class="wp-caption aligncenter"><a href="https://mac163.com/wp-content/uploads/2022/10/Trojan10.png"><img loading="lazy" decoding="async" class="size-full wp-image-5079" src="https://mac163.com/wp-content/uploads/2022/10/Trojan10.png" alt="Trojan10" width="960" height="516" srcset="https://mac163.com/wp-content/uploads/2022/10/Trojan10.png 960w, https://mac163.com/wp-content/uploads/2022/10/Trojan10-300x161.png 300w, https://mac163.com/wp-content/uploads/2022/10/Trojan10-768x413.png 768w" sizes="auto, (max-width: 960px) 100vw, 960px" /></a><figcaption id="caption-attachment-5079" class="wp-caption-text">Trojan10</figcaption></figure>
<figure id="attachment_5080" aria-describedby="caption-attachment-5080" style="width: 955px" class="wp-caption aligncenter"><a href="https://mac163.com/wp-content/uploads/2022/10/Trojan11.png"><img loading="lazy" decoding="async" class="size-full wp-image-5080" src="https://mac163.com/wp-content/uploads/2022/10/Trojan11.png" alt="Trojan11" width="955" height="512" srcset="https://mac163.com/wp-content/uploads/2022/10/Trojan11.png 955w, https://mac163.com/wp-content/uploads/2022/10/Trojan11-300x161.png 300w, https://mac163.com/wp-content/uploads/2022/10/Trojan11-768x412.png 768w" sizes="auto, (max-width: 955px) 100vw, 955px" /></a><figcaption id="caption-attachment-5080" class="wp-caption-text">Trojan11</figcaption></figure></li>
<li>访问域名会出现一个网站
<figure id="attachment_5081" aria-describedby="caption-attachment-5081" style="width: 1604px" class="wp-caption aligncenter"><a href="https://mac163.com/wp-content/uploads/2022/10/Trojan12.png"><img loading="lazy" decoding="async" class="size-full wp-image-5081" src="https://mac163.com/wp-content/uploads/2022/10/Trojan12.png" alt="Trojan12" width="1604" height="460" srcset="https://mac163.com/wp-content/uploads/2022/10/Trojan12.png 1604w, https://mac163.com/wp-content/uploads/2022/10/Trojan12-300x86.png 300w, https://mac163.com/wp-content/uploads/2022/10/Trojan12-1024x294.png 1024w, https://mac163.com/wp-content/uploads/2022/10/Trojan12-768x220.png 768w, https://mac163.com/wp-content/uploads/2022/10/Trojan12-1536x440.png 1536w" sizes="auto, (max-width: 1604px) 100vw, 1604px" /></a><figcaption id="caption-attachment-5081" class="wp-caption-text">Trojan12</figcaption></figure></li>
</ol>
<p>注：更多请看 Github 详情。如域名已有证书，请放置于 <code>/etc/trojan/trojan.crt</code> 处，脚本会自动跳过域名解析验证，申请证书以及 acme.sh 安装</p>
<h2>客户端及配置</h2>
<h3>Windows，Linux，MacOS</h3>
<p>开发者有发布三大系统客户端：<br />
<a href="https://github.com/trojan-gfw/trojan/releases" target="_blank" rel="noopener nofollow">https://github.com/trojan-gfw/trojan/releases</a><br />
只说下 Windows 下使用，下载解压缩，如果启动 trojan.exe 报错，说明系统没有 C++ 运行环境，需要安装 VC++ 运行环境，压缩包里已经有了：VC_redist.x64.exe。<br />
修改配置文件 config.json，很简单，就下面两个地方，本地端口默认 1080，可选修改：</p>
<pre><code>{
"run_type": "client",
"local_addr": "127.0.0.1",
"local_port": 1080,
"remote_addr": "example.com #改为解析的域名",
"remote_port": 443,
"password": [
"password1 #改为服务器端安装时设置的第一密码"
],
"log_level": 1,
"ssl": {
"verify": true,
"verify_hostname": true,
"cert": "",
"cipher": "ECDHE-ECDSA-AES128-GCM-SHA256:ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-CHACHA20-POLY1305:ECDHE-RSA-CHACHA20-POLY1305:ECDHE-ECDSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-GCM-SHA384:ECDHE-ECDSA-AES256-SHA:ECDHE-ECDSA-AES128-SHA:ECDHE-RSA-AES128-SHA:ECDHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA:AES128-SHA:AES256-SHA:DES-CBC3-SHA",
"cipher_tls13": "TLS_AES_128_GCM_SHA256:TLS_CHACHA20_POLY1305_SHA256:TLS_AES_256_GCM_SHA384",
"sni": "",
"alpn": [
"h2",
"http/1.1"
],
"reuse_session": true,
"session_ticket": false,
"curves": ""
},
"tcp": {
"no_delay": true,
"keep_alive": true,
"reuse_port": false,
"fast_open": false,
"fast_open_qlen": 20
}
}</code></pre>
<p>目前 Trojan 客户端没有全局代理而且仅支持 socks5，因此得配合 Chrome 的 SwitchOmeaga 插件或者用<a title="trojan-qt5代理上网工具客户端介绍" href="https://mac163.com/4764/" target="_blank" rel="noopener">Trojan-qt5</a>客户端把 socks5 转换成 http 使用。</p>
<ol>
<li>如果使用 Chrome 浏览器，可在 SwitchOmeaga 新增情景模式，代理协议填入 SOCKS5，代理伺服器填 127.0.0.1，端口填 1080 或者配置已经修改的端口。
<figure id="attachment_5082" aria-describedby="caption-attachment-5082" style="width: 842px" class="wp-caption aligncenter"><a href="https://mac163.com/wp-content/uploads/2022/10/SwitchyOmega.png"><img loading="lazy" decoding="async" class="size-full wp-image-5082" src="https://mac163.com/wp-content/uploads/2022/10/SwitchyOmega.png" alt="Switchyomega" width="842" height="274" srcset="https://mac163.com/wp-content/uploads/2022/10/SwitchyOmega.png 842w, https://mac163.com/wp-content/uploads/2022/10/SwitchyOmega-300x98.png 300w, https://mac163.com/wp-content/uploads/2022/10/SwitchyOmega-768x250.png 768w" sizes="auto, (max-width: 842px) 100vw, 842px" /></a><figcaption id="caption-attachment-5082" class="wp-caption-text">Switchyomega</figcaption></figure></li>
<li>在 V2rayN 客户端点击<strong>服务器</strong>-&gt;<strong>添加 SOCKS 服务器</strong>-&gt;填写服务器地址：127.0.0.1 端口：1080。即可实现国内分流了。
<figure id="attachment_5083" aria-describedby="caption-attachment-5083" style="width: 543px" class="wp-caption aligncenter"><a href="https://mac163.com/wp-content/uploads/2022/10/v2rayn.png"><img loading="lazy" decoding="async" class="size-full wp-image-5083" src="https://mac163.com/wp-content/uploads/2022/10/v2rayn.png" alt="V2rayn" width="543" height="322" srcset="https://mac163.com/wp-content/uploads/2022/10/v2rayn.png 543w, https://mac163.com/wp-content/uploads/2022/10/v2rayn-300x178.png 300w" sizes="auto, (max-width: 543px) 100vw, 543px" /></a><figcaption id="caption-attachment-5083" class="wp-caption-text">V2rayn</figcaption></figure></li>
</ol>
<h3>Android</h3>
<p>下载安装，填上域名，密码就可以使用了，目前没过多选项，而且仅支持一个节点连接：<br />
<a href="https://github.com/trojan-gfw/igniter/releases" target="_blank" rel="noopener nofollow">https://github.com/trojan-gfw/igniter/releases</a><br />
支持 IPV6 和大陆白名单，不过我发现大陆白名单的使能开关需要关闭再打开一次才起作用。<br />
如果运营商支持 IPV6，可在 DNS 解析设置 IPV6 ，我这没法测试，不知道速度会不会更好。</p>
<h3>iOS</h3>
<p>因为已经很多年没用过 iOS 了，所以就知道目前 Shadowrocket 俗称小火箭最新版是支持 Trojan 的。</p>
<h3>路由器</h3>
<p>目前仅有 Openwrt 系统有支持 Trojan 的插件，可根据路由器型号选择刷机。<br />
在 LuCI 里有 SSR-Plus 和 passwall 插件，都支持 SS，SSR，V2ray，Trojan 等，就体验来讲，我个人更喜欢 passwall 插件。</p>
<h2>后记</h2>
<p>因为手动安装复杂很多，涉及到的知识面也更多，所以不想写了，一键安装确实方便了我这样的懒汉。<br />
Trojan 似乎和 V2Ray+WS+TLS 机理差不多，从安全性来说两者稍有点差异但不大，而速度 Trojan 更有优势。就我测试的美国主机，本身速度就比较慢，V2Ray+WS+TLS 平均下载 1M 左右，最高 1.5M，而 Trojan 平均下载速度 2M 以上，最高可以到 3.5M。</p>
<p><span style="color: #ff6600;">最后分享我们的成品节点服务器，享受多台服务器，企业级速度，包含所有傻瓜式客户端，配置简单直接导入使用，</span><a title="trojan-qt5代理上网工具客户端介绍" href="https://mac163.com/4764/" target="_blank" rel="noopener">Trojan-Qt5</a><span style="color: #ff6600;">和Winxray，包含所有系统客户端下载</span></p>
<p><a class="color-button green" title="Trojan代理上网节点服务器介绍专门为Trojan-qt5打造" href="https://mac163.com/4817/" target="_blank" rel="noopener">Trojan节点服务器自助购买</a></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Trojan qt5图形化代理工具使用配置及设置教程</title>
		<link>https://mac163.com/5226/</link>
		
		<dc:creator><![CDATA[mac163]]></dc:creator>
		<pubDate>Wed, 05 Oct 2022 14:13:17 +0000</pubDate>
				<category><![CDATA[Linux运维]]></category>
		<category><![CDATA[Linux教程]]></category>
		<guid isPermaLink="false">https://mac163.com/?p=5226</guid>

					<description><![CDATA[Trojan 是一款非常优秀的代理工具，使用简单效果出众，堪称扶墙神器。 使用 Trojan 多少还有一些不方&#8230;]]></description>
										<content:encoded><![CDATA[<p>Trojan 是一款非常优秀的代理工具，使用简单效果出众，堪称扶墙神器。</p>
<p>使用 Trojan 多少还有一些不方便，就是官方的发行版只有命令行模式，这对于 Linux 系统当服务器来用还好；而在 Windows 平台当代理客户端使用的话，必须要保证命令执行窗口一直打开才能正常使用，这显然与现代 Windows 典型应用使用习惯不符。</p>
<p>对于 Windows 平台可以使用 GUI Trojan 客户端的需求显然很强烈，幸好有大神开发出了一款多协议代理客户端工具 Trojan-Qt5，及时满足了这方面的需求。</p>
<p><strong>1] 下载 Trojan-Qt5 工具</strong></p>
<p>可以从<a title="trojan-qt5代理上网工具客户端介绍" href="https://mac163.com/4764/" target="_blank" rel="noopener">本站下载</a>对应操作系统的发行版软件，本站提供所有所有系统的版本下载，下列示例以 Windows 版本进行演示。</p>
<p><strong>2] Trojan-Qt5 的使用</strong></p>
<p>Trojan-Qt5 工具有很多发行格式，其中压缩格式的绿色版软件最为好用，直接运行不需要安装。将压缩文件解压，然后进入解压生成的文件夹，双击”trojan-qt5.exe”运行程序，就会见到如下界面：</p>
<figure id="attachment_5227" aria-describedby="caption-attachment-5227" style="width: 827px" class="wp-caption aligncenter"><a href="https://mac163.com/wp-content/uploads/2022/10/Trojan-Qt5-main-page.jpeg"><img loading="lazy" decoding="async" class="size-full wp-image-5227" src="https://mac163.com/wp-content/uploads/2022/10/Trojan-Qt5-main-page.jpeg" alt="Trojan Qt5 Main Page" width="827" height="594" srcset="https://mac163.com/wp-content/uploads/2022/10/Trojan-Qt5-main-page.jpeg 827w, https://mac163.com/wp-content/uploads/2022/10/Trojan-Qt5-main-page-300x215.jpeg 300w, https://mac163.com/wp-content/uploads/2022/10/Trojan-Qt5-main-page-768x552.jpeg 768w" sizes="auto, (max-width: 827px) 100vw, 827px" /></a><figcaption id="caption-attachment-5227" class="wp-caption-text">Trojan Qt5 Main Page</figcaption></figure>
<h5>图.1 Trojan-Qt5 程序主界面</h5>
<p>然后选择”连接”菜单，依次选择”添加–&gt;手动–&gt;手动添加TROJAN连接”：</p>
<figure id="attachment_5228" aria-describedby="caption-attachment-5228" style="width: 827px" class="wp-caption aligncenter"><a href="https://mac163.com/wp-content/uploads/2022/10/Trojan-Qt5-main-add-trojan-connection.jpeg"><img loading="lazy" decoding="async" class="size-full wp-image-5228" src="https://mac163.com/wp-content/uploads/2022/10/Trojan-Qt5-main-add-trojan-connection.jpeg" alt="Trojan Qt5 Main Add Trojan Connection" width="827" height="594" srcset="https://mac163.com/wp-content/uploads/2022/10/Trojan-Qt5-main-add-trojan-connection.jpeg 827w, https://mac163.com/wp-content/uploads/2022/10/Trojan-Qt5-main-add-trojan-connection-300x215.jpeg 300w, https://mac163.com/wp-content/uploads/2022/10/Trojan-Qt5-main-add-trojan-connection-768x552.jpeg 768w" sizes="auto, (max-width: 827px) 100vw, 827px" /></a><figcaption id="caption-attachment-5228" class="wp-caption-text">Trojan Qt5 Main Add Trojan Connection</figcaption></figure>
<h5>图.2 选择手动添加 Trojan 连接</h5>
<p>进入 Trojan 服务器配置窗口：</p>
<figure id="attachment_5229" aria-describedby="caption-attachment-5229" style="width: 296px" class="wp-caption aligncenter"><a href="https://mac163.com/wp-content/uploads/2022/10/Trojan-Qt5-main-edit-trojan-config.jpeg"><img loading="lazy" decoding="async" class="size-full wp-image-5229" src="https://mac163.com/wp-content/uploads/2022/10/Trojan-Qt5-main-edit-trojan-config.jpeg" alt="Trojan Qt5 Main Edit Trojan Config" width="296" height="729" srcset="https://mac163.com/wp-content/uploads/2022/10/Trojan-Qt5-main-edit-trojan-config.jpeg 296w, https://mac163.com/wp-content/uploads/2022/10/Trojan-Qt5-main-edit-trojan-config-122x300.jpeg 122w" sizes="auto, (max-width: 296px) 100vw, 296px" /></a><figcaption id="caption-attachment-5229" class="wp-caption-text">Trojan Qt5 Main Edit Trojan Config</figcaption></figure>
<h5>图.3 配置 Trojan 服务器</h5>
<p>填入 Trojan 服务器的基本信息后，点击”OK”保存配置，注意服务器地址、端口以及密钥信息根据实际情况填写。此时，添加到的 Trojan 服务器就会显示在 Trojan-Qt5 的主界面：</p>
<figure id="attachment_5230" aria-describedby="caption-attachment-5230" style="width: 827px" class="wp-caption aligncenter"><a href="https://mac163.com/wp-content/uploads/2022/10/Trojan-Qt5-main-connect-trojan-server.jpeg"><img loading="lazy" decoding="async" class="size-full wp-image-5230" src="https://mac163.com/wp-content/uploads/2022/10/Trojan-Qt5-main-connect-trojan-server.jpeg" alt="Trojan Qt5 Main Connect Trojan Server" width="827" height="594" srcset="https://mac163.com/wp-content/uploads/2022/10/Trojan-Qt5-main-connect-trojan-server.jpeg 827w, https://mac163.com/wp-content/uploads/2022/10/Trojan-Qt5-main-connect-trojan-server-300x215.jpeg 300w, https://mac163.com/wp-content/uploads/2022/10/Trojan-Qt5-main-connect-trojan-server-768x552.jpeg 768w" sizes="auto, (max-width: 827px) 100vw, 827px" /></a><figcaption id="caption-attachment-5230" class="wp-caption-text">Trojan Qt5 Main Connect Trojan Server</figcaption></figure>
<h5>图.4 Trojan 服务器列表</h5>
<p>配置无误后，点击”连接”按钮启动 Trojan 客户端连接，然后将浏览器代理服务器设置为”使用系统代理”即可自由上网了。</p>
<p>当然，Trojan-Qt5 还支持一些其它代理设置的，包括服务器选择呀、代理方式等，直接点击任务栏图标，按右键就会显示相关内容，具体信息如下：</p>
<figure id="attachment_5231" aria-describedby="caption-attachment-5231" style="width: 390px" class="wp-caption aligncenter"><a href="https://mac163.com/wp-content/uploads/2022/10/Trojan-Qt5-menu-page.jpeg"><img loading="lazy" decoding="async" class="size-full wp-image-5231" src="https://mac163.com/wp-content/uploads/2022/10/Trojan-Qt5-menu-page.jpeg" alt="Trojan Qt5 Menu Page" width="390" height="360" srcset="https://mac163.com/wp-content/uploads/2022/10/Trojan-Qt5-menu-page.jpeg 390w, https://mac163.com/wp-content/uploads/2022/10/Trojan-Qt5-menu-page-300x277.jpeg 300w" sizes="auto, (max-width: 390px) 100vw, 390px" /></a><figcaption id="caption-attachment-5231" class="wp-caption-text">Trojan Qt5 Menu Page</figcaption></figure>
<h5>图.5 Trojan-Qt5 功能菜单</h5>
<p>总体来说，Trojan-Qt5 使用简单，功能完备，是一款非常出色的 Trojan 图形化工具，不喜欢命令行的朋友可以尝试</p>
<p><a class="color-button orange" title="Trojan代理上网节点服务器介绍专门为Trojan-qt5打造" href="https://mac163.com/4817/" target="_blank" rel="noopener">Trojan节点服务器自助购买</a><span style="color: #ff0000;">购买节点服务器赠送所有客户端！</span></p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>支持多协议多用户的xray面板支持Trojan及vmess协议</title>
		<link>https://mac163.com/5288/</link>
		
		<dc:creator><![CDATA[mac163]]></dc:creator>
		<pubDate>Thu, 20 Oct 2022 15:03:30 +0000</pubDate>
				<category><![CDATA[Linux运维]]></category>
		<category><![CDATA[Linux教程]]></category>
		<guid isPermaLink="false">https://mac163.com/?p=5288</guid>

					<description><![CDATA[功能介绍 系统状态监控 支持多用户多协议，网页可视化操作 支持的协议：vmess、vless、trojan、s&#8230;]]></description>
										<content:encoded><![CDATA[<h1 dir="auto">功能介绍</h1>
<ul dir="auto">
<li>系统状态监控</li>
<li>支持多用户多协议，网页可视化操作</li>
<li>支持的协议：vmess、vless、trojan、shadowsocks、dokodemo-door、socks、http</li>
<li>支持配置更多传输配置</li>
<li>流量统计，限制流量，限制到期时间</li>
<li>可自定义 xray 配置模板</li>
<li>支持 https 访问面板（自备域名 + ssl 证书）</li>
<li>支持一键SSL证书申请且自动续签</li>
<li>更多高级配置项，详见面板</li>
</ul>
<h1 dir="auto">安装&amp;升级</h1>
<pre><code>bash &lt;(curl -Ls https://raw.githubusercontent.com/vaxilu/x-ui/master/install.sh)
</code></pre>
<h2 dir="auto">手动安装&amp;升级</h2>
<ol dir="auto">
<li>首先从 <a href="https://github.com/vaxilu/x-ui/releases" rel="nofollow">https://github.com/vaxilu/x-ui/releases</a> 下载最新的压缩包，一般选择 <code>amd64</code>架构</li>
<li>然后将这个压缩包上传到服务器的 <code>/root/</code>目录下，并使用 <code>root</code>用户登录服务器</li>
</ol>
<p dir="auto">如果你的服务器 cpu 架构不是 <code>amd64</code>，自行将命令中的 <code>amd64</code>替换为其他架构</p>
<pre>cd /root/
rm x-ui/ /usr/local/x-ui/ /usr/bin/x-ui -rf
tar zxvf x-ui-linux-amd64.tar.gz
chmod +x x-ui/x-ui x-ui/bin/xray-linux-* x-ui/x-ui.sh
cp x-ui/x-ui.sh /usr/bin/x-ui
cp -f x-ui/x-ui.service /etc/systemd/system/
mv x-ui/ /usr/local/
systemctl daemon-reload
systemctl enable x-ui
systemctl restart x-ui
</pre>
<h2 dir="auto">使用docker安装</h2>
<p dir="auto">此 docker 教程与 docker 镜像由<a href="https://github.com/Chasing66" rel="nofollow">Chasing66</a>提供</p>
<ol dir="auto">
<li>安装docker</li>
</ol>
<pre>curl -fsSL https://get.docker.com | sh</pre>
<ol dir="auto" start="2">
<li>安装x-ui</li>
</ol>
<pre>mkdir x-ui &amp;&amp; cd x-ui
docker run -itd --network=host \
-v $PWD/db/:/etc/x-ui/ \
-v $PWD/cert/:/root/cert/ \
--name x-ui --restart=unless-stopped \
enwaiax/x-ui:latest</pre>
<p dir="auto">Build 自己的镜像</p>
<pre>docker build -t x-ui .</pre>
<h2 dir="auto">SSL证书申请</h2>
<p dir="auto">此功能与教程由<a href="https://github.com/FranzKafkaYu" rel="nofollow">FranzKafkaYu</a>提供</p>
<p dir="auto">脚本内置SSL证书申请功能，使用该脚本申请证书，需满足以下条件:</p>
<ul dir="auto">
<li>知晓Cloudflare 注册邮箱</li>
<li>知晓Cloudflare Global API Key</li>
<li>域名已通过cloudflare进行解析到当前服务器</li>
</ul>
<p dir="auto">获取Cloudflare Global API Key的方法:</p>
<figure id="attachment_5289" aria-describedby="caption-attachment-5289" style="width: 836px" class="wp-caption aligncenter"><a href="https://mac163.com/wp-content/uploads/2022/10/8539018.png"><img loading="lazy" decoding="async" class="size-full wp-image-5289" src="https://mac163.com/wp-content/uploads/2022/10/8539018.png" alt="支持多协议多用户的xray面板支持trojan及vmess协议" width="836" height="381" srcset="https://mac163.com/wp-content/uploads/2022/10/8539018.png 836w, https://mac163.com/wp-content/uploads/2022/10/8539018-300x137.png 300w, https://mac163.com/wp-content/uploads/2022/10/8539018-768x350.png 768w" sizes="auto, (max-width: 836px) 100vw, 836px" /></a><figcaption id="caption-attachment-5289" class="wp-caption-text">支持多协议多用户的xray面板支持trojan及vmess协议</figcaption></figure>
<p dir="auto"><a href="https://github.com/vaxilu/x-ui/blob/main/media/bda84fbc2ede834deaba1c173a932223.png" target="_blank" rel="noopener nofollow"> </a></p>
<figure id="attachment_5290" aria-describedby="caption-attachment-5290" style="width: 1038px" class="wp-caption aligncenter"><a href="https://mac163.com/wp-content/uploads/2022/10/8510c49.png"><img loading="lazy" decoding="async" class="size-full wp-image-5290" src="https://mac163.com/wp-content/uploads/2022/10/8510c49.png" alt="获取cloudflare Global Api Key的方法" width="1038" height="288" srcset="https://mac163.com/wp-content/uploads/2022/10/8510c49.png 1038w, https://mac163.com/wp-content/uploads/2022/10/8510c49-300x83.png 300w, https://mac163.com/wp-content/uploads/2022/10/8510c49-1024x284.png 1024w, https://mac163.com/wp-content/uploads/2022/10/8510c49-768x213.png 768w" sizes="auto, (max-width: 1038px) 100vw, 1038px" /></a><figcaption id="caption-attachment-5290" class="wp-caption-text">获取cloudflare Global Api Key的方法</figcaption></figure>
<p dir="auto">使用时只需输入 <code>域名</code>, <code>邮箱</code>, <code>API KEY</code>即可，示意图如下：</p>
<figure id="attachment_5291" aria-describedby="caption-attachment-5291" style="width: 717px" class="wp-caption aligncenter"><a href="https://mac163.com/wp-content/uploads/2022/10/8510c63.png"><img loading="lazy" decoding="async" class="size-full wp-image-5291" src="https://mac163.com/wp-content/uploads/2022/10/8510c63.png" alt="获取cloudflare Global Api Key的方法" width="717" height="159" srcset="https://mac163.com/wp-content/uploads/2022/10/8510c63.png 717w, https://mac163.com/wp-content/uploads/2022/10/8510c63-300x67.png 300w" sizes="auto, (max-width: 717px) 100vw, 717px" /></a><figcaption id="caption-attachment-5291" class="wp-caption-text">获取cloudflare Global Api Key的方法</figcaption></figure>
<p dir="auto">注意事项:</p>
<ul dir="auto">
<li>该脚本使用DNS API进行证书申请</li>
<li>默认使用Let&#8217;sEncrypt作为CA方</li>
<li>证书安装目录为/root/cert目录</li>
<li>本脚本申请证书均为泛域名证书</li>
</ul>
<h2 dir="auto">Tg机器人使用（开发中，暂不可使用）</h2>
<p dir="auto">此功能与教程由<a href="https://github.com/FranzKafkaYu" rel="nofollow">FranzKafkaYu</a>提供</p>
<p dir="auto">X-UI支持通过Tg机器人实现每日流量通知，面板登录提醒等功能，使用Tg机器人，需要自行申请 具体申请教程可以参考<a href="https://coderfan.net/how-to-use-telegram-bot-to-alarm-you-when-someone-login-into-your-vps.html" rel="nofollow">博客链接</a> 使用说明:在面板后台设置机器人相关参数，具体包括</p>
<ul dir="auto">
<li>Tg机器人Token</li>
<li>Tg机器人ChatId</li>
<li>Tg机器人周期运行时间，采用crontab语法</li>
</ul>
<p dir="auto">参考语法：</p>
<ul dir="auto">
<li>30 * * * * * //每一分的第30s进行通知</li>
<li>@hourly //每小时通知</li>
<li>@daily //每天通知（凌晨零点整）</li>
<li>@every 8h //每8小时通知</li>
</ul>
<p dir="auto">TG通知内容：</p>
<ul dir="auto">
<li>节点流量使用</li>
<li>面板登录提醒</li>
<li>节点到期提醒</li>
<li>流量预警提醒</li>
</ul>
<p dir="auto">更多功能规划中&#8230;</p>
<h2 dir="auto">建议系统</h2>
<ul dir="auto">
<li>CentOS 7+</li>
<li>Ubuntu 16+</li>
<li>Debian 8+</li>
</ul>
<h1 dir="auto">常见问题</h1>
<h2 dir="auto">从 v2-ui 迁移</h2>
<p dir="auto">首先在安装了 v2-ui 的服务器上安装最新版 x-ui，然后使用以下命令进行迁移，将迁移本机 v2-ui 的 <code>所有 inbound 账号数据</code>至 x-ui，<code>面板设置和用户名密码不会迁移</code></p>
<p dir="auto">迁移成功后请 <code>关闭 v2-ui</code>并且 <code>重启 x-ui</code>，否则 v2-ui 的 inbound 会与 x-ui 的 inbound 会产生 <code>端口冲突</code></p>
<pre><code>x-ui v2-ui</code></pre>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
